Tk を用いたグラフィカルユーザインターフェイス

Tk/Tcl は長きにわたり Python の不可欠な一部でありつづけています。Tk/Tcl は頑健でプラットホームに依存しないウィンドウ構築ツールキットであり、Python プログラマは tkinter パッケージやその拡張モジュールの tkinter.tix および tkinter.ttk モジュールを使って利用できます。

tkinter パッケージはオブジェクトの薄い層で作ったTcl/Tkの最上層です。tkinter を使うには、Tcl のコードを書く必要はありませんが、Tk のドキュメント、またはときどき、Tcl のドキュメントを調べる 必要が出て来ます。tkinter は Python クラスとして実装した Tk ウィジェットのラッパーの集合です。

tkinter's chief virtues are that it is fast, and that it usually comes bundled with Python. Although its standard documentation is weak, good material is available, which includes: references, tutorials, a book and others. tkinter is also famous for having an outdated look and feel, which has been vastly improved in Tk 8.5. Nevertheless, there are many other GUI libraries that you could be interested in. The Python wiki lists several alternative GUI frameworks and tools.