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
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
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
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
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
"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
Forgive my ignorance, but where do I call withdraw?
--
http://mail.python.org/mailman/listinfo/python-list
Well, but where do I call withdraw?
--
http://mail.python.org/mailman/listinfo/python-list
"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
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
10 matches
Mail list logo