![]() ![]() ![]() Your Linux Distribution's Package Manager.12 Option 2. Modern Tkinter for Busy Python Developers Mark RosemanĬontents Introduction.7 Who this Tutorial is for.7 Modern Best Practices.7 Tk Extensions.8 The Better Way Forward.8 How to Use.9 Conventions.9 Installing Tk.10 Installing Tk on Mac OS X.10 Install ActiveTcl.10 Install Python.10 Installing Tk on Windows.11 Installing Tk on Linux.12 Option 1. Whether you are entirely new to Tkinter, or just need to bring your Tkinter knowledge up to date, this book will give you everything you need to start building modern, attractive Tkinter-based user interfaces that run on Windows, Mac and Linux. Similarly, you should have a basic familiarity with desktop applications in general, and while you don't have to be a user interface designer, some appreciation of GUI design is always helpful. ![]() This book also doesn't teach you the Python programming language (the book uses Python 3), so you should have a basic grasp on that already. So if you're either looking to hack on Tk's internal C code, or build the next great 3D immersive game interface, this is probably not the material for you. It's also concerned with fairly mainstream graphical user interfaces, with buttons, lists, checkboxes, richtext editing, 2D graphics and so on. This book is designed for developers building tools and applications in Tk. But until now, it's been difficult to find out just how to take advantage of all those exciting enhancements. Newer versions of Tkinter represent a quantum leap forward, leaving behind the often ugly and outdated Tkinter appearance you may be familiar with. Install Tcl/Tk and Compile the Standard Python Distribution.13 Verifying your Install.13 The Obligatory First Program.14 A First (Real) Example.14 Design.14 Code.15 A Note on Coding Style.16 Step-by-Step Walkthrough.17 What's Missing.19 Tk Concepts.19 Widgets.19 Widget Classes.20 Window Hierarchy.20 Creating and Using Widgets.21 Configuration Options.21 Geometry Management.22 The Problem.23 How it Works.23 Event Handling.24 Command Callbacks.24 Event Bindings.25 Virtual Events.25 Multiple Bindings.26 Basic Widgets.26 Frame.26 Requested Size.27 Padding.27 Borders.27 Changing Styles.28 Label.28 Displaying Text.29 Displaying Images.29 Layout.29 2įonts, Colors and More.30 Button.31 Text or Image.31 The Command Callback.32 Button State.32 Checkbutton.33 Widget Value.33 Radiobutton.34 Entry.34 Passwords.35 Widget States.35 Validation.36 Combobox.36 Predefined Values.37 The Grid Geometry Manager.37 Columns and Rows.38 Spanning Multiple Cells.38 Layout within the Cell.39 Handling Resize.40 Padding.40 Additional Grid Features.42 Querying and Changing Grid Options.42 Internal Padding.43 Forget and Remove.This book will quickly get you up to speed with building attractive and modern graphical user interfaces with Python and Tkinter, it's standard GUI toolkit. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |