Re: question about Tkinter delete

2011-11-07 Thread Peter Otten
Kristen Aw wrote: > I don't understand why I get this error. I'm trying to delete the existing points, then redraw them after this bit of code to 'animate' my simulation. > > def update(self, point1, point2): > # Deletes existing points > if self.point1: > self.w.dele

Re: question about tkinter

2010-03-18 Thread furlan
On Wed, 17 Mar 2010 09:32:46 -0400, robert schaefer wrote: > Peter, > > Most of my life has been dealing with recalcitrant HAL's in one guise or > another. These days, I think HAL has permanently taken up residence in > Toyota's engine and brakes. "Stop the car Dave? Have you changed my oil > or

Re: question about tkinter

2010-03-17 Thread Terry Reedy
On 3/17/2010 10:33 AM, robert schaefer wrote: No, And there's a reason (perhaps not a great one - but I'm got some constraints). Related to that I tailored Ipython to work with gtk (ipython's default was tkinter) - tailoring was by a command - is there any way to command idle to use gtk?

Re: question about tkinter

2010-03-17 Thread robert schaefer
No, And there's a reason (perhaps not a great one - but I'm got some constraints). I am not the system administrator and the tcl installer wants to be installed as root. I tried it. The rationale for not doing this is that the installation packages that I am administrator for, are all instal

Re: question about tkinter

2010-03-17 Thread Peter Otten
robert schaefer wrote: > tkinter is in two parts: > 1. a python wrapper > 2. c code > > Both are present in the 2.6.2 python download. > It appears to be a "I can't find the library" path problem not a file > existence problem. > > 1. gcc can't find the libraries that tkinter c code links to ( I

Re: question about tkinter

2010-03-17 Thread robert schaefer
Peter, Most of my life has been dealing with recalcitrant HAL's in one guise or another. These days, I think HAL has permanently taken up residence in Toyota's engine and brakes. "Stop the car Dave? Have you changed my oil or even washed me lately?" Some serious "sneak paths" are going on. A

Re: question about tkinter

2010-03-17 Thread Peter Otten
robert schaefer wrote: > This is my first posting to this list so please be gentle - > > I am new to python and am using it on red-hat linux (I am new to that > too). I am responsible for installing open source packages (including > python) onto a distributed system of linux boxes. > > My q

Re: Question about Tkinter MenuOption variable

2007-04-19 Thread Scott David Daniels
Rob Wolfe wrote: > Chad wrote: >> ... I have a menu option(code is below) I would like to have >> corresponding values of 01, 02, 03 and so on > > What about using dictionary? For example: > OPTIONS = dict(Jan=1, Feb=2, Mar=3, Apr=4, May=5, June=6, July=7, >Aug=8, Se

Re: Question about Tkinter MenuOption variable

2007-04-19 Thread Rob Wolfe
Chad wrote: > Is there anyway to set the individual options in Tkinter to a > particular variable. For example, I have a menu option(code is below) > which has January, February, March and so on, which I would like to > have corresponding values of 01, 02, 03 and so on. Can someone please > tell

Re: Question about Tkinter windows

2006-12-22 Thread Hendrik van Rooyen
Manuel Malo de Molina wrote in an email: >Hi, thanks for answering. The problem is that the window >can be closed in many ways (including some not >controlled by the program, as the X on the top right), >is there a way to capture the window closing event? Please keep it on the list so that oth

Re: Question about Tkinter windows

2006-12-21 Thread Hendrik van Rooyen
Manuel Malo de Molina wrote: >Hi everyone, this is the first time I use Python. I'm working on an application >using Tkinter and I would like that >the windows could only be opened once, is >there any option to get that? > >I don't know if I've explained myself: what I want is that if the user cl