Hi
I was create a form in Qt Designer and saved as UR.ui (main title of this forms is "MainWindow") next write in terminal:
and open created file UR.py and write:
import sys
from PyQt4 import QtCore, QtGui
from UR import Ui_MainWindow
class StartQT4(QtGui.QMainWindow):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
myapp = StartQT4()
myapp.show()
sys.exit(app.exec_())
now when run I have error message "ImportError: cannot import name Ui_MainWindow"
wrrrrrr i have enough.... please help me how run and show this form in python???