[Tutor] Tkinter class question
Alan Gauld
alan.gauld at yahoo.co.uk
Sat Apr 8 03:57:10 EDT 2017
On 07/04/17 17:00, Phil wrote:
> ...I'm now having a problem knowing when to use the "self" reference.
self is needed every time you use an instance attribute or method.
It is equivalent to 'this' in C++(or Java), but in Python it is
never implicit you always have to explicitly specify self when accessing
a member of the class.
> ...the function "ckeck" is called without the need to press
Peter has addressed this.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list