RE: [Tutor] using TK to view an image and then close the window

2005-04-26 Thread Ertl, John
ljVersion/lib/python2.4/lib-tk/Tkinter.py", line 2075, in _create return getint(self.tk.call( _tkinter.TclError: image "pyimage2" doesn't exist -Original Message- From: Michael Lange [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 01:58 To: Ertl, John Sub

Re: [Tutor] using TK to view an image and then close the window

2005-04-25 Thread jfouhy
Quoting "Ertl, John" <[EMAIL PROTECTED]>: > top = Tkinter.Toplevel(app,visual="truecolor",colormap="new") > top.title(mainTitle) > top.protocol("WM_DELETE_WINDOW", quit) > top.bind("",quit) > top.bind("",quit) In addition to Michael's comments, to bind to a keypress, you just do (eg) widget.

Re: [Tutor] using TK to view an image and then close the window

2005-04-25 Thread Michael Lange
On Mon, 25 Apr 2005 10:24:08 -0700 "Ertl, John" <[EMAIL PROTECTED]> wrote: Hi John, > I can get the image to show > up and minimize and maximize but I can not get the window to close and then > display the next image. > > I have tired several things but no luck. > > Any help on getting the

[Tutor] using TK to view an image and then close the window

2005-04-25 Thread Ertl, John
All, I have been struggling with being able to view an image and most things have not worked for one reason or another so I am trying to fall back on a way I used to do it in PERL. Use TK to show the image. I do not know TKInter but I have two scripts one that gets a list of images and anouther