Once your code gets larger, you need to advance to coding in OOP. This is because OOP gives us great flexibility in organizing your code. Once you use classes, you no longer have to physically place code above the code that calls it.
- [Instructor] In the previous video,…we looked at using global variables.…This video deals with improving the GUI…by coding in classes.…In this video, we're going to refactor our procedural code…into an OOP code.…So far, we have been coding in a procedural style.…This is a quick scripting method from Python.…Once our code gets larger and larger,…we need to advance to coding in OOP.…Why?…Among many other benefits,…OOP allows us to move code around by using methods.…
Once we use classes,…we no longer have to physically place code…above the code that calls it.…This gives us great flexibility in organizing our code.…We can write related code next to other code…and no longer have to worry that the code will not run…because the code does not sit above the code that calls it.…We could take that to some rather fancy extremes…by coding up modules that refer to methods…that are not being created within that module.…They rely on the runtime state,…having created those methods during the time the code runs.…
If the methods we call have not been created by that time,…
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
Python GUI Development with Tkinterwith Barron Stone4h 55m 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?
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.