PySide GUI Application Development - Second Edition by Gopinath Jaganmohan, Venkateshwaran Loganathan

By Gopinath Jaganmohan, Venkateshwaran Loganathan

Develop extra dynamic and strong GUI purposes utilizing PySide, an open resource cross-platform UI framework

About This Book

  • Designed for rookies that can assist you start with GUI software development
  • Develop your personal functions through growing personalized widgets and dialogs
  • Written in an easy and stylish constitution so that you simply know the way to software numerous GUI components

Who This booklet Is For

This e-book is written for Python programmers who are looking to find out about GUI programming. it's also appropriate if you are new to Python yet are conversant in object-oriented programming.

What you'll Learn

  • Program GUI functions in a simple and effective way
  • Download and set up PySide, a cross-platform GUI improvement toolkit for Python
  • Create menus, toolbars, prestige bars, and baby windows
  • Develop a textual content editor software in your own
  • Connect your GUI to a database and deal with it
  • Execute SQL queries by means of dealing with databases

In Detail

Elegantly-built GUI purposes are continuously a major hit between clients. PySide is an open resource software program undertaking that offers Python bindings for the Qt cross-platform UI framework. Combining the ability of Qt and Python, PySide offers quick access to the Qt framework for Python builders and in addition acts as a very good quick program improvement platform.

This e-book will take you thru every little thing you must recognize to increase UI purposes. you'll know about fitting and construction PySide in a variety of significant working structures in addition to the fundamentals of GUI programming. The ebook will then flow directly to speak about occasion administration, indications and slots, and the widgets and dialogs on hand with PySide. Database interplay and manipulation is additionally covered.

By the tip of this e-book, it is possible for you to to application GUI purposes successfully and grasp find out how to strengthen your individual purposes and the way to run them throughout platforms.

Style and approach

This is an available and useful consultant to constructing GUIs for Python applications.

Show description

Read Online or Download PySide GUI Application Development - Second Edition PDF

Best python books

Fundamentals of Python: From First Programs through Data Structures

In basics OF PYTHON: FROM FIRST courses via facts constructions, Washington and Lee college professor Kenneth A. Lambert provides the entire very important themes in CS1 and CS2 in a single quantity. This comparatively cheap structure presents teachers with a constant method of educating introductory programming and information constructions over a regular two-term direction series.

Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython

Python for info research is worried with the nuts and bolts of manipulating, processing, cleansing, and crunching information in Python. it's also a pragmatic, smooth advent to medical computing in Python, adapted for data-intensive purposes. this can be a booklet concerning the elements of the Python language and libraries you'll have to successfully resolve a huge set of information research difficulties.

Python and AWS

If you happen to intend to exploit Amazon internet prone (AWS) for distant computing and garage, Python is a perfect programming language for constructing functions and controlling your cloud-based infrastructure. This cookbook will get you begun with greater than dozen recipes for utilizing Python with AWS, according to the author’s boto library.

Artificial Intelligence with Python

Construct real-world man made Intelligence functions with Python to intelligently have interaction with the realm round you approximately This e-book Step into the superb global of clever apps utilizing this finished advisor input the area of man-made Intelligence, discover it, and create your personal functions paintings via easy but insightful examples that might get you up and working with synthetic Intelligence very quickly Who This booklet Is For This booklet is for Python builders who are looking to construct real-world man made Intelligence functions.

Additional info for PySide GUI Application Development - Second Edition

Sample text

The slot can be replaced by an excerpt of code or a user-defined function, which performs a set of operations. It is highly likely that the quit button may be pressed by mistake. If the application is quit without the user's confirmation there is a high chance of it being a mistake. So, we are going to display a confirmation message to the user on clicking the quit button. If the user wishes to quit, the application quits or the user can cancel it. The widely used widget for this purpose is QMessageBox.

Tracking time using timers Most of the GUI applications are time bound, and it is extremely important to use timers to capture information about the program runtime and other similar tasks. You may also use timers to generate some event at specified time intervals, calculate the elapsed time for some action, implement a countdown timer, and so on. This section of the chapter covers how to create and use timers in our application, and we will develop a digital clock application explaining the concept of timers.

Before that, we define the central widget of the application, which will aid the usage of menus. [ 43 ] Main Windows and Layout Management The central widget As we have seen earlier, the central area of the QMainWindow can be occupied by any kind of widget. This widget can be any of the following: • A standard Qt widget, such as QTextEdit or QGraphicsView • A custom widget created using primary widgets • A plain QWidget with a layout manager, which acts as a parent for many other widgets • Multiple widgets with a QSplitter, which arranges the widgets horizontally or vertically • MDI area, which acts as a parent for other MDI windows In our example, we use QTextEdit as the central widget.

Download PDF sample

Rated 4.47 of 5 – based on 28 votes