Python Tkinter.ttk Frame

 Python Tkinter.ttk Frame

Fereastră simplă

Să începem cu un program simplu care constă dintr-o fereastră:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# FILE: root_window.py
# RUN : python3 root_window.py
# -------------------------------------------BEGIN file
import tkinter as tk

root = tk.Tk()
root.mainloop()
# -------------------------------------------END file
 

Fereastra rădăcină are un titlu care implicit este tk.  De asemenea, are trei butoane de sistem, inclusiv Minimize, Maximize și Close.

 

Comentarii