Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Python Tk Label

  • tkinter

  • Tk

  • Label

  • pack

  • mainloop

  • Label

import tkinter as tk

app = tk.Tk()
#app.title('Simple Label')

label = tk.Label(app, text='Some fixed text')
label.pack()

app.mainloop()