-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUi_settingsModbusRTU.py
132 lines (125 loc) · 8.47 KB
/
Ui_settingsModbusRTU.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'settingsmodbusrtu.ui'
#
# Created: Fri Dec 07 10:52:24 2012
# by: PyQt4 UI code generator 4.9.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_SettingsModbusRTU(object):
def setupUi(self, SettingsModbusRTU):
SettingsModbusRTU.setObjectName(_fromUtf8("SettingsModbusRTU"))
SettingsModbusRTU.resize(180, 180)
SettingsModbusRTU.setMinimumSize(QtCore.QSize(180, 180))
SettingsModbusRTU.setMaximumSize(QtCore.QSize(240, 240))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/options-16.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
SettingsModbusRTU.setWindowIcon(icon)
SettingsModbusRTU.setModal(True)
self.verticalLayout = QtGui.QVBoxLayout(SettingsModbusRTU)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.lblPort = QtGui.QLabel(SettingsModbusRTU)
self.lblPort.setMinimumSize(QtCore.QSize(0, 0))
self.lblPort.setObjectName(_fromUtf8("lblPort"))
self.gridLayout.addWidget(self.lblPort, 0, 0, 1, 1)
self.cmbPort = QtGui.QComboBox(SettingsModbusRTU)
self.cmbPort.setEditable(True)
self.cmbPort.setObjectName(_fromUtf8("cmbPort"))
self.cmbPort.addItem(_fromUtf8(""))
self.cmbPort.addItem(_fromUtf8(""))
self.cmbPort.addItem(_fromUtf8(""))
self.cmbPort.addItem(_fromUtf8(""))
self.gridLayout.addWidget(self.cmbPort, 0, 1, 1, 1)
self.cmbBaud = QtGui.QComboBox(SettingsModbusRTU)
self.cmbBaud.setObjectName(_fromUtf8("cmbBaud"))
self.cmbBaud.addItem(_fromUtf8(""))
self.cmbBaud.addItem(_fromUtf8(""))
self.cmbBaud.addItem(_fromUtf8(""))
self.cmbBaud.addItem(_fromUtf8(""))
self.cmbBaud.addItem(_fromUtf8(""))
self.cmbBaud.addItem(_fromUtf8(""))
self.cmbBaud.addItem(_fromUtf8(""))
self.cmbBaud.addItem(_fromUtf8(""))
self.gridLayout.addWidget(self.cmbBaud, 1, 1, 1, 1)
self.lblBaud = QtGui.QLabel(SettingsModbusRTU)
self.lblBaud.setObjectName(_fromUtf8("lblBaud"))
self.gridLayout.addWidget(self.lblBaud, 1, 0, 1, 1)
self.lblDataBits = QtGui.QLabel(SettingsModbusRTU)
self.lblDataBits.setObjectName(_fromUtf8("lblDataBits"))
self.gridLayout.addWidget(self.lblDataBits, 2, 0, 1, 1)
self.cmbDataBits = QtGui.QComboBox(SettingsModbusRTU)
self.cmbDataBits.setObjectName(_fromUtf8("cmbDataBits"))
self.cmbDataBits.addItem(_fromUtf8(""))
self.cmbDataBits.addItem(_fromUtf8(""))
self.gridLayout.addWidget(self.cmbDataBits, 2, 1, 1, 1)
self.lblStopBits = QtGui.QLabel(SettingsModbusRTU)
self.lblStopBits.setObjectName(_fromUtf8("lblStopBits"))
self.gridLayout.addWidget(self.lblStopBits, 3, 0, 1, 1)
self.cmbStopBits = QtGui.QComboBox(SettingsModbusRTU)
self.cmbStopBits.setObjectName(_fromUtf8("cmbStopBits"))
self.cmbStopBits.addItem(_fromUtf8(""))
self.cmbStopBits.addItem(_fromUtf8(""))
self.cmbStopBits.addItem(_fromUtf8(""))
self.gridLayout.addWidget(self.cmbStopBits, 3, 1, 1, 1)
self.lblParity = QtGui.QLabel(SettingsModbusRTU)
self.lblParity.setObjectName(_fromUtf8("lblParity"))
self.gridLayout.addWidget(self.lblParity, 4, 0, 1, 1)
self.cmbParity = QtGui.QComboBox(SettingsModbusRTU)
self.cmbParity.setObjectName(_fromUtf8("cmbParity"))
self.cmbParity.addItem(_fromUtf8(""))
self.cmbParity.addItem(_fromUtf8(""))
self.cmbParity.addItem(_fromUtf8(""))
self.gridLayout.addWidget(self.cmbParity, 4, 1, 1, 1)
self.verticalLayout.addLayout(self.gridLayout)
self.buttonBox = QtGui.QDialogButtonBox(SettingsModbusRTU)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.verticalLayout.addWidget(self.buttonBox)
self.lblPort.setBuddy(self.cmbPort)
self.lblBaud.setBuddy(self.cmbBaud)
self.lblDataBits.setBuddy(self.cmbDataBits)
self.lblStopBits.setBuddy(self.cmbStopBits)
self.lblParity.setBuddy(self.cmbParity)
self.retranslateUi(SettingsModbusRTU)
self.cmbBaud.setCurrentIndex(4)
self.cmbDataBits.setCurrentIndex(1)
self.cmbStopBits.setCurrentIndex(0)
self.cmbParity.setCurrentIndex(0)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), SettingsModbusRTU.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), SettingsModbusRTU.reject)
QtCore.QMetaObject.connectSlotsByName(SettingsModbusRTU)
def retranslateUi(self, SettingsModbusRTU):
SettingsModbusRTU.setWindowTitle(QtGui.QApplication.translate("SettingsModbusRTU", "Modbus RTU Settings", None, QtGui.QApplication.UnicodeUTF8))
self.lblPort.setText(QtGui.QApplication.translate("SettingsModbusRTU", "Serial port", None, QtGui.QApplication.UnicodeUTF8))
self.cmbPort.setItemText(0, QtGui.QApplication.translate("SettingsModbusRTU", "1", None, QtGui.QApplication.UnicodeUTF8))
self.cmbPort.setItemText(1, QtGui.QApplication.translate("SettingsModbusRTU", "2", None, QtGui.QApplication.UnicodeUTF8))
self.cmbPort.setItemText(2, QtGui.QApplication.translate("SettingsModbusRTU", "3", None, QtGui.QApplication.UnicodeUTF8))
self.cmbPort.setItemText(3, QtGui.QApplication.translate("SettingsModbusRTU", "4", None, QtGui.QApplication.UnicodeUTF8))
self.cmbBaud.setItemText(0, QtGui.QApplication.translate("SettingsModbusRTU", "1200", None, QtGui.QApplication.UnicodeUTF8))
self.cmbBaud.setItemText(1, QtGui.QApplication.translate("SettingsModbusRTU", "2400", None, QtGui.QApplication.UnicodeUTF8))
self.cmbBaud.setItemText(2, QtGui.QApplication.translate("SettingsModbusRTU", "4800", None, QtGui.QApplication.UnicodeUTF8))
self.cmbBaud.setItemText(3, QtGui.QApplication.translate("SettingsModbusRTU", "9600", None, QtGui.QApplication.UnicodeUTF8))
self.cmbBaud.setItemText(4, QtGui.QApplication.translate("SettingsModbusRTU", "19200", None, QtGui.QApplication.UnicodeUTF8))
self.cmbBaud.setItemText(5, QtGui.QApplication.translate("SettingsModbusRTU", "38400", None, QtGui.QApplication.UnicodeUTF8))
self.cmbBaud.setItemText(6, QtGui.QApplication.translate("SettingsModbusRTU", "57600", None, QtGui.QApplication.UnicodeUTF8))
self.cmbBaud.setItemText(7, QtGui.QApplication.translate("SettingsModbusRTU", "115200", None, QtGui.QApplication.UnicodeUTF8))
self.lblBaud.setText(QtGui.QApplication.translate("SettingsModbusRTU", "Baud", None, QtGui.QApplication.UnicodeUTF8))
self.lblDataBits.setText(QtGui.QApplication.translate("SettingsModbusRTU", "Data Bits", None, QtGui.QApplication.UnicodeUTF8))
self.cmbDataBits.setItemText(0, QtGui.QApplication.translate("SettingsModbusRTU", "7", None, QtGui.QApplication.UnicodeUTF8))
self.cmbDataBits.setItemText(1, QtGui.QApplication.translate("SettingsModbusRTU", "8", None, QtGui.QApplication.UnicodeUTF8))
self.lblStopBits.setText(QtGui.QApplication.translate("SettingsModbusRTU", "Stop Bits", None, QtGui.QApplication.UnicodeUTF8))
self.cmbStopBits.setItemText(0, QtGui.QApplication.translate("SettingsModbusRTU", "1", None, QtGui.QApplication.UnicodeUTF8))
self.cmbStopBits.setItemText(1, QtGui.QApplication.translate("SettingsModbusRTU", "1.5", None, QtGui.QApplication.UnicodeUTF8))
self.cmbStopBits.setItemText(2, QtGui.QApplication.translate("SettingsModbusRTU", "2", None, QtGui.QApplication.UnicodeUTF8))
self.lblParity.setText(QtGui.QApplication.translate("SettingsModbusRTU", "Parity", None, QtGui.QApplication.UnicodeUTF8))
self.cmbParity.setItemText(0, QtGui.QApplication.translate("SettingsModbusRTU", "None", None, QtGui.QApplication.UnicodeUTF8))
self.cmbParity.setItemText(1, QtGui.QApplication.translate("SettingsModbusRTU", "Odd", None, QtGui.QApplication.UnicodeUTF8))
self.cmbParity.setItemText(2, QtGui.QApplication.translate("SettingsModbusRTU", "Even", None, QtGui.QApplication.UnicodeUTF8))
import pyModSlaveQt_rc