python codes to implements the converted Qt MainWindow file

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

#import the targeted converted Qt file
import recoveryScreen

#create class MainWindow and its relevant parameters
class MainWindow(QMainWindow, recoveryScreen.Ui_MicrosoftWindowsFilesRecovery):

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

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

#execute the python file

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s