Re: Tkinter help, please...

2007-05-24 Thread Medi Ochre
John McMonagle wrote: > I've made a couple of minor changes to your code from the Cribbage class > down: > > class Cribbage: > def __init__(self, win): > ... > score = run.play() > if score >= best: best = score > time.sleep(1) <--- short sleep to see what's

Re: Tkinter help, please...

2007-05-24 Thread John McMonagle
I've made a couple of minor changes to your code from the Cribbage class down: class Cribbage: def __init__(self, win): self.parent = win# < make the toplevel Tk window an # < attribute of the class #Draw the interface

Tkinter help, please...

2007-05-24 Thread Medi Ochre
I've been away from Python for some time, and I'm just starting to look at Tkinter. Just so you know, I'm coming from Visual Basic, where this would, I *think*, not have been a problem, so it must be a case of getting my head around the Tkinter way of doing things. In a nutshell, I've written a

Re: opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Clara
I've found the solution I must destroy the first window using self.master.destroy(), but thanks anyway ^_^ -- http://mail.python.org/mailman/listinfo/python-list

Re: opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Clara
since the file where i call the first window and the second window is different,.If I put app.master.withdraw() there,...won't I get error message that says; app is not defined as global or something like that? -- http://mail.python.org/mailman/listinfo/python-list

Re: opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Fredrik Lundh
"Clara" wrote: > Well, but where do I call withdraw? when you want the new window to appear, and the old one to go away, of course. something like this, perhaps? from mainmenu import FileManager app2 = FileManager(self.username.get()) app2.master.title("File Manager") app2.master.maxsiz

Re: opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Clara
Forgive my ignorance, but where do I call withdraw? -- http://mail.python.org/mailman/listinfo/python-list

Re: opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Clara
Well, but where do I call withdraw? -- http://mail.python.org/mailman/listinfo/python-list

Re: opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Fredrik Lundh
"Clara" wrote: > I meant to write an application where there is a button in a window and > when you click on the button, it will open a new window, but I want the > first window to close, replaced by the second window. > I open a login window and start the mainloop, when the user click on > the lo

opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Clara
Hi,... I meant to write an application where there is a button in a window and when you click on the button, it will open a new window, but I want the first window to close, replaced by the second window. I open a login window and start the mainloop, when the user click on the login button, the __c