Cargando…

Python GUI programming cookbook : over 80 object-oriented recipes to help you create mind-blowing GUIs in Python /

Over 80 object-oriented recipes to help you create mind-blowing GUIs in Python 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 Packed with easy-to-follow recipes to help you develop c...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Meier, Burkhard (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2015.
Colección:Quick answers to common problems.
Temas:
Acceso en línea:Texto completo
Texto completo
Tabla de Contenidos:
  • Cover ; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Creating the GUI Form and Adding Widgets; Introduction; Creating our first Python GUI; Preventing the GUI from being resized; Adding a label to the GUI form; Creating buttons and changing their text property; Text box widgets; Setting the focus to a widget and disabling widgets; Combo box widgets; Creating a check button with different initial states; Using radio button widgets; Using scrolled text widgets; Adding several widgets in a loop; Chapter 2: Layout Management
  • IntroductionArranging several labels within a label frame widget; Using padding to add space around widgets; How widgets dynamically expand the GUI; Aligning the GUI widgets by embedding frames within frames; Creating menu bars; Creating tabbed widgets; Using the grid layout manager; Chapter 3: Look and Feel Customization; Introduction; Creating message boxes
  • information, warning, and error; How to create independent message boxes; How to create the title of a tkinter window form; Changing the icon of the main root window; Using a spin box control
  • Relief, sunken, and raised appearance of widgetsCreating tooltips using Python; How to use the canvas widget; Chapter 4: Data and Classes; Introduction; How to use StringVar(); How to get data from a widget; Using module-level global variables; How coding in classes can improve the GUI; Writing callback functions; Creating reusable GUI components; Chapter 5: Matplotlib Charts; Introduction; Creating beautiful charts using Matplotlib; Matplotlib
  • downloading modules using pip; Matplotlib
  • downloading modules with whl extensions; Creating our first chart; Placing labels on charts
  • How to give the chart a legendScaling charts; Adjusting the scale of charts dynamically; Chapter 6: Threads and Networking; Introduction; How to create multiple threads; Starting a thread; Stopping a thread; How to use queues; Passing queues among different modules; Using dialog widgets to copy files to your network; Using TCP/IP to communicate via networks; Using URLOpen to read data from websites; Chapter 7: Storing Data in Our MySQL Database via Our GUI; Introduction; Connecting to a MySQL database from Python; Configuring the MySQL connection; Designing the Python GUI database
  • Using the SQL INSERT commandUsing the SQL UPDATE command; Using the SQL DELETE command; Storing and retrieving data from our MySQL database; Chapter 8: Internationalization and Testing; Introduction; Displaying widget text in different languages; Changing the entire GUI language all at once; Localizing the GUI; Preparing the GUI for internationalization; How to design a GUI in an agile fashion; Do we need to test the GUI code?; Setting debug watches; Configuring different debug output levels; Creating self-testing code using Python's __main__ section; Creating robust GUIs using unit tests