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