舉報

會員
Tkinter GUI Programming by Example
ThisbookisforbeginnerstoGUIprogrammingwhohaven’tusedTkinteryetandareeagertostartbuildinggreat-lookinganduser-friendlyGUIs.PriorknowledgeofPythonprogrammingisexpected.
最新章節
- Leave a review - let other readers know what you think
- Other Books You May Enjoy
- Summary
- macOS
- Linux
- Windows
品牌:中圖公司
上架時間:2021-08-27 18:05:47
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Leave a review - let other readers know what you think 更新時間:2021-08-27 18:49:38
- Other Books You May Enjoy
- Summary
- macOS
- Linux
- Windows
- Cross-platform using Pip
- Installing our text editor
- Preparing to package with setup.py
- Adjusting our text editor for portability
- Packaging applications
- The Notebook widget
- The OptionMenu and Combobox widgets
- The Checkbutton and Radiobutton widgets
- The LabelFrame widget
- Unexplored widgets
- Wrapping Up – Packaging Our Applications to Share
- Summary
- Tying it all together
- Creating the server endpoints
- New database table
- Adding and blocking other users
- Manipulating images with PIL
- Updating the FriendsList class
- Adding server endpoints
- Adjusting the database
- The AvatarWindow class
- Allowing users to upload avatars
- Implementing the ListeningThread class in our ChatWindow
- The ListeningThread class
- Creating new endpoints
- Adding a Thread to our ChatWindow
- Using a thread
- Why use a thread with a GUI application?
- Using threads
- Making Friends – Finishing Our Chat Application
- Summary
- Updating our ChatWindow class to send requests to the server
- Adding the new endpoints to our Requester
- Using the Conversation class in our server
- Creating the Conversation class
- Updating our server to store conversations
- Connecting our ChatWindow
- Connecting our FriendsList to our web service
- Creating the Requester class
- Updating our FriendsList class
- Linking flask and sqlite
- Selecting data from a SQLite database
- Adding data to a SQLite database
- Creating a database and table
- The sqlite3 module
- Sending a POST request
- Sending a GET request
- The requests module
- Using JSON
- Our first web page
- Introduction to flask
- Connecting – Getting Our Chat Client Online
- Summary
- Creating our SmilieSelect class
- Creating our ChatWindow class
- Creating our FriendsList class
- Creating a scrollable frame
- Talk Python to Me – a Chat Application
- Summary
- Changing the editor's color scheme
- Saving the user's choices
- The Spinbox widget
- The Listbox widget
- Changing the editor's font
- Changing the syntax highlighting
- Handling files
- Adding a context menu to our text editor
- Adding a menu bar to our text editor
- A floating menu
- A menu bar
- The Menu widget
- Not Just for Restaurants – All About Menus
- Summary
- Using our FindWindow class
- Integrating our FindWindow class
- Using our LineNumbers class
- The LineNumbers class
- Using our Highlighter class
- The Highlighter class
- Adding syntax highlighting to our text editor
- Searching text
- Using tags
- Expanding our demo
- Word beginning and end
- Line beginning and end
- Vertical movement
- Horizontal movement
- Line endings
- Special strings
- Named indexes
- Getting the cursor's position
- Tkinter's indexing system
- Color Me Impressed! – Adding Syntax Highlighting
- Summary
- A second top-level window
- Events in our text editor
- Generating events
- Overwriting default events
- Binding an event
- Tkinter's event system
- Beginning our text editor
- Ttk style inheritance
- Styling a ttk widget
- Styling a tk widget
- The ttk submodule
- Creating a Highly Customizable Python Editor
- Summary
- Finishing off
- Running out of money
- Choosing to stick
- Choosing to hit
- The GameState class
- The GameScreen class
- Initializing the GameWindow class
- The blackjack.py file
- Creating the package
- Setting up a virtual environment
- The casino_sounds package
- The casino package
- The blackjack packages
- Python's module system
- The Finishing Touches – Sound and Animation
- Summary
- Playing our game
- The GameScreen class
- The GameState class
- Card Deck and Hand
- Creating a graphical blackjack game
- The Canvas widget
- Moving from the command line to a graphical interface
- Jack is Back in Style – the Blackjack GUI
- Summary
- Size and portability
- Ease of use
- Familiarity
- Interactivity
- Command line versus GUI
- The Game class and main loop
- The Hand class
- The Deck class
- The Card class
- Blackjack's classes
- Inheritance
- Instances
- Python's class system
- Back to the Command Line – Basic Blackjack
- Summary
- Getting text input
- Getting feedback from the user
- Showing warnings or errors
- Showing information with showinfo
- Showing messages
- Fixing our application
- Using and updating
- Creating Tkinter-compatible variables
- Our first try
- Using variables
- Adding interactivity
- Getting going
- To pack or to grid?
- place
- grid
- pack
- Geometry managers
- How will the code be structured?
- Installation
- Meet Tkinter
- Reviews
- Get in touch
- Conventions used
- Download the color images
- Download the example code files
- To get the most out of this book
- What this book covers
- Who this book is for
- Preface
- Packt is searching for authors like you
- About the reviewer
- About the author
- Contributors
- PacktPub.com
- Why subscribe?
- Packt Upsell
- Tkinter GUI Programming by Example
- Copyright and Credits
- Title Page
- 封面
- 封面
- Title Page
- Copyright and Credits
- Tkinter GUI Programming by Example
- Packt Upsell
- Why subscribe?
- PacktPub.com
- Contributors
- About the author
- About the reviewer
- Packt is searching for authors like you
- Preface
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Download the color images
- Conventions used
- Get in touch
- Reviews
- Meet Tkinter
- Installation
- How will the code be structured?
- Geometry managers
- pack
- grid
- place
- To pack or to grid?
- Getting going
- Adding interactivity
- Using variables
- Our first try
- Creating Tkinter-compatible variables
- Using and updating
- Fixing our application
- Showing messages
- Showing information with showinfo
- Showing warnings or errors
- Getting feedback from the user
- Getting text input
- Summary
- Back to the Command Line – Basic Blackjack
- Python's class system
- Instances
- Inheritance
- Blackjack's classes
- The Card class
- The Deck class
- The Hand class
- The Game class and main loop
- Command line versus GUI
- Interactivity
- Familiarity
- Ease of use
- Size and portability
- Summary
- Jack is Back in Style – the Blackjack GUI
- Moving from the command line to a graphical interface
- The Canvas widget
- Creating a graphical blackjack game
- Card Deck and Hand
- The GameState class
- The GameScreen class
- Playing our game
- Summary
- The Finishing Touches – Sound and Animation
- Python's module system
- The blackjack packages
- The casino package
- The casino_sounds package
- Setting up a virtual environment
- Creating the package
- The blackjack.py file
- Initializing the GameWindow class
- The GameScreen class
- The GameState class
- Choosing to hit
- Choosing to stick
- Running out of money
- Finishing off
- Summary
- Creating a Highly Customizable Python Editor
- The ttk submodule
- Styling a tk widget
- Styling a ttk widget
- Ttk style inheritance
- Beginning our text editor
- Tkinter's event system
- Binding an event
- Overwriting default events
- Generating events
- Events in our text editor
- A second top-level window
- Summary
- Color Me Impressed! – Adding Syntax Highlighting
- Tkinter's indexing system
- Getting the cursor's position
- Named indexes
- Special strings
- Line endings
- Horizontal movement
- Vertical movement
- Line beginning and end
- Word beginning and end
- Expanding our demo
- Using tags
- Searching text
- Adding syntax highlighting to our text editor
- The Highlighter class
- Using our Highlighter class
- The LineNumbers class
- Using our LineNumbers class
- Integrating our FindWindow class
- Using our FindWindow class
- Summary
- Not Just for Restaurants – All About Menus
- The Menu widget
- A menu bar
- A floating menu
- Adding a menu bar to our text editor
- Adding a context menu to our text editor
- Handling files
- Changing the syntax highlighting
- Changing the editor's font
- The Listbox widget
- The Spinbox widget
- Saving the user's choices
- Changing the editor's color scheme
- Summary
- Talk Python to Me – a Chat Application
- Creating a scrollable frame
- Creating our FriendsList class
- Creating our ChatWindow class
- Creating our SmilieSelect class
- Summary
- Connecting – Getting Our Chat Client Online
- Introduction to flask
- Our first web page
- Using JSON
- The requests module
- Sending a GET request
- Sending a POST request
- The sqlite3 module
- Creating a database and table
- Adding data to a SQLite database
- Selecting data from a SQLite database
- Linking flask and sqlite
- Updating our FriendsList class
- Creating the Requester class
- Connecting our FriendsList to our web service
- Connecting our ChatWindow
- Updating our server to store conversations
- Creating the Conversation class
- Using the Conversation class in our server
- Adding the new endpoints to our Requester
- Updating our ChatWindow class to send requests to the server
- Summary
- Making Friends – Finishing Our Chat Application
- Using threads
- Why use a thread with a GUI application?
- Using a thread
- Adding a Thread to our ChatWindow
- Creating new endpoints
- The ListeningThread class
- Implementing the ListeningThread class in our ChatWindow
- Allowing users to upload avatars
- The AvatarWindow class
- Adjusting the database
- Adding server endpoints
- Updating the FriendsList class
- Manipulating images with PIL
- Adding and blocking other users
- New database table
- Creating the server endpoints
- Tying it all together
- Summary
- Wrapping Up – Packaging Our Applications to Share
- Unexplored widgets
- The LabelFrame widget
- The Checkbutton and Radiobutton widgets
- The OptionMenu and Combobox widgets
- The Notebook widget
- Packaging applications
- Adjusting our text editor for portability
- Preparing to package with setup.py
- Installing our text editor
- Cross-platform using Pip
- Windows
- Linux
- macOS
- Summary
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-08-27 18:49:38