[PyKDE] QToolButton Problem ...

Randy Carnahan rcarn at chartermi.net
Tue Nov 18 22:56:00 GMT 2003


On Tuesday 18 November 2003 16:41, Armin Steinhoff wrote:
> Hi All,
[snip]
>      self.fileOpen = QToolButton(openIcon,'Open
> File',QString.null,self.load,self.fileTools,'open file')
>    File "/usr/local/lib/python2.2/site-packages/qt.py", line 843, in
> __init__ libqtc.sipCallCtor(20,self,args)
> TypeError: Argument 1 of QToolButton() has an invalid type
>
> Is there a fix available ??

Is openIcon a valid QImage object?  If not, that's most likely the problem.

-- 
Randy Carnahan
Charter Communications
1-888-968-3442
SW::POP Michigan Region
I am Geek. Hear me Code!




More information about the PyQt mailing list