Tkinter Button widget

2005-07-14 Thread Shankar Iyer ([EMAIL PROTECTED])
Hi, I have another Tkinter-related question. At the beginning of my program, a tkinter window is created with six buttons. Each of these buttons is assigned a function that should be executed only when the button is pressed. However, it seems that these functions are all executed once w

loop problem

2005-07-13 Thread Shankar Iyer ([EMAIL PROTECTED])
Hi, First, I want to thank those who responded to my question about "the plot module" yesterday.  I realize now that the question could have been vague.  There is a plot module, simply called "plot," that I am using, and I guess it is not a very widely circulated plotting utility.    Anyway, I

plot module

2005-07-12 Thread Shankar Iyer ([EMAIL PROTECTED])
Hi, I am looking for documentation on the plot module. Does anyone know where I can find this information? Thanks. Shankar -- http://mail.python.org/mailman/listinfo/python-list

Re: Frame widget (title and geometry)

2005-06-24 Thread Shankar Iyer ([EMAIL PROTECTED])
Here is an example of what I tried to do: from Tkinter import * import classtitle import classtitle2 BLUE1 = '#7080B0' RED1 = '#B08080' class Master(Frame): def createWidgets(self): self.FrameOne = Frame(self) self.FrameOne.grid(sticky = NW) self.FrameOne["backgroun

Frame widget (title and geometry)

2005-06-24 Thread Shankar Iyer ([EMAIL PROTECTED])
Hi, I am still new to Python and Tkinter, so I apologize in advance if I do not word my question optimally. I am trying to use a frame widget as the parent for other widgets. There is a class with the header "class classtitle(Frame):" in a script called classtitle.py. Having imported

dir() with string as argument

2005-06-16 Thread Shankar Iyer ([EMAIL PROTECTED])
Hi, Suppose I have a string, sModuleName, that contains the name of a module. I now want to see what functions are in that module, but if I call dir(sModuleName), I instead get the list of operations that can be done on a string. Is there any way to convert the string into a format that I cou

Re: bind in Tkinter

2005-06-10 Thread Shankar Iyer ([EMAIL PROTECTED])
Thanks! Your message guided me to the solution to my problem. Shankar - Original Message - From: Markus Weihs <[EMAIL PROTECTED]> Date: Friday, June 10, 2005 5:01 pm Subject: Re: bind in Tkinter > Hi! > > If you press a key, a key-event is passed to the function, here to > self.quit. T

Re: bind in Tkinter

2005-06-10 Thread Shankar Iyer ([EMAIL PROTECTED])
I believe the quit function is built in. Anyway, I get the same type of error if I substitute a function that I have defined. Shankar - Original Message - From: VK <[EMAIL PROTECTED]> Date: Friday, June 10, 2005 4:53 pm Subject: Re: bind in Tkinter > Shankar Iyer ([EMAIL

bind in Tkinter

2005-06-10 Thread Shankar Iyer ([EMAIL PROTECTED])
I have been trying to learn how to associate keyboard events with actions taken by a Python program using Tkinter. From what I've read online, it seems that this is done with the bind methods. In one of my programs, I have included the following: self.enternumber = Entry(self) self.enternumb

Re: RE: a question from a newcomer to this language

2005-06-10 Thread Shankar Iyer ([EMAIL PROTECTED])
Thank you for your help. I will post the problem in more detail if I find that I cannot avoid using exec. Shankar - Original Message - From: Michael Chermside <[EMAIL PROTECTED]> Date: Friday, June 10, 2005 3:49 pm Subject: RE: a question from a newcomer to this language > Shankar w

a question from a newcomer to this language

2005-06-10 Thread Shankar Iyer ([EMAIL PROTECTED])
Hi, I am a undergraduate physics student, and I have been asked to write some code in Python for my summer job. Over the past few days, I have been learning Python and Tkinter, so naturally, I have several questions about the language. Here's one: Is there any way to convert a string into an