Home > other >  Python tkinter to create a child window
Python tkinter to create a child window

Time:09-16

I should be how to program, in a child window when I click on the entry result

CodePudding user response:

New toplevel object

CodePudding user response:

reference 1st floor weixin_44289537 response:
new toplevel object

I am a small small small white to answer

CodePudding user response:

Try inputScore () function of disableRoot init_data () () two sentences take out,

CodePudding user response:

refer to the second floor weixin_43762984 response:
Quote: refer to 1st floor weixin_44289537 response:
new toplevel object

I am a small small small white can you answer to build

Before inspection, your program has set up a toplevel,
Suggested questions must have error of the two lines of scarlet letter paste off, good analysis reason,
Code is not willing to look

CodePudding user response:

The first thing you have to establish the main window Tk (), to build top-level Windows Toplevel specify its master primarily window
Tkinter base is not enough, recommend you look at the tutorial

CodePudding user response:

Use grab_set () example:

The import tkinter as tk
The window=tk. Tk ()

Top=tk. Toplevel (master=Windows)
Top. Grab_set ()

Top. Mainloop ()
Window. The mainloop ()
  • Related