[PyKDE] X Error: BadWindow (invalid Window parameter) 3
Pete Ware
ware at cis.ohio-state.edu
Fri Jul 21 22:31:16 BST 2000
The following code gives "X Error: BadWindow (invalid Window parameter) 3"
It's the "removeChild() that causes the problem. Any ideas?
[PyQt-0.13pre1 (with sundry patches), qt-2.1.1, python 1.5.2]
Thanks,
--pete
#! /bin/env python
# -*- Python -*-
import sys
import qt
class Test (qt.QFrame):
def __init__ (self, parent = None, name = ''):
qt.QFrame.__init__ (self, parent, name)
cols = 10
top = qt.QLabel ('whatsup', self)
self.removeChild (top)
top.hide ()
#del top
w = None
def test ():
global w
app = qt.QApplication (sys.argv)
w = Test (None, 'Table')
app.setMainWidget (w)
w.show ()
return app
if __name__ == '__main__':
print 'starting app...',
app = test ()
print 'done'
app.exec_loop ()
More information about the PyQt
mailing list