[PyKDE] QToolButton

claude faath claude.faath at wanadoo.fr
Thu Jan 15 14:44:00 GMT 2004


Here the extract of my code

toolBar = QToolBar(self)
self.fileOpen = QToolButton(QPixmap(fileopen), 'Open File', 'Opens a new 
file', self.open, tollBar, 'Open File')
self.fileSave = QToolButton(QPixmap(filesave), 'Save File', 'Saves current 
file', self.save, tollBar, 'Save file')
self.addToolBar(toolBar, 'Main toolbar')

I have the traceback according to

File "qted.py", line 162, in ?
mainWindow = EdMainWindow()
File "qted.py", line 84, in __init__
toolBar, 'Open file')
File "/usr/lib/python2.3/site-packages/qt.py", line 835, in __init__
TypeError:Argument 1 of QToolButton() has an invalid type

My version python 2.3-qt3c102 3.8-2.1 [ debian ]

Suggestions ?


More information about the PyQt mailing list