자료유형 | 단행본 |
---|---|
서명/저자사항 | Python GUI Programming with Tkinter : Develop responsive and powerful GUI applications with Tkinter. [electronic resource]. |
개인저자 | Moore, Alan D. |
발행사항 | Birmingham: Packt Publishing, 2018. |
형태사항 | 1 online resource (442 pages). |
기타형태 저록 | Print version: Moore, Alan D. Python GUI Programming with Tkinter : Develop responsive and powerful GUI applications with Tkinter. Birmingham : Packt Publishing, ©2018 |
ISBN | 9781788835688 1788835689 |
일반주기 |
Chapter 6: Creating Menus with Menu and Tkinter Dialogs.
|
내용주기 | Cover; Title Page; Copyright and Credits; Dedication; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Introduction to Tkinter; Introducing Tkinter and Tk; Choosing Tkinter; Installing Tkinter; Installing Python 3 on Windows; Installing Python 3 on macOS; Installing Python 3 and Tkinter on Linux; Introducing IDLE; Using the shell mode of IDLE; Using the editor mode of IDLE; IDLE as a Tkinter example; Creating a Tkinter Hello World; Creating a better Hello World Tkinter; Summary; Chapter 2: Designing GUI Applications with Tkinter; A problem at ABQ AgriLabs. Assessing the problemGathering information about the problem; What you found out; Information about the data being collected; Information about the users of the application; Documenting specification requirements; Contents of a simple specification; Writing the ABQ data entry program specification; Designing the application; Exploring Tkinter input widgets; Grouping our fields; Laying out the form; Laying out the application; Summary; Chapter 3: Creating Basic Forms with Tkinter and ttk Widgets; Evaluating our technology choices; Choosing a technology; Exploring Tkinter widgets. The Entry widgetThe Spinbox widget; The Combobox widget; The Checkbutton widget; The Text widget; The Button widget; The LabelFrame widget; Implementing the application; Saving some time with a LabelInput class; Building the form; Adding LabelFrame and other widgets; Retrieving data from our form; Resetting our form; Building our application class; Saving to CSV; Finishing and testing; Summary; Chapter 4: Reducing User Error with Validation and Automation; Validating user input; Strategies to prevent data errors; Validation in Tkinter; Creating a DateEntry widget. Implementing validated widgets in our formExploiting the power of multiple inheritance; A validating mixin class; Building our widgets; Requiring data; A Date widget; A better Combobox widget; A range-limited Spinbox widget; Dynamically adjusting the Spinbox range; Updating our form; Displaying errors; Preventing form submission on error; Automating input; Inserting a date; Automating Lab, Time, and Technician; Summary; Chapter 5: Planning for the Expansion of Our Application; Separating concerns; The MVC pattern; What is a model?; What is a view?; What is a controller? Why complicate our design?Structuring our application directory; Basic directory structure; The abq_data_entry.py file; The README.rst file; ReStructuredText; Populating the docs folder; Making a Python package; Splitting our application into multiple files; Creating the models module; Moving the widgets; Moving the views; Removing redundancy in our view logic; Creating the application file; Running the application; Using version control software; A super-quick guide to using Git; Initializing and configuring a Git repository; Adding and committing code; Viewing and using our commits; Summary. |
요약 | Tkinter is a lightweight, portable, and easy-to-use graphical toolkit available in the Python Standard Library. Due to its simplicity and availability, it is widely used to build GUIs in Python. This book teaches how to design and build a functional, appealing, and user-friendly GUI using one of the most powerful languages: Python with Tkinter. |
일반주제명 | Graphical user interfaces --Programming. Python. Object-oriented programming. Computer programming --software development. Web programming. Programming & scripting languages: general. Computers --Programming --General. Computers --Internet --Application Development. Computers --Programming Languages --Python. |
언어 | 영어 |
바로가기 |