ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH

Reference
ActivePython 2.5
Python Documentation
Library Reference
Front Matter
Contents
1. Introduction
2. Built-in Objects
3. Built-in Types
4. String Services
5. Data Types
6. Numeric and Mathematical Modules
7. Internet Data Handling
8. Structured Markup Processing Tools
9. File Formats
10. Cryptographic Services
11. File and Directory Access
12. Data Compression and Archiving
13. Data Persistence
14. Generic Operating System Services
15. Optional Operating System Services
16. Unix Specific Services
17. Interprocess Communication and Networking
18. Internet Protocols and Support
19. Multimedia Services
20. Graphical User Interfaces with Tk
20.1 Tkinter -- Python interface to Tcl/Tk
20.2 Tix -- Extension widgets for Tk
20.3 ScrolledText -- Scrolled Text Widget
20.4 turtle -- Turtle graphics for Tk
20.5 Idle
20.6 Other Graphical User Interface Packages
21. Internationalization
22. Program Frameworks
23. Development Tools
24. The Python Debugger
25. The Python Profilers
26. Python Runtime Services
27. Custom Python Interpreters
28. Restricted Execution
29. Importing Modules
30. Python Language Services
31. Python compiler package
32. Abstract Syntax Trees
33. Miscellaneous Services
34. SGI IRIX Specific Services
35. SunOS Specific Services
36. MS Windows Specific Services
A. Undocumented Modules
B. Reporting Bugs
C. History and License
Module Index
Index
About this document ...

MyASPN >> Reference >> ActivePython 2.5 >> Python Documentation >> Library Reference
ActivePython 2.5 documentation


20. Graphical User Interfaces with Tk

Tk/Tcl has long been an integral part of Python. It provides a robust and platform independent windowing toolkit, that is available to Python programmers using the Tkinter module, and its extension, the Tix module.

The Tkinter module is a thin object-oriented layer on top of Tcl/Tk. To use Tkinter, you don't need to write Tcl code, but you will need to consult the Tk documentation, and occasionally the Tcl documentation. Tkinter is a set of wrappers that implement the Tk widgets as Python classes. In addition, the internal module _tkinter provides a threadsafe mechanism which allows Python and Tcl to interact.

Tk is not the only GUI for Python; see section 20.6, ``Other User Interface Modules and Packages,'' for more information on other GUI toolkits for Python.

Tkinter   Interface to Tcl/Tk for graphical user interfaces
Tix   Tk Extension Widgets for Tkinter
ScrolledText   Text widget with a vertical scroll bar.
turtle   An environment for turtle graphics.

See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved