[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] main-loop and segfault
From: Willi Richert <mennosimons () gmx ! net>
Date: 2002-06-30 22:29:38
[Download RAW message or body]
Hi,
I stumbled across the following crazy behaviour: If the application is
executed from within a main()-method and then exit it prints only "1" and
after that issues a segmentation fault:
def main():
a=QApplication(sys.argv)
w=MyWindow()
a.setMainWidget(w)
w.resize(400,500)
w.show()
a.exec_loop()
print "1"
if __name__ == '__main__':
main()
print "2"
print "3"
However, if QApplication is executed in the top level block it works fine.
Does anybody know, why?
Thanks,
willi
--
Vieles ist einfach, der Rest zweifach.
_______________________________________________
PyKDE mailing list PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic