Re: [Newbie] Tkinter Question

2016-02-25 Thread Randy Day
In article , best_...@yahoo.com says... [snip] > Anyway, I am happy with the outcome even though I have > not found a way to detect when the program is force > killed. It is unlikely that would ever occur as long When your peogram starts, have it create a small file. As part of your graceful s

Re: [Newbie] Tkinter Question

2016-02-24 Thread Wildman via Python-list
On Tue, 23 Feb 2016 16:19:43 -0600, Wildman wrote: > Thanks to Christian and Chris. You both gave me much to think about and to experiment with. That adds to my on-going learning experience. This is the first thing I tried: The Exit button has this: command=self.quit Then I have this: def

Re: [Newbie] Tkinter Question

2016-02-23 Thread Chris Kaynor
On Tue, Feb 23, 2016 at 2:19 PM, Wildman via Python-list < python-list@python.org> wrote: > I am familiar with OO programming but I am new to Python > and Tkinter. I am working on a gui program that creates > a couple of temporary files. As part of the Exit button > command they are deleted. If

Re: [Newbie] Tkinter Question

2016-02-23 Thread Christian Gollwitzer
Am 23.02.16 um 23:19 schrieb Wildman: I am familiar with OO programming but I am new to Python and Tkinter. I am working on a gui program that creates a couple of temporary files. As part of the Exit button command they are deleted. If the program is shut down using the window close button [X]

[Newbie] Tkinter Question

2016-02-23 Thread Wildman via Python-list
I am familiar with OO programming but I am new to Python and Tkinter. I am working on a gui program that creates a couple of temporary files. As part of the Exit button command they are deleted. If the program is shut down using the window close button [X], the exit button code is not executed a

Re: Newbie Tkinter Question

2005-04-13 Thread Hans Georg Krauthaeuser
Peter Otten schrieb: > Pseud O'Nym wrote: > > >>the following fragment doesn't cause any errors and results in buttons the >>correct size for the images, but the buttons don't work, and the images >>aren't displayed. If I add a text property, and remove the images, they >>work fine, so the rest o

Re: Newbie Tkinter Question

2005-04-13 Thread Peter Otten
Pseud O'Nym wrote: > the following fragment doesn't cause any errors and results in buttons the > correct size for the images, but the buttons don't work, and the images > aren't displayed. If I add a text property, and remove the images, they > work fine, so the rest of my code's OK. I've searche

Re: Newbie Tkinter Question

2005-04-13 Thread Paul Rubin
"Pseud O'Nym" <[EMAIL PROTECTED]> writes: > class App: > def __init__(self, master): > frame = Frame(master) > frame.pack(side=LEFT, fill=Y) > image1 = PhotoImage(file='button_a.gif') > self.button = Button(frame, image=image1) > self.button.pack(side=TOP) > > Can anyone enli

Newbie Tkinter Question

2005-04-13 Thread Pseud O'Nym
Hi, the following fragment doesn't cause any errors and results in buttons the correct size for the images, but the buttons don't work, and the images aren't displayed. If I add a text property, and remove the images, they work fine, so the rest of my code's OK. I've searched this group and Python