Created
August 25, 2014 14:52
-
-
Save wannaphong/aa037e92368b61495be6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Form implementation generated from reading ui file 'u.ui' | |
# | |
# Created: Mon Aug 25 21:48:20 2014 | |
# by: pyside-uic 0.2.15 running on PySide 1.2.2 | |
# | |
# WARNING! All changes made in this file will be lost! | |
import sys | |
from PySide import QtCore, QtGui | |
class Ui_Form(object): | |
def setupUi(self, Form): | |
Form.setObjectName("Form") | |
Form.resize(400, 300) | |
self.label = QtGui.QLabel(Form) | |
self.label.setGeometry(QtCore.QRect(80, 60, 231, 141)) | |
font = QtGui.QFont() | |
font.setPointSize(22) | |
self.label.setFont(font) | |
self.label.setObjectName("label") | |
self.retranslateUi(Form) | |
QtCore.QMetaObject.connectSlotsByName(Form) | |
def retranslateUi(self, Form): | |
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8)) | |
self.label.setText(QtGui.QApplication.translate("Form", "Hello World", None, QtGui.QApplication.UnicodeUTF8)) | |
class ControlMainWindow(QtGui.QMainWindow): | |
def __init__(self, parent=None): | |
super(ControlMainWindow, self).__init__(parent) | |
self.ui = Ui_Form() | |
self.ui.setupUi(self) | |
if __name__ == "__main__": | |
app = QtGui.QApplication(sys.argv) | |
mySW = ControlMainWindow() | |
mySW.show() | |
sys.exit(app.exec_()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment