The aim of this video is to create reusable components so that you don't have to copy-paste the code right from scratch.
- [Instructor] Last time, we saw how to move…our procedural code into an OOP code.…We are creating reusable GUI components…using Python.…In this video, we will keep it simple…by moving our ToolTip class into it's own module.…Next, we will import and use it,…for displaying ToolTips over several widgets of our GUI.…Here, we are building on our previous code.…How to do it?…Well, we will start by breaking out our ToolTip class…into a separate Python module.…
We will slightly enhance it to pass in the control widget…and the ToolTip text we wish to display…when we hover the mouse over the control.…We create a new Python module…and place the ToolTip class code into it,…and then import this module into our primary module.…We then reuse the imported ToolTip class…by creating several ToolTips…which could be seen when hovering the mouse…over several of our GUI widgets.…
Refactoring our common ToolTip class code…out into it's own module, helps us to reuse this code…from other modules.…Instead of copy, paste, modify, we use the DRY principal…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Creating buttons and widgets
- Adding labels and features
- Expanding a GUI dynamically
- Aligning frames and embedding frames
- Creating menu bars, message boxes, and tooltips
- Using module-level global variables
- Coding in classes
- Using Matplotlib to create charts
- Working with multiple threads, queues, and TCP/IP
- Using URLOpen to read data from websites
- Localizing a GUI and preparing for internationalization
- Testing a GUI using unit tests and Eclipse PyDev IDE
- Using the wxPython library
- Using Tkinter, PyOpenGL, and Pyglet
Skill Level Intermediate
1. Creating the GUI Form and Adding Widgets
2. Layout Management
3. Look and Feel Customization
4. Data and Classes
Using the StringVar() type8m 14s
5. Matplotlib Charts
6. Threads and Networking
7. Storing Data in Our MySQL Database via Our GUI
8. Internationalization and Testing
9. Extending Our GUI with the wxPython Library
10. Creating Amazing 3D GUIs with PyOpenGL and Pyglet
11. Best Practices
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.