import sys
from PyQt4 import QtGui
from winmain import Ui_MainWindow
import os

class Mainwin(QtGui.QMainWindow):
    def __init__(self, parent=None):
        super(Mainwin, self).__init__(parent)
        #QtGui.QWidget.__init__(self, parent)
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)

if __name__ == "__main__":
        app = QtGui.QApplication(sys.argv)
        myapp = Mainwin()
        myapp.show()
        sys.exit(app.exec_())

66f626a3307b15eb5d8cc678c28bd29118a4fed4
<mask token>

<mask token>


class Mainwin(QtGui.QMainWindow):
    <mask token>


<mask token>

<mask token>


class Mainwin(QtGui.QMainWindow):

    def __init__(self, parent=None):
        super(Mainwin, self).__init__(parent)
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)


<mask token>

<mask token>


class Mainwin(QtGui.QMainWindow):

    def __init__(self, parent=None):
        super(Mainwin, self).__init__(parent)
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)


if __name__ == '__main__':
    app = QtGui.QApplication(sys.argv)
    myapp = Mainwin()
    myapp.show()
    sys.exit(app.exec_())

import sys
from PyQt4 import QtGui
from winmain import Ui_MainWindow
import os

class Mainwin(QtGui.QMainWindow):
    def __init__(self, parent=None):
        super(Mainwin, self).__init__(parent)
        #QtGui.QWidget.__init__(self, parent)
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)

if __name__ == "__main__":
        app = QtGui.QApplication(sys.argv)
        myapp = Mainwin()
        myapp.show()
        sys.exit(app.exec_())
