[PyKDE] Newbie questions ...

Soeren Fietzke sfiet at adams.com
Fri Feb 8 11:13:55 GMT 2002


Hi Oliver,


the indentation of "slotFile" looks incorrect to me. You define that function inside the __init__ function, not in the class block.
Or, if you want it defined there, do not use "self" with slotFile (because it is not a class member function then).

- Soeren


> class MyWidget(QWidget):
>      def __init__(self,parent=None,name=None):
>                def slotFile(self):
>                     #do something






More information about the PyQt mailing list