[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Porting Tux
From: Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date: 2004-11-03 8:17:14
Message-ID: 200411030817.14604.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]
On Tuesday 02 November 2004 11:45 pm, Dennis Schaaf wrote:
> The way I understand it "self" is the MoveMe object, which is a
> QWidget, why doesn't that work as an instance for the first argument?
>
> I put this
> def __init__(self, name, args):
> apply(QWidget.__init__, (self,None, None, args))
> which resolved that error, but now I get an error that tells me that
> setBackgroundPixmap does not exist when I call it
"self" is the Python equivalent of C++'s "this". In C++, "this" is an implicit
argument, not an explicit one.
The first explicit argument to the QWidget ctor is the (optional) QWidget
instance of the parent - not self/this.
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic