ngrieb
August 23rd, 2012, 01:42 AM
I have been developing a number of applications at work in PyQt, and am almost ready to release them to people for normal use, but have two issues that I need to resolve before I finish them.
First I am having an issue opening a subwindow of class QWidget in the main loop modally (the window opens and does what it is supposed to, but the main loop exits the function called by the slot before the user has time to input things). The result is that the update/refresh action doesn't happen until the next time the signal is given to enter that function. I realize that the main loop is continuing in the background and that the update function is executed before any data is given to print onto the main window. My question is how do I stop/pause the main loop while this subwindow widget is running (I have seen this called a modal window; correct my jargon if I am wrong)?
The second problem I am having is that I have been developing under a Windows environment, and need to compile the code into an exe, msi, or bin. I have grabbed py2exe, but have absolutely no idea how to compile correctly (the tutorial given is worthless to me...). Can anyone give me an example of the correct way to compile using py2exe or another compiler like add-on?
Thanks
First I am having an issue opening a subwindow of class QWidget in the main loop modally (the window opens and does what it is supposed to, but the main loop exits the function called by the slot before the user has time to input things). The result is that the update/refresh action doesn't happen until the next time the signal is given to enter that function. I realize that the main loop is continuing in the background and that the update function is executed before any data is given to print onto the main window. My question is how do I stop/pause the main loop while this subwindow widget is running (I have seen this called a modal window; correct my jargon if I am wrong)?
The second problem I am having is that I have been developing under a Windows environment, and need to compile the code into an exe, msi, or bin. I have grabbed py2exe, but have absolutely no idea how to compile correctly (the tutorial given is worthless to me...). Can anyone give me an example of the correct way to compile using py2exe or another compiler like add-on?
Thanks