Print button script

hi, I have a print button inside a container with a script to print all elements:

job = system.print.createPrintJob(event.source.parent)
job.zoomFactor = 0.75
job.showPageFormat = 0


This print all the elements, including the print button, but I don’t want this button appears.
I trying to put this button outside the container but then I don’t know what to write inside the

system.print.createPrintJob(      )
job = system.print.createPrintJob(event.source.parent.getComponent('PrintableContainer'))

Here’s a tip: you can browse through the property tree to get to the component. You can’t pick the component itself, but you can pick any property it has (for example ‘Name’). You get this:

job = system.print.createPrintJob(event.source.parent.getComponent('PrintableContainer').name)

Now, you can go back and delete the “.name” portion (including the period), and you’re good to go!

Thanks Jordan, that worked.