December 2015
Beginner to intermediate
350 pages
6h 49m
English
This recipe extends the previous one. Therefore, it is necessary to have typed Recipe 1 yourself into a project of your own or downloaded the code from https://www.packtpub.com/support.
We are preventing the GUI from being resized.
import tkinter as tk # 1 imports
win = tk.Tk() # 2 Create instance
win.title("Python GUI") # 3 Add a title
win.resizable(0, 0) # 4 Disable resizing the GUI
win.mainloop() # 5 Start GUIRunning the code creates this GUI:

Line 4 prevents the Python GUI from being resized.
Running this code will result in a GUI similar to the one we created in Recipe ...
Read now
Unlock full access