Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python GUI Programming Cookbook

You're reading from  Python GUI Programming Cookbook

Product type Book
Published in Dec 2015
Publisher
ISBN-13 9781785283758
Pages 350 pages
Edition 1st Edition
Languages
Author (1):
Burkhard Meier Burkhard Meier
Profile icon Burkhard Meier
Toc

Table of Contents (18) Chapters close

Python GUI Programming Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Creating the GUI Form and Adding Widgets 2. Layout Management 3. Look and Feel Customization 4. Data and Classes 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 Index

Index

A

  • appearance, of widgets
    • defining / Relief, sunken, and raised appearance of widgets, How to do it..., How it works...

B

  • bitmaps
    • using / Using bitmaps to make our GUI pretty, Getting ready, How to do it..., How it works...
  • buttons
    • creating / Getting ready, How to do it..., How it works...
    • text property, changing / Getting ready, How to do it..., How it works...

C

  • callback functions
    • writing / Writing callback functions, How to do it...
  • canvas widget
    • using / How to use the canvas widget
  • chart
    • creating / Creating our first chart, How to do it..., How it works...
    • labels, placing on / Placing labels on charts, How to do it..., How it works...
    • legend, adding to / How to give the chart a legend, How to do it..., How it works...
  • charts
    • creating, Matplotlib used / Creating beautiful charts using Matplotlib, How to do it..., How it works...
    • scaling / Scaling charts, Getting ready, How to do it..., How it works...
  • check button
    • creating, with different initial states / Creating a check button with different initial states, How it works...
  • Classic
    • about / Introduction
  • code naming convention
    • using / Using a code naming convention, How to do it...
  • code readability
    • about / How to do it…
  • combo box widgets
    • defining / Combo box widgets, How it works...
  • complexity
    • avoiding / Avoiding complexity, How to do it..., How it works...
  • controls
    • adding, wxPython used / Quickly adding controls using wxPython, How to do it..., How it works...
  • Coordinated Universal Time (UTC)
    • about / How to do it...
  • CRUD (Create, Read, Update, and Delete)
    • defining / Introduction

D

  • data
    • obtaining, from widget / How to get data from a widget, How to do it..., How it works...
    • storing, from MySQL database / Storing and retrieving data from our MySQL database, How to do it…
    • retrieving, from MySQL database / Storing and retrieving data from our MySQL database, How to do it…
  • debug output levels
    • configuring / Configuring different debug output levels, How to do it..., How it works...
  • debug watches
    • setting / Setting debug watches, How to do it..., How it works...
  • design patterns
    • using / How to use design patterns successfully, How to do it...
  • dialog widgets
    • used, for copying files to network / Using dialog widgets to copy files to your network, How to do it..., How it works...
  • Don't Repeat Yourself
    • about / How it works...
  • DRY principle
    • about / How it works...

E

  • Eastern Daylight Time (EDT)
    • about / How to do it...
  • Eclipse PyDev IDE
    • used, for writing unit tests / How to write unit tests using the Eclipse PyDev IDE, Getting ready, How to do it...

F

  • fall-down
    • and OOP coding, mixing / Mixing fall-down and OOP coding, How to do it..., How it works...
  • fixtures
    • about / How to do it...
    • references / How to do it...

G

  • grid layout manager
    • using / Using the grid layout manager, How to do it..., How it works...
  • GUI
    • preventing, from resizing / Getting ready, How it works...
    • improving, by coding in classes / How coding in classes can improve the GUI, How to do it...
    • localizing / Localizing the GUI, How to do it...
    • preparing, for internationalization / Preparing the GUI for internationalization, How to do it...
    • designing, in agile software development / How to design a GUI in an agile fashion, How to do it...
    • creating, unit tests used / Creating robust GUIs using unit tests, How to do it...
    • creating, in wxPython / How to create our GUI in wxPython, How to do it..., How it works...
    • defining, in 3D / Our GUI in 3D!, How to do it...
    • defining, into amazing colors / Our GUI in amazing colors, How to do it..., How it works...
  • GUI code
    • testing / Do we need to test the GUI code?, How to do it...
  • GUI form
    • label, adding to / Getting ready, How it works...
  • GUI frameworks
    • controlling, Python used / How to use Python to control two different GUI frameworks, How to do it...
  • GUI language
    • changing / Changing the entire GUI language all at once, How to do it..., How it works...
  • GUI widgets
    • aligning, by embedding frames within frames / Aligning the GUI widgets by embedding frames within frames, How to do it..., How it works...

I

  • icon, of main root window
    • changing / Changing the icon of the main root window, How it works...
  • independent message boxes
    • creating / How to create independent message boxes, How to do it..., How it works...
  • Integrated Development Environments (IDEs)
    • about / Setting debug watches
  • Inter-Process-Communication (IPC)
    • about / Introduction
  • Inter Process Communication (IPC)
    • about / Introduction

L

  • label frame widget
    • labels, arranging within / Arranging several labels within a label frame widget, How to do it..., How it works..., There's more...
  • labels
    • arranging, within label frame widget / Arranging several labels within a label frame widget, How to do it..., How it works..., There's more...
  • loop
    • several widgets, adding / Getting ready, How to do it...

M

  • Matplotlib
    • used, for creating charts / Creating beautiful charts using Matplotlib, How to do it..., How it works...
    • URL / Creating beautiful charts using Matplotlib
  • menu bars
    • creating / Creating menu bars, How to do it..., How it works...
  • message boxes
    • creating / Creating message boxes – information, warning, and error, How to do it..., How it works...
  • module-level global variables
    • using / Using module-level global variables, How to do it..., How it works...
  • modules
    • queues, passing among / Passing queues among different modules, How to do it..., How it works...
    • connecting, __init__ used / Using __init__ to connect modules, How to do it...
  • multiple threads
    • creating / How to create multiple threads, How to do it...
  • MySQL connection
    • configuring / Configuring the MySQL connection, How to do it…, How it works…
  • MySQL database
    • connecting, from Python / Connecting to a MySQL database from Python, How to do it…, How it works…
    • data, storing from / Storing and retrieving data from our MySQL database, How to do it…
    • data, retrieving from / Storing and retrieving data from our MySQL database, How to do it…
  • MySQL website
    • URL / Getting ready

N

  • network
    • dialog widgets used, for copying files to / Using dialog widgets to copy files to your network, How to do it..., How it works...
  • networks
    • TCP/IP used, for communicating via / Using TCP/IP to communicate via networks, How to do it..., How it works...
  • Numpy
    • about / How to do it...
    • URL / How to do it...

O

  • object-oriented-programming (OOP)
    • about / How to do it...
  • object-oriented programming (OOP)
    • about / Introduction
  • OOP
    • using / When not to use OOP, How to do it..., How it works...
  • OOP methodology
    • about / How to do it...

P

  • padding
    • used, for adding space around widgets / Using padding to add space around widgets, How it works...
  • Phoenix
    • about / Introduction
  • pip
    • used, for downloading Python modules / Matplotlib – downloading modules using pip, How to do it..., How it works...
  • PyDev
    • URL / How to do it...
  • PyGLet GUI development framework
    • used, for creating GUIs / PyGLet transforms our GUI more easily than PyOpenGL, How to do it..., How it works...
    • reference / How to do it...
  • PyOpenGL modules
    • importing / PyOpenGL transforms our GUI, How to do it..., How it works...
  • Python
    • used, for creating tooltips / Creating tooltips using Python, How to do it..., How it works...
    • MySQL database, connecting from / Connecting to a MySQL database from Python, How to do it…, How it works…
    • used, for controlling two different GUI frameworks / How to use Python to control two different GUI frameworks, How to do it...
  • Python 3
    • URL / Getting ready
  • Python connector driver
    • URL / How to do it…
  • Python Enhancement Proposal (PEP)
    • URL / Matplotlib – downloading modules with whl extensions
  • Python exception handling
    • URL / How to do it...
  • Python GUI
    • creating / Creating our first Python GUI, How it works..., There's more...
  • Python GUI database
    • designing / Designing the Python GUI database, How to do it…, How it works…
  • Python modules
    • downloading, pip used / Matplotlib – downloading modules using pip, How to do it..., How it works...
    • downloading, with whl extensions / Matplotlib – downloading modules with whl extensions, How to do it...
    • installing, URL / How to do it...
  • Python package installer website
    • URL / How to do it...

Q

  • queues
    • using / How to use queues, How to do it...
    • passing, among different modules / Passing queues among different modules, How to do it..., How it works...

R

  • radio button widgets
    • using / Using radio button widgets, How to do it..., How it works..., There's more...
  • reusable GUI components
    • creating / Creating reusable GUI components, How to do it...

S

  • scale of charts
    • adjusting / Adjusting the scale of charts dynamically, Getting ready, How to do it...
  • scrolled text widgets
    • using / Using scrolled text widgets, How to do it..., How it works...
  • self-testing code
    • creating, __main__ section used / Creating self-testing code using Python's __main__ section, How to do it...
  • single-threaded application
    • about / Introduction
  • slideshow
    • creating, tkinter used / Creating a slideshow using tkinter, How to do it...
  • snapshot-builds
    • URL / How to do it...
  • spaghetti code
    • avoiding / Avoiding spaghetti code, How to do it..., How it works...
    • about / Avoiding spaghetti code
  • spin box control
    • using / Using a spin box control, How to do it..., How it works...
  • SQL DELETE command
    • using / Using the SQL DELETE command, How to do it…, How it works…
  • SQL INSERT command
    • using / Using the SQL INSERT command, How to do it…
  • SQL UPDATE command
    • using / Using the SQL UPDATE command, How to do it…, How it works…
  • Stack Overflow
    • URL / Trying to embed a main wxPython app in a main tkinter app
  • Standard Time (EST)
    • about / How to do it...
  • StringVar()
    • using / How to use StringVar(), How to do it..., How it works...

T

  • tabbed widgets
    • creating / Creating tabbed widgets, How to do it...
  • tcl manual page
    • URL / There's more...
  • TCP/IP
    • used, for communicating via networks / Using TCP/IP to communicate via networks, How to do it..., How it works...
  • Test-Driven-Development (TDD)
    • about / How to do it...
  • text box widgets
    • defining / Text box widgets, How to do it..., How it works...
  • thread
    • starting / Starting a thread, Getting ready, How to do it..., How it works...
    • stopping / Stopping a thread, How to do it...
  • threads
    • URL / Introduction
  • tkinter
    • coding, defining / Getting ready
    • used, for creating slideshow / Creating a slideshow using tkinter, How to do it...
  • tkinter app
    • wxPython app, embedding in / Trying to embed a main wxPython app in a main tkinter app, How to do it..., How it works...
  • tkinter GUI code
    • embedding, into wxPython / Trying to embed our tkinter GUI code into wxPython, How to do it..., How it works...
  • tkinter widgets
    • URL / How it works...
  • tkinter window form title
    • creating / How to create the title of a tkinter window form, How it works...
  • tooltips
    • creating, Python used / Creating tooltips using Python, How to do it..., How it works...
  • two GUIs
    • communicating between / How to communicate between the two connected GUIs, How to do it...

U

  • unit tests
    • used, for creating robust GUIs / Creating robust GUIs using unit tests, How to do it...
    • writing, Eclipse PyDev IDE used / How to write unit tests using the Eclipse PyDev IDE, Getting ready, How to do it...
  • URLOpen
    • used, for reading data from websites / Using URLOpen to read data from websites, How to do it..., How it works...

W

  • websites
    • URLOpen used, for reading data from / Using URLOpen to read data from websites, How to do it..., How it works...
  • wheels, Python distribution
    • URL / How to do it...
  • whl extensions
    • used, for downloading Python modules / Matplotlib – downloading modules with whl extensions, How to do it...
  • widget
    • focus, setting to / Setting the focus to a widget and disabling widgets, How to do it...
    • disabling / Setting the focus to a widget and disabling widgets, How to do it...
    • data, obtaining from / How to get data from a widget, How to do it..., How it works...
  • widgets
    • adding, in loop / Adding several widgets in a loop, How to do it...
    • used, for expanding GUI / How widgets dynamically expand the GUI, How to do it..., How it works...
  • widget text
    • displaying, in different languages / Displaying widget text in different languages, How to do it...
  • wxPython
    • about / Introduction
    • URL / How to do it..., How it works...
    • GUI, creating / How to create our GUI in wxPython, How to do it..., How it works...
    • used, for adding controls / Quickly adding controls using wxPython, How to do it..., How it works...
    • reference / How to do it...
  • wxPython/Phoenix website
    • URL / How to do it...
  • wxPython app
    • embedding, in tkinter app / Trying to embed a main wxPython app in a main tkinter app, How to do it..., How it works...
  • wxPython GUI toolkit
    • URL / How to do it...
  • wxPython library
    • installing / How to install the wxPython library, How to do it..., How it works...
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}