python - Swap interface on button press -


I'm new to the tanker and I want to create a button, which is pressed when another interface is displayed. The following program is written: To import the Tkinter root = Tkinter.Tk () root.title ("My First Game") for R in Root (3): Category in C ( 3): Tkinter.Label (root, text = '3', borderwidth = 20). Grid (line = 1, column = 1) Tkinter.Label (root, text = '6', borderwidth = 20) .grid (line = 1, column = 2) Tkinter.Label (root, text = '4', limit = 20). Grid ( Nkti = 1, Column = 3) Tkinter.Label (root, text = "2", Simaviram = 20). Grid (Row = 2, Column = 2) Tkinter.Label (Route, Text = '', Limit = 1) Grid (Row = 2, Column = 1) Tkinter.Label (Root, Text = '7', Limit = 20) 20). Grid (line = 2, column = 3) Tkinter.Label (root, text = '5', limit = 20). Grid (line = 3, column = 1) Tkinter.Label (root, text = '1 For range: range (3): range for C. (3): Tkinter.Label (root, text = '3', borderwidth = grid (line = 3, column = 3) def mainprg () 20). Grid (line = 1, column = 1) Tkinter.Label (root, text = '6', limit = 20). Grid (line = 1, column = 2) Grid (line = 1, column = 3) Tkinter.Label (root, text = '2', borderwidth = 20). Grid (line = 2, Column = 1) Tkinter.Label (root, text = '7', border = 20). Grid (line = 2, column = 2) ticker. Label (root, text = '4', limit = 20). Grid ( Label (root, text = '1', limit = 20). Grid (line = 3, column = 2) Tkinter (line = 2, column = 3) Tikenator.babelle (grid (line = 3, column = 1) .Label (root, text = '8', limit = 20). Grid (line = 3, s Nb = 3) B = Tnkinrkbtn (text = "run" command = Mukyprg) Bikpik () route. Mainloop ()

I'm trying to display the first interface and run button. After pressing the Run button to display the second interface. But after running the above code, it does not display anything.

You can enter grid and pack (this one Bad idea, see for example); Change B to assignment: T = / Code>

In addition, there is no clear reason to hide for 9 times; You probably should think of the argument again.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -