Michael Druckenmiller Sr
13th October 2011, 14:34
I am using pyQT 4.8.5 with Python 2.7.2 with no add-ins. GPL versions.
At this time I am developing on Windows Xp SP3 and my code also runs on Windows 7. I need to maintain cross-platform capability to include Linux.
I am not clear on setting up True Modal with my Dialogs.
In QT Designer it gives three choices:
Non-Modal
Window Modal
Application Modal
I am not sure what the difference is between Window Modal and Application Modal?
(I would appreciate an explanation of what each actually does or sets up.)
I know exec_ will place the Dialog in its GUI Loop (for want of a better term)
The problem I am having, is that, while everything appears to "freeze" until the dialog closes I can still click on my Main Form and have yet another Dialog Pop-Up.
This is NOT what I want.
I *think* my problem is in my constructor, which I am borrowing from "Rapid GUI Programming with Python and QT" by Mark Summerfield.
def __init__(self, text, parent=None):
super(Oper_Comnt, self).__init__(parent)
self.__index = 0
self.setupUi(self)
self.setModal(True)
I note that my parent=None.
I suspect that I need to make my parent equal to my main form?
If this is so where do I get the information to make parent equal to my main form?
And, which Modal Property setting should I be using?
Thanks
Mike Sr.
At this time I am developing on Windows Xp SP3 and my code also runs on Windows 7. I need to maintain cross-platform capability to include Linux.
I am not clear on setting up True Modal with my Dialogs.
In QT Designer it gives three choices:
Non-Modal
Window Modal
Application Modal
I am not sure what the difference is between Window Modal and Application Modal?
(I would appreciate an explanation of what each actually does or sets up.)
I know exec_ will place the Dialog in its GUI Loop (for want of a better term)
The problem I am having, is that, while everything appears to "freeze" until the dialog closes I can still click on my Main Form and have yet another Dialog Pop-Up.
This is NOT what I want.
I *think* my problem is in my constructor, which I am borrowing from "Rapid GUI Programming with Python and QT" by Mark Summerfield.
def __init__(self, text, parent=None):
super(Oper_Comnt, self).__init__(parent)
self.__index = 0
self.setupUi(self)
self.setModal(True)
I note that my parent=None.
I suspect that I need to make my parent equal to my main form?
If this is so where do I get the information to make parent equal to my main form?
And, which Modal Property setting should I be using?
Thanks
Mike Sr.