[Tutor] Tkinter's Label

2011-02-16 Thread Emeka
Hello All, I have the following; root = Tk() label = Label(root , text = "pure") in order to change "text" , I could do the this label[text] = "pool" I do know that there is something like this.. label.config(text = "pool") Which one should I use? Regards, Emeka

Re: [Tutor] Creating xml documents

2011-02-16 Thread allan oware
Alright, Am stuck with xml.dom.minidom, but is there correct usage for *Node.prettyxml() *resulting in less junky newlines and spaces ? i.e *from* 28.4258363792 -6.13557141177 46.1374243603 6.41013674147 *to* * * 28.477417

Re: [Tutor] Creating xml documents

2011-02-16 Thread Stefan Behnel
allan oware, 16.02.2011 09:20: Alright, Am stuck with xml.dom.minidom Interesting. Why would that be the case? , but is there correct usage for *Node.prettyxml() *resulting in less junky newlines and spaces ? i.e *from* 28.4258363792 -6.13557141177

Re: [Tutor] Accessing query results html frame :The solution

2011-02-16 Thread Karim
On 02/16/2011 08:40 AM, Karim wrote: On 02/14/2011 01:41 PM, Karim wrote: Hello, As I get no response from the tutor python list, I am continuing to investigate my problem. In fact the issue is that there are 2 forms in the interactive page and my request does nothing instead I get the int

Re: [Tutor] Tkinter's Label

2011-02-16 Thread Alan Gauld
"Emeka" wrote in order to change "text" , I could do the this label[text] = "pool" I do know that there is something like this.. label.configure(text = "pool") For singlealue changes it's largely a matter of taste but I personally use the dictionary form for a single value change and co

Re: [Tutor] Tkinter's Label

2011-02-16 Thread Emeka
Alan, Thanks so much. Is the below the standard way of checking the content of Label in "if" statement? root = Tk() label = Label(root , text = "pure") if label["pure"] == "pure": Regards, Emeka On Wed, Feb 16, 2011 at 10:13 AM, Alan Gauld wrote: > > "Emeka" wrote > > in order to change

[Tutor] Python GUI Tkinter Button arrangement

2011-02-16 Thread Ganesh Kumar
Hi.. I am new to python , i have creating one application user agreement..using Tkinter, The Content of the agreement will reading one file...Agree button will click means enable next button. And activate script, Quit button for exit the program,, Dis agree means one warning message will show up

Re: [Tutor] Python GUI Tkinter Button arrangement

2011-02-16 Thread Ahmed AL-Masri
I suggest to use boa constructor if you are new learning. just google it. very easy tool to create your interface -- From: "Ganesh Kumar" Sent: Wednesday, February 16, 2011 6:43 PM To: Subject: [Tutor] Python GUI Tkinter Button arrangement Hi..

[Tutor] Python3 Tutorial question about a[:] = []

2011-02-16 Thread Richard D. Moores
from : >>> # Clear the list: replace all items with an empty list >>> a[:] = [] >>> a [] I've been using >>> a = [] >>> a [] What's the difference? Thanks, Dick Moores ___ Tutor maillist

Re: [Tutor] Python3 Tutorial question about a[:] = []

2011-02-16 Thread Brett Ritter
On Wed, Feb 16, 2011 at 12:39 PM, Richard D. Moores wrote: > from : > # Clear the list: replace all items with an empty list a[:] = [] a > [] > > I've been using a = [] a > [] > > What's the difference? a = []

Re: [Tutor] Python3 Tutorial question about a[:] = []

2011-02-16 Thread Richard D. Moores
On Wed, Feb 16, 2011 at 09:50, Brett Ritter wrote: > On Wed, Feb 16, 2011 at 12:39 PM, Richard D. Moores > wrote: >> from : >> > # Clear the list: replace all items with an empty list > a[:] = [] > a >> [] >> >> I've been

Re: [Tutor] Tkinter's Label

2011-02-16 Thread Alan Gauld
"Emeka" wrote Is the below the standard way of checking the content of Label in "if" statement? root = Tk() label = Label(root , text = "pure") if label["pure"] == "pure": Almost, but the index should be 'text': if label["text"] == "pure": HTH, -- Alan Gauld Author of the Learn to Pro

Re: [Tutor] Python GUI Tkinter Button arrangement

2011-02-16 Thread Alan Gauld
"Ganesh Kumar" wrote I am new to python , i have creating one application user agreement..using Tkinter, The Content of the agreement will reading one file...Agree button will click means enable next button. And activate script, I'm assuming by User Agreement you mean User Interface? Maybe

[Tutor] Working with some sort of Timer

2011-02-16 Thread Ryan Strunk
Hello everyone, I'm a first-time poster and--in fact--first time programmer, so a lot of this is new to me. I hope to learn a lot about programming from this list, and I hope you all won't be shy about such feedback as "you're top-posting again, silly newbie." I am currently in the midst of produ