PySide – Introduction – part 002

First, PySide itself is licensed under LGPLv2.1, most of the examples are licensed under GPLv2.
After importing PySide then you can see all PySide python submodule:

Also this can help you to see all about Qt components and versions using by PySide:
Let’s how can do it:

Something about PySide submodules:
QtCore – core non-GUI functionality;
QtGui – extends QtCore with GUI functionality;
QtNetwork – offers classes that allow you to write TCP/IP clients and servers;
QtOpenGL – offers classes that make it easy to use OpenGL in Qt applications;
QtScript – provides classes for making Qt applications scriptable;
QtSql – helps you provide seamless database integration to your Qt applications;
QtSvg – provides classes for displaying the contents of SVG files;
QtWebkit – provides a Web browser engine;
The QtTest submodule can be used to test your PySide script code.
The structure PySide application can be seen under my first tutorial.
About this PySide application, most of this can be created with classes
To make one GUI ( ) just import QtGUI with your class …
This source code can be used also you can get some errors:

You need sys python module also the application can have this option: sys.argv .
You can searching and used all your widgets.
For example :

The title of your application will be python.
You can set this title bellow show method, with :

Now, about my class Example from PySide-introduction-part-001 – I will tell you how to make one simple class example.
First I used this class named Example with these methods:

Into __init___ I used super() method.
The main reason I used this it’s :
-the super() method lets you avoid referring to the base class explicitly and let you use multiple inheritances.
The main function comes with some source code:
Make the application :

and also put my widgets under this with this python code:

About events, I will make another tutorial …

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.