The codes to implements the converted PYSIDE .py files

#importing relevant classes
from PySide.QtCore import *
from PySide.QtGui import *
import sys


#import the targeted converted Qt file
import welcomeScreen


#create class MainDialog and its relevant parameters
class MainDialog(QDialog, welcomeScreen.Ui_Dialog):


#initialize setupUi
def __init__(self, parent=None):
super(MainDialog, self).__init__(parent)
self.setupUi(self)


#sys.argv is a list of strings representing the arguments
app = QApplication(sys.argv)
form = MainDialog()
form.show()


#execute the python file
app.exec_()
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s