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

My first PySide application

Let's get our hands dirty with some real coding now. We are going to learn how to create our first and traditional "Hello World" application. Have a look at the code first and we will dissect the program line-by-line for a complete explanation of what it does. The code might look little strange to you at first but you will gain understanding as we move through.

# Import the necessary modules required import sys from PySide.QtCore import Qt from PySide.QtGui import QApplication, QLabel # Main Function if __name__ == '__main__': # Create the main application myApp = QApplication(sys.argv) # Create a Label and set its properties appLabel = QLabel() appLabel.setText("Hello, World!!!\n Look at my first app using PySide") ...

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