[PyQt] Help on "self"
dwarnold45 at suddenlink.net
Thu Feb 11 20:49:56 GMT 2010
I'm not new to Python, but the use of "self" in classes has always been confusing. I working thru Rapid Gui Programming, and I have this code from Chatper 5:
from PyQt4.QtGui import *
def __init__(self, parent=None):
Can someone "gently" explain why the author did not use self.widthLabel=QLabel("&Width").
More information about the PyQt