Python GUI programming cookbook develop beautiful and powerful GUIs using the Python programming language

Master over 80 object-oriented recipes to create amazing GUIs in Python and revolutionize your applications today About This Book Use object-oriented programming to develop amazing GUIs in Python Create a working GUI project as a central resource for developing your Python GUIs Easy-to-follow recipe...

Descripción completa

Detalles Bibliográficos
Otros Autores: Meier, Burkhard A., author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing 2017.
Edición:Second edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630217206719
Tabla de Contenidos:
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewer
  • www.PacktPub.com
  • Customer Feedback
  • Table of Contents
  • Preface
  • Chapter 1: Creating the GUI Form and Adding Widgets
  • Introduction
  • Creating our first Python GUI
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Preventing the GUI from being resized
  • Getting ready
  • How to do it…
  • How it works…
  • Adding a label to the GUI form
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Creating buttons and changing their text property
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Text box widgets
  • Getting ready
  • How to do it…
  • How it works…
  • Setting the focus to a widget and disabling widgets
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Combo box widgets
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Creating a check button with different initial states
  • Getting ready
  • How to do it…
  • How it works…
  • Using radio button widgets
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Using scrolled text widgets
  • Getting ready
  • How to do it…
  • How it works…
  • Adding several widgets in a loop
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Chapter 2: Layout Management
  • Introduction
  • Arranging several labels within a label frame widget
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Using padding to add space around widgets
  • Getting ready
  • How to do it…
  • How it works…
  • How widgets dynamically expand the GUI
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Aligning the GUI widgets by embedding frames within frames
  • Getting ready
  • How to do it…
  • How it works…
  • Creating menu bars
  • Getting ready
  • How to do it…
  • How it works….
  • There's more…
  • Creating tabbed widgets
  • Getting ready
  • How to do it…
  • How it works…
  • Using the grid layout manager
  • Getting ready…
  • How to do it…
  • How it works…
  • Chapter 3: Look and Feel Customization
  • Introduction
  • Creating message boxes - information, warning, and error
  • Getting ready
  • How to do it…
  • How it works…
  • How to create independent message boxes
  • Getting ready
  • How to do it…
  • How it works…
  • How to create the title of a tkinter window form
  • Getting ready
  • How to do it…
  • How it works…
  • Changing the icon of the main root window
  • Getting ready
  • How to do it…
  • How it works…
  • Using a spin box control
  • Getting ready
  • How to do it...
  • How it works…
  • Relief, sunken and raised appearance of widgets
  • Getting ready
  • How to do it…
  • How it works…
  • Creating tooltips using Python
  • Getting ready
  • How to do it…
  • How it works…
  • Adding a progressbar to the GUI
  • Getting ready
  • How to do it…
  • How it works…
  • How to use the canvas widget
  • Getting ready
  • How to do it…
  • How it works…
  • Chapter 4: Data and Classes
  • Introduction
  • How to use StringVar()
  • Getting ready
  • How to do it…
  • How it works…
  • How to get data from a widget
  • Getting ready
  • How to do it…
  • How it works…
  • Using module-level global variables
  • Getting ready
  • How to do it…
  • How it works…
  • How coding in classes can improve the GUI
  • Getting ready
  • How to do it…
  • How it works…
  • Writing callback functions
  • Getting ready
  • How to do it…
  • How it works…
  • Creating reusable GUI components
  • Getting ready
  • How to do it…
  • How it works…
  • Chapter 5: Matplotlib Charts
  • Introduction
  • Creating beautiful charts using Matplotlib
  • Getting ready
  • How to do it…
  • How it works…
  • Installing Matplotlib using pip with whl extension
  • Getting ready
  • How to do it….
  • How it works…
  • Creating our first chart
  • Getting ready
  • How to do it…
  • How it works…
  • Placing labels on charts
  • Getting ready
  • How to do it...
  • How it works…
  • How to give the chart a legend
  • Getting ready
  • How to do it…
  • How it works…
  • Scaling charts
  • Getting ready
  • How to do it…
  • How it works…
  • Adjusting the scale of charts dynamically
  • Getting ready
  • How to do it…
  • How it works…
  • Chapter 6: Threads and Networking
  • Introduction
  • How to create multiple threads
  • Getting ready
  • How to do it…
  • How it works…
  • Starting a thread
  • Getting ready
  • How to do it…
  • How it works…
  • Stopping a thread
  • Getting ready
  • How to do it…
  • How it works…
  • How to use queues
  • Getting ready
  • How to do it…
  • How it works…
  • Passing queues among different modules
  • Getting ready
  • How to do it…
  • How it works…
  • Using dialog widgets to copy files to your network
  • Getting ready
  • How to do it…
  • How it works…
  • Using TCP/IP to communicate via networks
  • Getting ready
  • How to do it…
  • How it works…
  • Using urlopen to read data from websites
  • Getting ready
  • How to do it…
  • How it works…
  • Chapter 7: Storing Data in our MySQL Database via our GUI
  • Introduction
  • Installing and connecting to a MySQL server from Python
  • Getting ready
  • How to do it…
  • How it works…
  • Configuring the MySQL database connection
  • Getting ready
  • How to do it…
  • How it works…
  • Designing the Python GUI database
  • Getting ready
  • How to do it…
  • How it works…
  • Using the SQL INSERT command
  • Getting ready
  • How to do it…
  • How it works…
  • Using the SQL UPDATE command
  • Getting ready
  • How to do it…
  • How it works…
  • Using the SQL DELETE command
  • Getting ready
  • How to do it…
  • How it works…
  • Storing and retrieving data from our MySQL database
  • Getting ready
  • How to do it….
  • How it works…
  • Using the MySQL workbench
  • Getting ready
  • How to do it…
  • How it works…
  • There's more…
  • Chapter 8: Internationalization and Testing
  • Introduction
  • Displaying widget text in different languages
  • Getting ready
  • How to do it…
  • How it works…
  • Changing the entire GUI language, all at once
  • Getting ready
  • How to do it…
  • How it works…
  • Localizing the GUI
  • Getting ready
  • How to do it…
  • How it works…
  • Preparing the GUI for internationalization
  • Getting ready
  • How to do it…
  • How it works…
  • How to design a GUI in an agile fashion
  • Getting ready
  • How to do it…
  • How it works…
  • Do we need to test the GUI code?
  • Getting ready
  • How to do it…
  • How it works…
  • Setting debug watches
  • Getting ready
  • How to do it…
  • How it works…
  • Configuring different debug output levels
  • Getting ready
  • How to do it…
  • How it works…
  • Creating self-testing code using Python's __main__ section
  • Getting ready
  • How to do it…
  • How it works…
  • Creating robust GUIs using unit tests
  • Getting ready
  • How to do it…
  • How it works…
  • How to write unit tests using the Eclipse PyDev IDE
  • Getting ready
  • How to do it…
  • How it works…
  • Chapter 9: Extending Our GUI with the wxPython Library
  • Introduction
  • Installing the wxPython library
  • Getting ready
  • How to do it…
  • How it works…
  • Creating our GUI in wxPython
  • Getting ready
  • How to do it…
  • How it works…
  • Quickly adding controls using wxPython
  • Getting ready
  • How to do it…
  • How it works…
  • Trying to embed a main wxPython app in a main tkinter app
  • Getting ready
  • How to do it…
  • How it works…
  • Trying to embed our tkinter GUI code into wxPython
  • Getting ready
  • How to do it…
  • How it works…
  • Using Python to control two different GUI frameworks
  • Getting ready
  • How to do it…
  • How it works….
  • Communicating between the two connected GUIs
  • Getting ready
  • How to do it…
  • How it works…
  • Chapter 10: Creating Amazing 3D GUIs with PyOpenGL and PyGLet
  • Introduction
  • PyOpenGL transforms our GUI
  • Getting ready
  • How to do it…
  • How it works…
  • Our GUI in 3D!
  • Getting ready
  • How to do it…
  • How it works…
  • Using bitmaps to make our GUI pretty
  • Getting ready
  • How to do it…
  • How it works…
  • PyGLet transforms our GUI easier than PyOpenGL
  • How to do it…
  • How it works…
  • Our GUI in amazing colors
  • Getting ready
  • How to do it…
  • How it works…
  • OpenGL animation
  • Getting ready
  • How to do it…
  • How it works…
  • Creating a slide show using tkinter
  • Getting ready
  • How to do it…
  • How it works…
  • Chapter 11: Best Practices
  • Introduction
  • Avoiding spaghetti code
  • Getting ready
  • How to do it…
  • How it works…
  • Using __init__ to connect modules
  • Getting ready
  • How to do it…
  • How it works…
  • Mixing fall-down and OOP coding
  • Getting ready
  • How to do it…
  • How it works…
  • Using a code naming convention
  • Getting ready
  • How to do it…
  • How it works…
  • When not to use OOP
  • Getting ready
  • How to do it…
  • How it works…
  • How to use design patterns successfully
  • Getting ready
  • How to do it…
  • How it works…
  • Avoiding complexity
  • Getting ready
  • How to do it…
  • How it works…
  • GUI design using multiple notebooks
  • Getting ready
  • How to do it…
  • How it works…
  • Index.