I'm using a tabstrip for navigating my client. I'd like to make a second desktop open when one of the tabs is pressed. I'm using this script during the mouseClicked event, but the new desktop doesn't open.
if event.source.selectedTab == 'Annunciator':
system.gui.openDesktop(screen=0, handle="Annunciator", windows=["Annunciator/Main"])
Are there any errors in the client logs? Where are you testing from? Are you sure your if condition is being met? Maybe the selected tab value has a trailing space, or something like that.
It looks like if condition is not being met. I copied and pasted the name of the tab into the script to make sure there weren't any typos, but it's still a no go.
selectedTab returns the configured window name of the selected tab, not the display name. Try copying the value in the window name field into your if statement and see if that works.