from PyQt4.QtGui import *
from ui_mainwindow import Ui_MainWindow


class Window(QMainWindow, Ui_MainWindow):

    def __init__(self, parent=None):
        QMainWindow.__init__(self, parent)
self.setupUi(self)
PyQt4 trouble creating a simple GUI application