<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](tkinter.xhtml "tkinter --- Tcl/Tk的Python接口") | - [上一頁](shlex.xhtml "shlex --- Simple lexical analysis") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - $('.inline-search').show(0); | # Tk圖形用戶界面(GUI) Tcl/Tk集成到Python中已經有一些年頭了。Python程序員可以通過 [`tkinter`](tkinter.xhtml#module-tkinter "tkinter: Interface to Tcl/Tk for graphical user interfaces") 包和它的擴展, [`tkinter.tix`](tkinter.tix.xhtml#module-tkinter.tix "tkinter.tix: Tk Extension Widgets for Tkinter") 模塊和 [`tkinter.ttk`](tkinter.ttk.xhtml#module-tkinter.ttk "tkinter.ttk: Tk themed widget set") 模塊,來使用這套魯棒的、平臺無關的窗口工具集。 [`tkinter`](tkinter.xhtml#module-tkinter "tkinter: Interface to Tcl/Tk for graphical user interfaces") 包使用面向對象的方式對Tcl/Tk進行了一層薄包裝。使用 [`tkinter`](tkinter.xhtml#module-tkinter "tkinter: Interface to Tcl/Tk for graphical user interfaces") ,你不需要寫Tcl代碼,但可能需要參考Tk文檔,甚至Tcl文檔。 [`tkinter`](tkinter.xhtml#module-tkinter "tkinter: Interface to Tcl/Tk for graphical user interfaces") 使用Python類,對Tk的窗體小部件(Widgets)進行了一系列的封裝。除此之外,內部模塊 `_tkinter` 針對Python和Tcl之間的交互,提供了一套線程安全的機制。 [`tkinter`](tkinter.xhtml#module-tkinter "tkinter: Interface to Tcl/Tk for graphical user interfaces") 最大的優點就一個字:快,再一個,是Python自帶的。盡管官方文檔不太完整,但有其他資源可以參考,比如Tk手冊,教程等。 [`tkinter`](tkinter.xhtml#module-tkinter "tkinter: Interface to Tcl/Tk for graphical user interfaces") 也以比較過時的外觀為人所知,但在Tk 8.5中,這一點得到了極大的改觀。除此之外,如果有興趣,還有其他的一些GUI庫可供使用。更多信息,請參考 [其他圖形用戶界面(GUI)包](othergui.xhtml#other-gui-packages) 小節。 - [`tkinter` --- Tcl/Tk的Python接口](tkinter.xhtml) - [Tkinter 模塊](tkinter.xhtml#tkinter-modules) - [Tkinter Life Preserver](tkinter.xhtml#tkinter-life-preserver) - [How To Use This Section](tkinter.xhtml#how-to-use-this-section) - [A Simple Hello World Program](tkinter.xhtml#a-simple-hello-world-program) - [A (Very) Quick Look at Tcl/Tk](tkinter.xhtml#a-very-quick-look-at-tcl-tk) - [Mapping Basic Tk into Tkinter](tkinter.xhtml#mapping-basic-tk-into-tkinter) - [How Tk and Tkinter are Related](tkinter.xhtml#how-tk-and-tkinter-are-related) - [Handy Reference](tkinter.xhtml#handy-reference) - [Setting Options](tkinter.xhtml#setting-options) - [The Packer](tkinter.xhtml#the-packer) - [Packer Options](tkinter.xhtml#packer-options) - [Coupling Widget Variables](tkinter.xhtml#coupling-widget-variables) - [The Window Manager](tkinter.xhtml#the-window-manager) - [Tk Option Data Types](tkinter.xhtml#tk-option-data-types) - [Bindings and Events](tkinter.xhtml#bindings-and-events) - [The index Parameter](tkinter.xhtml#the-index-parameter) - [Images](tkinter.xhtml#images) - [File Handlers](tkinter.xhtml#file-handlers) - [`tkinter.ttk` --- Tk themed widgets](tkinter.ttk.xhtml) - [Using Ttk](tkinter.ttk.xhtml#using-ttk) - [Ttk Widgets](tkinter.ttk.xhtml#ttk-widgets) - [Widget](tkinter.ttk.xhtml#widget) - [Standard Options](tkinter.ttk.xhtml#standard-options) - [Scrollable Widget Options](tkinter.ttk.xhtml#scrollable-widget-options) - [Label Options](tkinter.ttk.xhtml#label-options) - [Compatibility Options](tkinter.ttk.xhtml#compatibility-options) - [Widget States](tkinter.ttk.xhtml#widget-states) - [ttk.Widget](tkinter.ttk.xhtml#ttk-widget) - [Combobox](tkinter.ttk.xhtml#combobox) - [選項](tkinter.ttk.xhtml#options) - [Virtual events](tkinter.ttk.xhtml#virtual-events) - [ttk.Combobox](tkinter.ttk.xhtml#ttk-combobox) - [Spinbox](tkinter.ttk.xhtml#spinbox) - [選項](tkinter.ttk.xhtml#id1) - [Virtual events](tkinter.ttk.xhtml#id2) - [ttk.Spinbox](tkinter.ttk.xhtml#ttk-spinbox) - [Notebook](tkinter.ttk.xhtml#notebook) - [選項](tkinter.ttk.xhtml#id3) - [Tab Options](tkinter.ttk.xhtml#tab-options) - [Tab Identifiers](tkinter.ttk.xhtml#tab-identifiers) - [Virtual Events](tkinter.ttk.xhtml#id4) - [ttk.Notebook](tkinter.ttk.xhtml#ttk-notebook) - [Progressbar](tkinter.ttk.xhtml#progressbar) - [選項](tkinter.ttk.xhtml#id5) - [ttk.Progressbar](tkinter.ttk.xhtml#ttk-progressbar) - [Separator](tkinter.ttk.xhtml#separator) - [選項](tkinter.ttk.xhtml#id6) - [Sizegrip](tkinter.ttk.xhtml#sizegrip) - [Platform-specific notes](tkinter.ttk.xhtml#platform-specific-notes) - [Bugs](tkinter.ttk.xhtml#bugs) - [Treeview](tkinter.ttk.xhtml#treeview) - [選項](tkinter.ttk.xhtml#id7) - [Item Options](tkinter.ttk.xhtml#item-options) - [Tag Options](tkinter.ttk.xhtml#tag-options) - [Column Identifiers](tkinter.ttk.xhtml#column-identifiers) - [Virtual Events](tkinter.ttk.xhtml#id8) - [ttk.Treeview](tkinter.ttk.xhtml#ttk-treeview) - [Ttk Styling](tkinter.ttk.xhtml#ttk-styling) - [Layouts](tkinter.ttk.xhtml#layouts) - [`tkinter.tix` --- Extension widgets for Tk](tkinter.tix.xhtml) - [Using Tix](tkinter.tix.xhtml#using-tix) - [Tix Widgets](tkinter.tix.xhtml#tix-widgets) - [Basic Widgets](tkinter.tix.xhtml#basic-widgets) - [File Selectors](tkinter.tix.xhtml#file-selectors) - [Hierarchical ListBox](tkinter.tix.xhtml#hierarchical-listbox) - [Tabular ListBox](tkinter.tix.xhtml#tabular-listbox) - [Manager Widgets](tkinter.tix.xhtml#manager-widgets) - [Image Types](tkinter.tix.xhtml#image-types) - [Miscellaneous Widgets](tkinter.tix.xhtml#miscellaneous-widgets) - [Form Geometry Manager](tkinter.tix.xhtml#form-geometry-manager) - [Tix Commands](tkinter.tix.xhtml#tix-commands) - [`tkinter.scrolledtext` --- 滾動文字控件](tkinter.scrolledtext.xhtml) - [IDLE](idle.xhtml) - [目錄](idle.xhtml#menus) - [文件目錄 (命令行和編輯器)](idle.xhtml#file-menu-shell-and-editor) - [編輯目錄(命令行和編輯器)](idle.xhtml#edit-menu-shell-and-editor) - [Format menu (Editor window only)](idle.xhtml#format-menu-editor-window-only) - [Run menu (Editor window only)](idle.xhtml#run-menu-editor-window-only) - [Shell menu (Shell window only)](idle.xhtml#shell-menu-shell-window-only) - [Debug menu (Shell window only)](idle.xhtml#debug-menu-shell-window-only) - [Options menu (Shell and Editor)](idle.xhtml#options-menu-shell-and-editor) - [Window menu (Shell and Editor)](idle.xhtml#window-menu-shell-and-editor) - [Help menu (Shell and Editor)](idle.xhtml#help-menu-shell-and-editor) - [Context Menus](idle.xhtml#context-menus) - [Editing and navigation](idle.xhtml#editing-and-navigation) - [Editor windows](idle.xhtml#editor-windows) - [Key bindings](idle.xhtml#key-bindings) - [Automatic indentation](idle.xhtml#automatic-indentation) - [Completions](idle.xhtml#completions) - [Calltips](idle.xhtml#calltips) - [Code Context](idle.xhtml#code-context) - [Python Shell window](idle.xhtml#python-shell-window) - [Text colors](idle.xhtml#text-colors) - [Startup and code execution](idle.xhtml#startup-and-code-execution) - [Command line usage](idle.xhtml#command-line-usage) - [Startup failure](idle.xhtml#startup-failure) - [Running user code](idle.xhtml#running-user-code) - [User output in Shell](idle.xhtml#user-output-in-shell) - [Developing tkinter applications](idle.xhtml#developing-tkinter-applications) - [Running without a subprocess](idle.xhtml#running-without-a-subprocess) - [Help and preferences](idle.xhtml#help-and-preferences) - [Help sources](idle.xhtml#help-sources) - [Setting preferences](idle.xhtml#setting-preferences) - [IDLE on macOS](idle.xhtml#idle-on-macos) - [Extensions](idle.xhtml#extensions) - [其他圖形用戶界面(GUI)包](othergui.xhtml) ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](tkinter.xhtml "tkinter --- Tcl/Tk的Python接口") | - [上一頁](shlex.xhtml "shlex --- Simple lexical analysis") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - $('.inline-search').show(0); | ? [版權所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 軟件基金會是一個非盈利組織。 [請捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [發現了問題](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 創建。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看