-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathUi_settingdlg.py
81 lines (72 loc) · 4.29 KB
/
Ui_settingdlg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/mnt/personal/code/pychmviewer/settingdlg.ui'
#
# Created: Sun Dec 12 21:06:01 2010
# by: PyQt4 UI code generator 4.8.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.resize(335, 329)
self.verticalLayout = QtGui.QVBoxLayout(Dialog)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.tabWidget = QtGui.QTabWidget(Dialog)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.verticalLayoutWidget_2 = QtGui.QWidget(self.tab)
self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(20, 40, 160, 80))
self.verticalLayoutWidget_2.setObjectName(_fromUtf8("verticalLayoutWidget_2"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.sessionRestoreCheckbox = QtGui.QCheckBox(self.verticalLayoutWidget_2)
self.sessionRestoreCheckbox.setObjectName(_fromUtf8("sessionRestoreCheckbox"))
self.verticalLayout_3.addWidget(self.sessionRestoreCheckbox)
self.openRemoteURLCheckbox = QtGui.QCheckBox(self.verticalLayoutWidget_2)
self.openRemoteURLCheckbox.setObjectName(_fromUtf8("openRemoteURLCheckbox"))
self.verticalLayout_3.addWidget(self.openRemoteURLCheckbox)
self.tabWidget.addTab(self.tab, _fromUtf8(""))
self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName(_fromUtf8("tab_2"))
self.fontInfoLabel = QtGui.QLabel(self.tab_2)
self.fontInfoLabel.setGeometry(QtCore.QRect(40, 130, 241, 91))
self.fontInfoLabel.setObjectName(_fromUtf8("fontInfoLabel"))
self.selectFontButton = QtGui.QPushButton(self.tab_2)
self.selectFontButton.setGeometry(QtCore.QRect(90, 70, 105, 25))
self.selectFontButton.setObjectName(_fromUtf8("selectFontButton"))
self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
self.verticalLayout_2.addWidget(self.tabWidget)
self.buttonBox = QtGui.QDialogButtonBox(Dialog)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.verticalLayout_2.addWidget(self.buttonBox)
self.verticalLayout.addLayout(self.verticalLayout_2)
self.retranslateUi(Dialog)
self.tabWidget.setCurrentIndex(0)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "settings", None, QtGui.QApplication.UnicodeUTF8))
self.sessionRestoreCheckbox.setText(QtGui.QApplication.translate("Dialog", "打开上一次的标签页", None, QtGui.QApplication.UnicodeUTF8))
self.openRemoteURLCheckbox.setText(QtGui.QApplication.translate("Dialog", "打开外部链接", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QtGui.QApplication.translate("Dialog", "启动", None, QtGui.QApplication.UnicodeUTF8))
self.fontInfoLabel.setText(QtGui.QApplication.translate("Dialog", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
self.selectFontButton.setText(QtGui.QApplication.translate("Dialog", "选择字体", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QtGui.QApplication.translate("Dialog", "字体", None, QtGui.QApplication.UnicodeUTF8))
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_())