O'Reilly logo

PySide GUI Application Development by Venkateshwaran Loganathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Importing PySide objects

Congratulations on setting up PySide successfully on your system. Now, it's time to do some real work using PySide. We have set up the PySide and now want to use it in our application. To do this, you have to import the PySide modules in your program to access the PySide data and functions. Here, let's learn some basics of importing modules in your Python program.

There are basically two ways widely followed when importing modules in Python. First, is to use a direct import <module> statement. This statement will import the module and create a reference to the module in the current namespace. If you have to refer to things (functions and data) that are defined in module, you can use module.function. Second, is to use

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required