Re: Odd behavior in Python/Tkinter?

2007-12-22 Thread Lie
On Dec 22, 1:42 pm, Fredrik Lundh [EMAIL PROTECTED] wrote: Lie wrote: Inspect the following code: --- start of code --- import Tkinter as Tk from Tkconstants import * root = Tk.Tk() e1 = Tk.Entry(root, text = 'Hello World') e2 = Tk.Entry(root, text = 'Hello World') the text (or

Re: Odd behavior in Python/Tkinter?

2007-12-22 Thread Lie
But an expression (e.g. string) is NOT a variable. It's fine if the value mirrored when I set the textvariable conf to the same variable, but in this case I'm setting them to the same expression (e.g. string). On the other hand, the oddness multiplied since the value replication doesn't happen

Re: Odd behavior in Python/Tkinter?

2007-12-22 Thread Fredrik Lundh
Lie wrote: But an expression (e.g. string) is NOT a variable. in this case, it is. I don't know if it's worth spending more time on this, since you're not listening, but let's make one more attempt. for the Entry widget, the textvariable argument, if given, identifies an *internal* Tkinter

Re: Odd behavior in Python/Tkinter?

2007-12-22 Thread Lie
On Dec 22, 7:35 pm, Fredrik Lundh [EMAIL PROTECTED] wrote: Lie wrote: But an expression (e.g. string) is NOT a variable. in this case, it is.  I don't know if it's worth spending more time on this, since you're not listening, but let's make one more attempt. Sure I'm listening (well,

Odd behavior in Python/Tkinter?

2007-12-21 Thread Lie
Inspect the following code: --- start of code --- import Tkinter as Tk from Tkconstants import * root = Tk.Tk() e1 = Tk.Entry(root, text = 'Hello World') e2 = Tk.Entry(root, text = 'Hello World') e1.grid(row = 1, column = 1) e2.grid(row = 2, column = 1) e1.insert(END, 'Hello Python')

Re: Odd behavior in Python/Tkinter?

2007-12-21 Thread Fredrik Lundh
Lie wrote: Inspect the following code: --- start of code --- import Tkinter as Tk from Tkconstants import * root = Tk.Tk() e1 = Tk.Entry(root, text = 'Hello World') e2 = Tk.Entry(root, text = 'Hello World') the text (or textvariable) option to the Entry widget is the name of the

Re: Odd behavior in Python/Tkinter?

2007-12-21 Thread Simon Forman
On Dec 21, 12:30 pm, Lie [EMAIL PROTECTED] wrote: Inspect the following code: --- start of code --- import Tkinter as Tk from Tkconstants import * root = Tk.Tk() e1 = Tk.Entry(root, text = 'Hello World') e2 = Tk.Entry(root, text = 'Hello World') e1.grid(row = 1, column = 1)

Re: Odd behavior in Python/Tkinter?

2007-12-21 Thread Lie
On Dec 22, 4:05 am, Fredrik Lundh [EMAIL PROTECTED] wrote: Lie wrote: Inspect the following code: --- start of code --- import Tkinter as Tk from Tkconstants import * root = Tk.Tk() e1 = Tk.Entry(root, text = 'Hello World') e2 = Tk.Entry(root, text = 'Hello World') the text (or

Re: Odd behavior in Python/Tkinter?

2007-12-21 Thread Fredrik Lundh
Lie wrote: Inspect the following code: --- start of code --- import Tkinter as Tk from Tkconstants import * root = Tk.Tk() e1 = Tk.Entry(root, text = 'Hello World') e2 = Tk.Entry(root, text = 'Hello World') the text (or textvariable) option to the Entry widget is the name of the Tcl