[PyKDE] 3.2rc4 instability
    brk at jenkon.com 
    brk at jenkon.com
       
    Mon Apr 29 20:48:00 BST 2002
    
    
  
After upgrading from 3.1 to 3.2rc4 (Windows NT 4.0, sp6a, python 2.1.3, Qt
3.0.3), I'm seeing a lot of new crashes on calls to simple methods like
centralWidget() and parent(). Here's a simple example which crashes. Is
anyone else having this sort of trouble?
Thanks,
Bryn
---
import sys
import qt
class MainWin(qt.QMainWindow):
    def __init__(self):
        qt.QMainWindow.__init__(self)
        self.wnd = None
        btn = qt.QPushButton('Click', self)
        btn.resize(btn.sizeHint())
        self.connect(btn, qt.SIGNAL('clicked()'), self.toggleWindow)
    def toggleWindow(self):
        self.centralWidget()
        #self.parent()
if __name__ == '__main__':
    app = qt.QApplication(sys.argv)
    win = MainWin()
    win.show()
    app.connect(app, qt.SIGNAL('lastWindowClosed()'), app,
qt.SLOT('quit()'))
    app.exec_loop()
Bryn Keller
Senior Software Engineer
Jenkon
brk at jenkon.com
    
    
More information about the PyQt
mailing list