[Tutor] Self and class functions
Matthew Ngaha
chigga101 at gmail.com
Sun Jun 30 03:47:25 CEST 2013
On Sat, Jun 29, 2013 at 11:36 PM, Phil <phil_lor at bigpond.com> wrote:
> def setLabel(self):
> self.ui.label.setText("Bingo")
>
> DrawTest.setLabel(self)
> DrawTest.ui.label.setText("Bingo")
>
> The two lines above don't work, so my question is how do access the setText
> function? And, what do I do about the self parameter in the setLabel
> function?
u need to create an instance. those 2 above lines do the same thing it seems
More information about the Tutor
mailing list