Re: tkinter questions: behavior of StringVar, etc

2009-03-30 Thread Eric Brunel
Alan G Isaac wrote: [snip] PS If you were also offering an answer to the second question, I missed it altogether, but although it is perhaps slightly less obvious than with a StringVar, I would ask the same basic question of an IntVar: why does it not behave more like an int? E.g., why is

Re: tkinter questions: behavior of StringVar, etc

2009-03-30 Thread Eric Brunel
Alan G Isaac wrote: I'm a complete newbie to GUI. I have a couple questions about tkinter. 1. Where is the list of changes in Python 3's tkinter? I'll let someone else answer this as I don't use Python 3 myself. I guess there are not many. 2. What exactly is the role of the root

Re: tkinter questions: behavior of StringVar, etc

2009-03-30 Thread Alan G Isaac
On 3/30/2009 3:37 AM Eric Brunel apparently wrote: The object traditionally called root is in fact an instance of the tcl interpreter that will get the commands generated by the Tkinter module. Due to tk architecture, creating this interpreter will also create a window, which is inteneded to be

Re: tkinter questions: behavior of StringVar, etc

2009-03-30 Thread Alan G Isaac
On 3/30/2009 3:37 AM Eric Brunel apparently wrote: The string representation of Tkinter objects seems to be a design principle in this module: it'll always evaluate to the representation this object has at tcl level. Since a XxxVar is represented by an actual variable at tcl level, its string

Re: tkinter questions: behavior of StringVar, etc

2009-03-30 Thread Eric Brunel
Alan G Isaac wrote: [snip] On 3/30/2009 3:37 AM Eric Brunel apparently wrote: The Tk instance is registered in a hidden variable in the Tkinter module. When you don't specify a master, it'll use the latest created Tk instance one by default. BTW, the latest should be the only one: it is quite

RE: tkinter questions: behavior of StringVar, etc

2009-03-30 Thread John Posner
Eric Brunel said: The Tk instance is registered in a hidden variable in the Tkinter module. When you don't specify a master, it'll use the latest created Tk instance one by default. BTW, the latest should be the only one: it is quite unsafe to create several Tk instances in the

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Scott David Daniels
Alan G Isaac wrote: On Mar 28, 2:15 pm, Alan G Isaac alan.is...@gmail.com wrote: I'm a complete newbie to GUI. I have a couple questions about tkinter. 1. Where is the list of changes in Python 3's tkinter? 2. What exactly is the role of the root object, traditionally created as

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Francesco Bochicchio
Alan G Isaac ha scritto: On Mar 28, 2:15 pm, Alan G Isaac alan.is...@gmail.com wrote: I'm a complete newbie to GUI. I have a couple questions about tkinter. 1. Where is the list of changes in Python 3's tkinter? 2. What exactly is the role of the root object, traditionally created

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
On 3/29/2009 3:43 AM Scott David Daniels apparently wrote: OK, that was plain rude. a couple of questions is not six questions. A reply telling you how to get to some of what you are looking for is assistance. If you want exact answers to an array of questions, pay someone to fetch you the

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
On 3/29/2009 7:29 AM Francesco Bochicchio apparently wrote: 1. Tkinter is only a thin wrapper over Tk, a GUI library initially developed for Tcl language, so many of the answer to the design choices you question (e.g. what is the master) cannot between answered within the python documentation

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Scott David Daniels
Alan G Isaac wrote: On 3/29/2009 3:43 AM Scott David Daniels apparently wrote: OK, that was plain rude. a couple of questions is not six questions. A reply telling you how to get to some of what you are looking for is assistance. If you want exact answers to an array of questions, pay someone

RE: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread John Posner
Scott David Daniels said: You ask, What exactly is the role of ..., rather than saying something like, I don't understand the role of ..., and continue to ask why the code is not architected the way you first expected it to be architected, calling those things you do not understand

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
Alan asked: - Why does a Variable need a master? - If s is a StringVar instance, why is str(s) its name rather than its value? On 3/29/2009 2:46 PM Scott David Daniels apparently wrote: The answer to that, grasshopper, lies in the answer to the question, What are StringVars designed to do?

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
On 3/29/2009 2:46 PM Scott David Daniels apparently wrote: You ask, What exactly is the role of ..., rather than saying something like, I don't understand the role of ..., and continue to ask why the code is not architected the way you first expected it to be architected, calling those things

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Scott David Daniels
Alan G Isaac wrote: Alan asked: - Why does a Variable need a master? - If s is a StringVar instance, why is str(s) its name rather than its value? On 3/29/2009 2:46 PM Scott David Daniels apparently wrote: The answer to that, grasshopper, lies in the answer to the question, What are

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Rhodri James
On Sun, 29 Mar 2009 22:37:24 +0100, Alan G Isaac alan.is...@gmail.com wrote: On 3/29/2009 2:46 PM Scott David Daniels apparently wrote: You ask, What exactly is the role of ..., rather than saying something like, I don't understand the role of ..., and continue to ask why the code is not

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
On 3/29/2009 6:50 PM Rhodri James apparently wrote: In this case, your choice of wording (the nearest thing we have in print to tone of voice) did not inspire me to go digging around in source that you have just as easy access to, in order to answer questions that I'm not particularly interested

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Rhodri James
On Mon, 30 Mar 2009 00:13:46 +0100, Alan G Isaac alan.is...@gmail.com wrote: Since you did not address my question about the nuance of magic, I'm inclined to treat you as a no vote. And you'd be wrong. -- Rhodri James *-* Wildebeeste Herder to the Masses --

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
On 3/29/2009 6:49 PM Scott David Daniels apparently wrote: Right. Tkinter could have been built to make a root at the first instantiation of a StringVar or IntVar, but it wasn't. Answering your why is a bit like answering the Why did Picasso choose primarily blue in his Blue Period, rather

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Rhodri James
On Mon, 30 Mar 2009 00:45:41 +0100, Alan G Isaac alan.is...@gmail.com wrote: On 3/29/2009 6:49 PM Scott David Daniels apparently wrote: What happens to your TV when you change the channel before turning it on? I think we can agree this is a safe action, but the result depends on the kind

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
On Mon, 30 Mar 2009 00:13:46 +0100, Alan G Isaac alan.is...@gmail.com wrote: Since you did not address my question about the nuance of magic, I'm inclined to treat you as a no vote. On 3/29/2009 7:19 PM Rhodri James apparently wrote: And you'd be wrong. So seriously, you'd read e.g.

tkinter questions: behavior of StringVar, etc

2009-03-28 Thread Alan G Isaac
I'm a complete newbie to GUI. I have a couple questions about tkinter. 1. Where is the list of changes in Python 3's tkinter? 2. What exactly is the role of the root object, traditionally created as ``root=tk.Tk()``? What is an example where one should create this before creating a

Re: tkinter questions: behavior of StringVar, etc

2009-03-28 Thread Mike Driscoll
On Mar 28, 2:15 pm, Alan G Isaac alan.is...@gmail.com wrote: I'm a complete newbie to GUI. I have a couple questions about tkinter. 1. Where is the list of changes     in Python 3's tkinter? 2. What exactly is the role of the root object,     traditionally created as ``root=tk.Tk()``?    

Re: tkinter questions: behavior of StringVar, etc

2009-03-28 Thread Alan G Isaac
On Mar 28, 2:15 pm, Alan G Isaac alan.is...@gmail.com wrote: I'm a complete newbie to GUI. I have a couple questions about tkinter. 1. Where is the list of changes in Python 3's tkinter? 2. What exactly is the role of the root object, traditionally created as ``root=tk.Tk()``?