You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per our discussion on the List, just wanted to request an update to the sample script with examples of how to prevent multiple windows from spawning, and how to kill the app on close.
Got this from Ana Gomez. Thanks Ana!
To kill the app on close, in the class constructor include the following (In my case, immediately after loading the ui via uic)
self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
To prevent multiple spawns, in the Execute() definition, after setting sianchor:
for child in sianchor.children():
if isinstance(child, YourDialogClassHere):
return
The text was updated successfully, but these errors were encountered:
As per our discussion on the List, just wanted to request an update to the sample script with examples of how to prevent multiple windows from spawning, and how to kill the app on close.
Got this from Ana Gomez. Thanks Ana!
To kill the app on close, in the class constructor include the following (In my case, immediately after loading the ui via uic)
self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
To prevent multiple spawns, in the Execute() definition, after setting sianchor:
for child in sianchor.children():
if isinstance(child, YourDialogClassHere):
return
The text was updated successfully, but these errors were encountered: