[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] The strangest problem I've ever seen
From: Willi Richert <mennosimons () gmx ! net>
Date: 2002-07-01 20:20:47
[Download RAW message or body]
Hi,
look at the following code which returns segfault when it exits.
####################################################
from qt import *
import sys
class MyWindow(QMainWindow):
def __init__(self):
QMainWindow.__init__(self)
self.Toolbar = QToolBar("",self,Qt.DockTop)
def main(args):
a=QApplication(args)
w=MyWindow()
w.show()
QObject.connect(a, SIGNAL("lastWindowClosed()"), a, SLOT("quit()"))
a.exec_loop()
if __name__ == "__main__":
main(sys.argv)
####################################################
Now replace the variable "a" by any other name and it does segfault any more.
Does anybody know, why?
Also, if I delete the toolbar line it works with "a" as the variable.
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