[PyKDE] QToolButton
Phil Thompson
phil at riverbankcomputing.co.uk
Thu Jan 15 19:36:01 GMT 2004
On Thursday 15 January 2004 1:42 pm, claude faath wrote:
> Hello
>
> 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__
> libqtc.sipCallCtor(21,self,args)
> TypeError:Argument 1 of QToolButton() has an invalid type
>
> My version python 2.3-qt3c102 3.8-2.1 [ debian ]
>
> Suggestions ?
Post a complete script that demonstrates the problem and say what versions of
SIP and PyQt you are using.
Phil
More information about the PyQt
mailing list