Hello,
I’m using a simple input dialog to get a user choice from a list but need to determine if the Cancel button has been pushed. I understand slicer uses PythonQt and it looks like PythonQt provides a BoolResult type to do this. However, I haven’t been able to get this working. The following code just causes slicer to crash.
Note that popup windows are generally very annoying for users and should only be used in exceptional cases. I would recommend to add these widgets to your module’s GUI panel instead (by using Qt Designer).