Google News
logo
Tkinter - Interview Questions
Creating an automatically maximized tkinter window
There are two different ways in which we can get an automatically maximized window in Tkinter.
 
* We can use the state() method of Tkinter and invoke it with the attribute "zoomed".
      root.state("zoomed")
* The second approach is to use the attributes method of Tkinter with the parameter "-fullscreen" and set it to True.

By default, Tkinter creates a window of a predefined size. The dimensions of the window can be customized using the geometry method. For example,
     root.geometry("700 x 350")
Advertisement