First, create a new instance of the Label widget. Second, place the Label on the main window by calling the pack() method. If you don’t call the pack() function, the program still creates the label ...
[![Python & Machine Learning training courses](img/49ec9c6da89a04c9f45bab643f8c765c.png)](https://sharepointsky.teachable.com/p/python-and-machine-learning-training ...
Dokumentasjon: https://realpython.com/python-gui-tkinter/" import tkinter as tk window = tk.Tk() # lager et Tk-objekt fra biblioteket tkinter. windowWidth = 500 ...