I encountered a few minor issues while working with PyQt4 under Python 2.7
I\'m writing a little project where there are some QDialogs opening each other. So there
This is normal behavior of Python. self.close()
is not a return statement, so it will not exit from __init__
.
Furthermore, __init__
does not actually show the dialog on screen, so writing self.close()
in __init__
is pointless. I'd suggest restructuring your code so this application logic is outside of the __init__
and will decide whether to initialize and show a MyDialog
based on the results from QInputDialog
and checker