Re: [Tutor] Showing/hiding widgets in Tkinter

2011-04-07 Thread The Green Tea Leaf
ggle["text"] = "Hide Example" then I get the same behavior as yesterday. -- The Green Tea Leaf   thegreenteal...@gmail.com   thegreentealeaf.blogspot.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Showing/hiding widgets in Tkinter

2011-04-06 Thread The Green Tea Leaf
 mylabel.visible = not mylabel.visible Unfortunately, it doesn't work. I can see the label flashing when I press the button but it's not visible unless I press the button again. -- The Green Tea Leaf   thegreenteal...@gmail.com   thegreentealeaf.blogspot.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Showing/hiding widgets in Tkinter

2011-04-06 Thread The Green Tea Leaf
d yes, the else statement is executed). If I change the else-statement to 'mylabel.place(x=70,y=150)' Any idea what I'm missing? -- The Green Tea Leaf   thegreenteal...@gmail.com   thegreentealeaf.blogspot.com ___ Tutor maillist -

Re: [Tutor] Pattern for using multiple windows in Tkinter

2010-05-03 Thread The Green Tea Leaf
OK, thanks. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Pattern for using multiple windows in Tkinter

2010-05-03 Thread The Green Tea Leaf
resents one window and where I want to be able to open multiple windows of that class. I hope you understand my question :) -- The Green Tea Leaf thegreenteal...@gmail.com thegreentealeaf.blogspot.com ___ Tutor maillist - Tutor@python.org To unsu

Re: [Tutor] How do I do this in python?

2009-06-11 Thread The Green Tea Leaf
s a solution to this > question, what documentation could I have looked at to find it on my > own? > > BTW I'm using python 3.01 if it matters. > > -- > Robert Lummis > ___ > Tutor maillist  -  tu...@python.org > http://mail.python.org/mailman/listinfo/tutor > -- The Green Tea Leaf thegreenteal...@gmail.com thegreentealeaf.blogspot.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Can't figure out why this is printing twice

2009-06-09 Thread The Green Tea Leaf
I got an email from him that he had a gzip.pyc file in that folder. Once he deleted that everything works OK. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Can't figure out why this is printing twice

2009-06-09 Thread The Green Tea Leaf
ere's the output: >> - >> mho...@blackbox:~/code/python$ python gzip2.py >> The name of the file will be >> The name of the file will be 06-09-2009.gz >> - >> It's Python 2.6.2 on Ubuntu 9.04 &g

Re: [Tutor] Can't figure out why this is printing twice

2009-06-08 Thread The Green Tea Leaf
On Mon, Jun 8, 2009 at 17:26, Wayne wrote: > On Mon, Jun 8, 2009 at 10:07 AM, The Green Tea Leaf > wrote: >> >> Could it be some import statement? That the gzip file is "shadowed" in >> some way? > > based on what the OP said, there's really nothing t

Re: [Tutor] Can't figure out why this is printing twice

2009-06-08 Thread The Green Tea Leaf
file will be 06-08-2009.gz >> I can't figure out why 'The name of the file will be' is printing twice. >> Any >> help appreciated. > > If that is what you get then me neither! > > Alan G. > > ___ > Tutor maillist  -

Re: [Tutor] Can't figure out why this is printing twice

2009-06-08 Thread The Green Tea Leaf
This doesn't happen on my machine. What is the filename ? -- The Green Tea Leaf thegreenteal...@gmail.com thegreentealeaf.blogspot.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] The use of leading underscore in names

2009-05-12 Thread The Green Tea Leaf
Thank you ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] The use of leading underscore in names

2009-05-12 Thread The Green Tea Leaf
ns (except that it affects the 'from X import *'). And no I don't intend to break this, I just want to check that I've understood correctly. (I understand the name mangling feature of double underscore) -- The Green Tea Leaf thegreenteal...@gmail.com

Re: [Tutor] Calling method in parent class

2009-05-12 Thread The Green Tea Leaf
Parent.__init__, and not > super, if only because of all the weird edge cases with super. Yes, it was those edge cases that I was worried about. -- The Green Tea Leaf thegreenteal...@gmail.com thegreentealeaf.blogspot.com ___ Tutor maillist - T

Re: [Tutor] Calling method in parent class

2009-05-12 Thread The Green Tea Leaf
1): >                Parent.__init__(self,arg0) >                self.arg1 = arg1 So this is the preferred way? Not super(OneChild, self).__init__ ? -- The Green Tea Leaf thegreenteal...@gmail.com thegreentealeaf.blogspot.com ___ Tutor maillist - Tuto

Re: [Tutor] Calling method in parent class

2009-05-12 Thread The Green Tea Leaf
I just want to know what is the best way to do this. As for an example, I would say the __init__ method where the parent class do some initialization, to be sure that everything is set up correctly I would call the parents class __init__ method before doing something else.

Re: [Tutor] Calling method in parent class

2009-05-12 Thread The Green Tea Leaf
OK, bad example. But assume I have the same method in both classes and want to call the method in the parent. On Tue, May 12, 2009 at 10:26, Jeremiah Dodds wrote: > > > On Tue, May 12, 2009 at 9:05 AM, The Green Tea Leaf > wrote: >> >> Hi, >> I've started to

[Tutor] Calling method in parent class

2009-05-12 Thread The Green Tea Leaf
doing this and why? Or should I mix both these approaches? -- The Green Tea Leaf   thegreenteal...@gmail.com   thegreentealeaf.blogspot.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor