Python window | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python window

How can I modify a window of a program?

7th Jun 2018, 4:16 AM
Jacob Fisher
Jacob Fisher - avatar
1 Answer
+ 3
I am not sure if you're asking for resizing your GUI app or default interactive shell of python console. Resizing console window is as easy as dragging the corners of the shell windows. But for GUI app developed using tkinter you can use geometry method of Tk instance as: from Tkinter import * root = Tk() root.title("Python Window") root.geometry("400x400") root.mainloop()
7th Jun 2018, 5:51 AM
Gopal Gautam
Gopal Gautam - avatar