代码拉取完成,页面将自动刷新
同步操作将从 调试中.../Minicontrol 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Main_window.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
from CommonUtils import resource_path
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_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(385, 536)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout_2.addLayout(self.verticalLayout)
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
spacerItem = QtGui.QSpacerItem(72, 21, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.verticalLayout_2.addItem(spacerItem)
self.pushButton_7 = QtGui.QPushButton(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_7.sizePolicy().hasHeightForWidth())
self.pushButton_7.setSizePolicy(sizePolicy)
self.pushButton_7.setObjectName(_fromUtf8("pushButton_7"))
self.verticalLayout_2.addWidget(self.pushButton_7)
self.pushButton = QtGui.QPushButton(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton.sizePolicy().hasHeightForWidth())
self.pushButton.setSizePolicy(sizePolicy)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.verticalLayout_2.addWidget(self.pushButton)
self.pushButton_2 = QtGui.QPushButton(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_2.sizePolicy().hasHeightForWidth())
self.pushButton_2.setSizePolicy(sizePolicy)
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
self.verticalLayout_2.addWidget(self.pushButton_2)
self.pushButton_6 = QtGui.QPushButton(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_6.sizePolicy().hasHeightForWidth())
self.pushButton_6.setSizePolicy(sizePolicy)
self.pushButton_6.setObjectName(_fromUtf8("pushButton_6"))
self.verticalLayout_2.addWidget(self.pushButton_6)
self.pushButton_3 = QtGui.QPushButton(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_3.sizePolicy().hasHeightForWidth())
self.pushButton_3.setSizePolicy(sizePolicy)
self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
self.verticalLayout_2.addWidget(self.pushButton_3)
self.pushButton_4 = QtGui.QPushButton(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_4.sizePolicy().hasHeightForWidth())
self.pushButton_4.setSizePolicy(sizePolicy)
self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
self.verticalLayout_2.addWidget(self.pushButton_4)
self.pushButton_5 = QtGui.QPushButton(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_5.sizePolicy().hasHeightForWidth())
self.pushButton_5.setSizePolicy(sizePolicy)
self.pushButton_5.setObjectName(_fromUtf8("pushButton_5"))
self.verticalLayout_2.addWidget(self.pushButton_5)
self.pushButton_9 = QtGui.QPushButton(self.centralwidget)
self.pushButton_9.setObjectName(_fromUtf8("pushButton_9"))
self.verticalLayout_2.addWidget(self.pushButton_9)
spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.verticalLayout_2.addItem(spacerItem1)
self.horizontalLayout_2.addLayout(self.verticalLayout_2)
self.horizontalLayout_2.setStretch(0, 1)
self.verticalLayout_3.addLayout(self.horizontalLayout_2)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.lineEdit = QtGui.QLineEdit(self.centralwidget)
self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
self.horizontalLayout.addWidget(self.lineEdit)
self.pushButton_8 = QtGui.QPushButton(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_8.sizePolicy().hasHeightForWidth())
self.pushButton_8.setSizePolicy(sizePolicy)
self.pushButton_8.setObjectName(_fromUtf8("pushButton_8"))
self.horizontalLayout.addWidget(self.pushButton_8)
self.verticalLayout_3.addLayout(self.horizontalLayout)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.toolBar = QtGui.QToolBar(MainWindow)
self.toolBar.setObjectName(_fromUtf8("toolBar"))
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
self.actionHelp = QtGui.QAction(MainWindow)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(resource_path("resource/help.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionHelp.setIcon(icon)
self.actionHelp.setObjectName(_fromUtf8("actionHelp"))
self.actionSetting = QtGui.QAction(MainWindow)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(resource_path("resource/settings.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionSetting.setIcon(icon1)
self.actionSetting.setObjectName(_fromUtf8("actionSetting"))
self.actionConnect = QtGui.QAction(MainWindow)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(_fromUtf8(resource_path("resource/connect.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionConnect.setIcon(icon2)
self.actionConnect.setObjectName(_fromUtf8("actionConnect"))
self.actionDisconnect = QtGui.QAction(MainWindow)
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(_fromUtf8(resource_path("resource/disconnect.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionDisconnect.setIcon(icon3)
self.actionDisconnect.setObjectName(_fromUtf8("actionDisconnect"))
self.actionChoose = QtGui.QAction(MainWindow)
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(_fromUtf8(resource_path("resource/device.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionChoose.setIcon(icon4)
self.actionChoose.setObjectName(_fromUtf8("actionChoose"))
self.toolBar.addAction(self.actionConnect)
self.toolBar.addAction(self.actionDisconnect)
self.toolBar.addAction(self.actionSetting)
self.toolBar.addAction(self.actionChoose)
self.toolBar.addAction(self.actionHelp)
self.retranslateUi(MainWindow)
QtCore.QObject.connect(self.pushButton_7, QtCore.SIGNAL(_fromUtf8("pressed()")), MainWindow.onPowerPress)
QtCore.QObject.connect(self.pushButton_7, QtCore.SIGNAL(_fromUtf8("released()")), MainWindow.onPowerRelease)
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("pressed()")), MainWindow.onHomePress)
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("released()")), MainWindow.onHomeRelease)
QtCore.QObject.connect(self.pushButton_2, QtCore.SIGNAL(_fromUtf8("pressed()")), MainWindow.onMenuPress)
QtCore.QObject.connect(self.pushButton_2, QtCore.SIGNAL(_fromUtf8("released()")), MainWindow.onMenuRelease)
QtCore.QObject.connect(self.pushButton_6, QtCore.SIGNAL(_fromUtf8("released()")), MainWindow.onRecentsPress)
QtCore.QObject.connect(self.pushButton_6, QtCore.SIGNAL(_fromUtf8("released()")), MainWindow.onRecentsRelease)
QtCore.QObject.connect(self.pushButton_3, QtCore.SIGNAL(_fromUtf8("pressed()")), MainWindow.onBackPress)
QtCore.QObject.connect(self.pushButton_3, QtCore.SIGNAL(_fromUtf8("released()")), MainWindow.onBackRelease)
QtCore.QObject.connect(self.pushButton_4, QtCore.SIGNAL(_fromUtf8("pressed()")), MainWindow.onVolIncPress)
QtCore.QObject.connect(self.pushButton_4, QtCore.SIGNAL(_fromUtf8("released()")), MainWindow.onVolIncRelease)
QtCore.QObject.connect(self.pushButton_5, QtCore.SIGNAL(_fromUtf8("pressed()")), MainWindow.onVolDecPress)
QtCore.QObject.connect(self.pushButton_5, QtCore.SIGNAL(_fromUtf8("released()")), MainWindow.onVolDecRelease)
QtCore.QObject.connect(self.pushButton_8, QtCore.SIGNAL(_fromUtf8("clicked()")), MainWindow.onSendClick)
QtCore.QObject.connect(self.toolBar, QtCore.SIGNAL(_fromUtf8("actionTriggered(QAction*)")), MainWindow.onActionTriggered)
QtCore.QObject.connect(self.pushButton_9, QtCore.SIGNAL(_fromUtf8("pressed()")), MainWindow.onCapturePress)
QtCore.QObject.connect(self.pushButton_9, QtCore.SIGNAL(_fromUtf8("released()")), MainWindow.onCaptureRelease)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
self.pushButton_7.setText(_translate("MainWindow", "Power", None))
self.pushButton.setText(_translate("MainWindow", "Home", None))
self.pushButton_2.setText(_translate("MainWindow", "Menu", None))
self.pushButton_6.setText(_translate("MainWindow", "Recents", None))
self.pushButton_3.setText(_translate("MainWindow", "Back", None))
self.pushButton_4.setText(_translate("MainWindow", "Vol+", None))
self.pushButton_5.setText(_translate("MainWindow", "Vol-", None))
self.pushButton_9.setText(_translate("MainWindow", "Capture", None))
self.pushButton_8.setText(_translate("MainWindow", "Send", None))
self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None))
self.actionHelp.setText(_translate("MainWindow", "使用帮助", None))
self.actionSetting.setText(_translate("MainWindow", "设置", None))
self.actionSetting.setToolTip(_translate("MainWindow", "adb路径、显示大小设置", None))
self.actionSetting.setShortcut(_translate("MainWindow", "Ctrl+X", None))
self.actionConnect.setText(_translate("MainWindow", "连接手机", None))
self.actionConnect.setToolTip(_translate("MainWindow", "连接手机", None))
self.actionConnect.setShortcut(_translate("MainWindow", "Ctrl+Z", None))
self.actionDisconnect.setText(_translate("MainWindow", "断开连接", None))
self.actionDisconnect.setToolTip(_translate("MainWindow", "断开连接", None))
self.actionDisconnect.setShortcut(_translate("MainWindow", "Ctrl+D", None))
self.actionChoose.setText(_translate("MainWindow", "选择设备", None))
self.actionChoose.setToolTip(_translate("MainWindow", "选择设备", None))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。