Difference between revisions of "Tkinter"
From ArmadeusWiki
(→Installation) |
(spaces not tabs) |
||
Line 7: | Line 7: | ||
Target packages ---> | Target packages ---> | ||
Interpreter languages and scripting ---> | Interpreter languages and scripting ---> | ||
− | + | ... | |
− | + | [*] tcl | |
− | + | [*] delete encodings (saves 1.4Mb) | |
− | + | [*] install only shared library | |
− | + | tcl libraries/modules ---> | |
− | + | [*] tk | |
− | + | [*] remove demos | |
− | + | ... | |
− | + | [*] python | |
− | + | core python modules ---> | |
− | + | ... | |
− | + | [*] tkinter | |
</pre> | </pre> | ||
Revision as of 22:02, 22 July 2014
Introduction
Tkinter (“Tk interface”) is Python's de-facto standard GUI (Graphical User Interface) package. It is a thin object-oriented layer on top of Tcl/Tk.
Installation
Target packages ---> Interpreter languages and scripting ---> ... [*] tcl [*] delete encodings (saves 1.4Mb) [*] install only shared library tcl libraries/modules ---> [*] tk [*] remove demos ... [*] python core python modules ---> ... [*] tkinter
Quick test
from Tkinter import *
root = Tk()
w = Label(root, text="Hello, world!")
w.pack()
root.mainloop()