[PyQt] Use of main() function makes otherwise identical program crash
rj_pyqt_qwzqfors
rj_pyqt_qwzqfors at objectmail.com
Tue Apr 22 16:03:09 BST 2014
I have attached a small sample PyQt program which works.
However, if you make the change mentioned in the comments, it crashes when you close it, and I don't understand
why.
The program has a QMainWindow which contains a statusbar, which
contains a toolbar, which contains a slider.
The only difference
between what works and what doesn't, is that the one that crashes has a main() function,
while the one that works does not.
(The reason why the slider is inside a toolbar is because in the
application I am developing, I have some toolbar buttons along with
it.)
Why does this make any difference? It seems very odd to me. Is this
a bug?
-- Timothy
P.S. I am running PyQt GPL v5.2.1 for Python v3.3 (x32) on Windows
8.1.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140422/361ef12c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slider.py
Type: application/octet-stream
Size: 787 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140422/361ef12c/attachment.obj>
More information about the PyQt
mailing list