Change focus from Eto to rhino viewport

Hi there,

I am trying tot create a selection input in an ETo dialog. If I run the following snippet, I can only select objects if I close the ETO dialog. Instead i want to temporarliy hide the dialog and change focus to the rhino viewport

def handleCompareNestingClick(self, sender, e):
    
    ### HIDE Dialog at this point, change focus to rhino viewport
    
    objs = rs.GetObjects('select nesting objects')
    
    ### SHOW DIALOG again here, change focus back to dialog

Is there a way to set focus to the rhino viewport and back to the ETO form when selection is completed?

thanks,

cheers,
Tim Castelijn

Great! Thanks