<filename>detect_auto.py<gh_stars>0
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'detect.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(497, 370)
        Dialog.setStyleSheet(_fromUtf8(""))
        self.groupBox = QtGui.QGroupBox(Dialog)
        self.groupBox.setGeometry(QtCore.QRect(330, 20, 151, 80))
        self.groupBox.setTitle(_fromUtf8(""))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.rb1 = QtGui.QRadioButton(self.groupBox)
        self.rb1.setGeometry(QtCore.QRect(10, 20, 124, 25))
        self.rb1.setObjectName(_fromUtf8("rb1"))
        self.rb2 = QtGui.QRadioButton(self.groupBox)
        self.rb2.setGeometry(QtCore.QRect(10, 50, 124, 25))
        self.rb2.setObjectName(_fromUtf8("rb2"))
        self.pb_detect = QtGui.QPushButton(Dialog)
        self.pb_detect.setGeometry(QtCore.QRect(100, 120, 291, 151))
        self.pb_detect.setStyleSheet(_fromUtf8("background-color: rgb(255, 255, 255);"))
        self.pb_detect.setObjectName(_fromUtf8("pb_detect"))
        self.pb_login = QtGui.QPushButton(Dialog)
        self.pb_login.setGeometry(QtCore.QRect(20, 20, 112, 34))
        self.pb_login.setObjectName(_fromUtf8("pb_login"))
        self.label = QtGui.QLabel(Dialog)
        self.label.setGeometry(QtCore.QRect(40, 300, 351, 41))
        self.label.setText(_fromUtf8(""))
        self.label.setObjectName(_fromUtf8("label"))
        self.pb_send = QtGui.QPushButton(Dialog)
        self.pb_send.setEnabled(True)
        self.pb_send.setGeometry(QtCore.QRect(420, 300, 61, 34))
        self.pb_send.setObjectName(_fromUtf8("pb_send"))
        self.graphicsView = QtGui.QGraphicsView(Dialog)
        self.graphicsView.setGeometry(QtCore.QRect(0, 0, 501, 371))
        self.graphicsView.setStyleSheet(_fromUtf8("background-color:cyan;border-image: url(:/newPrefix/back.jpg) 0 0 0 0 stretch stretch;"))
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.graphicsView.raise_()
        self.groupBox.raise_()
        self.pb_detect.raise_()
        self.pb_login.raise_()
        self.label.raise_()
        self.pb_send.raise_()

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(_translate("Dialog", "检测".encode('utf-8'), None))
        self.rb1.setText(_translate("Dialog", "语音转手势".encode('utf-8'), None))
        self.rb2.setText(_translate("Dialog", "手势转语音".encode('utf-8'), None))
        self.pb_detect.setText(_translate("Dialog", "检测".encode('utf-8'), None))
        self.pb_login.setText(_translate("Dialog", "登录".encode('utf-8'), None))
        self.pb_send.setText(_translate("Dialog", "发送".encode('utf-8'), None))

import resource_rc

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    Dialog = QtGui.QDialog()
    ui = Ui_Dialog()
    ui.setupUi(Dialog)
    Dialog.show()
    sys.exit(app.exec_())


<filename>detect_auto.py<gh_stars>0
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'detect.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(497, 370)
        Dialog.setStyleSheet(_fromUtf8(""))
        self.groupBox = QtGui.QGroupBox(Dialog)
        self.groupBox.setGeometry(QtCore.QRect(330, 20, 151, 80))
        self.groupBox.setTitle(_fromUtf8(""))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.rb1 = QtGui.QRadioButton(self.groupBox)
        self.rb1.setGeometry(QtCore.QRect(10, 20, 124, 25))
        self.rb1.setObjectName(_fromUtf8("rb1"))
        self.rb2 = QtGui.QRadioButton(self.groupBox)
        self.rb2.setGeometry(QtCore.QRect(10, 50, 124, 25))
        self.rb2.setObjectName(_fromUtf8("rb2"))
        self.pb_detect = QtGui.QPushButton(Dialog)
        self.pb_detect.setGeometry(QtCore.QRect(100, 120, 291, 151))
        self.pb_detect.setStyleSheet(_fromUtf8("background-color: rgb(255, 255, 255);"))
        self.pb_detect.setObjectName(_fromUtf8("pb_detect"))
        self.pb_login = QtGui.QPushButton(Dialog)
        self.pb_login.setGeometry(QtCore.QRect(20, 20, 112, 34))
        self.pb_login.setObjectName(_fromUtf8("pb_login"))
        self.label = QtGui.QLabel(Dialog)
        self.label.setGeometry(QtCore.QRect(40, 300, 351, 41))
        self.label.setText(_fromUtf8(""))
        self.label.setObjectName(_fromUtf8("label"))
        self.pb_send = QtGui.QPushButton(Dialog)
        self.pb_send.setEnabled(True)
        self.pb_send.setGeometry(QtCore.QRect(420, 300, 61, 34))
        self.pb_send.setObjectName(_fromUtf8("pb_send"))
        self.graphicsView = QtGui.QGraphicsView(Dialog)
        self.graphicsView.setGeometry(QtCore.QRect(0, 0, 501, 371))
        self.graphicsView.setStyleSheet(_fromUtf8("background-color:cyan;border-image: url(:/newPrefix/back.jpg) 0 0 0 0 stretch stretch;"))
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.graphicsView.raise_()
        self.groupBox.raise_()
        self.pb_detect.raise_()
        self.pb_login.raise_()
        self.label.raise_()
        self.pb_send.raise_()

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(_translate("Dialog", "检测".encode('utf-8'), None))
        self.rb1.setText(_translate("Dialog", "语音转手势".encode('utf-8'), None))
        self.rb2.setText(_translate("Dialog", "手势转语音".encode('utf-8'), None))
        self.pb_detect.setText(_translate("Dialog", "检测".encode('utf-8'), None))
        self.pb_login.setText(_translate("Dialog", "登录".encode('utf-8'), None))
        self.pb_send.setText(_translate("Dialog", "发送".encode('utf-8'), None))

import resource_rc

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    Dialog = QtGui.QDialog()
    ui = Ui_Dialog()
    ui.setupUi(Dialog)
    Dialog.show()
    sys.exit(app.exec_())


# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'detect.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost!