|
1 # Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_default/src/eric7/MicroPython/MicroPythonWidget.ui' |
|
2 # |
|
3 # Created by: PyQt6 UI code generator 6.7.0 |
|
4 # |
|
5 # WARNING: Any manual changes made to this file will be lost when pyuic6 is |
|
6 # run again. Do not edit this file unless you know what you are doing. |
|
7 |
|
8 |
|
9 from PyQt6 import QtCore, QtGui, QtWidgets |
|
10 |
|
11 |
|
12 class Ui_MicroPythonWidget(object): |
|
13 def setupUi(self, MicroPythonWidget): |
|
14 MicroPythonWidget.setObjectName("MicroPythonWidget") |
|
15 MicroPythonWidget.resize(456, 548) |
|
16 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) |
|
17 sizePolicy.setHorizontalStretch(0) |
|
18 sizePolicy.setVerticalStretch(0) |
|
19 sizePolicy.setHeightForWidth(MicroPythonWidget.sizePolicy().hasHeightForWidth()) |
|
20 MicroPythonWidget.setSizePolicy(sizePolicy) |
|
21 self.verticalLayout = QtWidgets.QVBoxLayout(MicroPythonWidget) |
|
22 self.verticalLayout.setObjectName("verticalLayout") |
|
23 self.horizontalLayout = QtWidgets.QHBoxLayout() |
|
24 self.horizontalLayout.setObjectName("horizontalLayout") |
|
25 self.deviceIconLabel = QtWidgets.QLabel(parent=MicroPythonWidget) |
|
26 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed) |
|
27 sizePolicy.setHorizontalStretch(0) |
|
28 sizePolicy.setVerticalStretch(0) |
|
29 sizePolicy.setHeightForWidth(self.deviceIconLabel.sizePolicy().hasHeightForWidth()) |
|
30 self.deviceIconLabel.setSizePolicy(sizePolicy) |
|
31 self.deviceIconLabel.setMinimumSize(QtCore.QSize(48, 48)) |
|
32 self.deviceIconLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop) |
|
33 self.deviceIconLabel.setObjectName("deviceIconLabel") |
|
34 self.horizontalLayout.addWidget(self.deviceIconLabel) |
|
35 self.gridLayout = QtWidgets.QGridLayout() |
|
36 self.gridLayout.setObjectName("gridLayout") |
|
37 self.repopulateButton = QtWidgets.QToolButton(parent=MicroPythonWidget) |
|
38 self.repopulateButton.setObjectName("repopulateButton") |
|
39 self.gridLayout.addWidget(self.repopulateButton, 0, 1, 1, 1) |
|
40 self.menuButton = EricToolButton(parent=MicroPythonWidget) |
|
41 self.menuButton.setObjectName("menuButton") |
|
42 self.gridLayout.addWidget(self.menuButton, 0, 3, 1, 1) |
|
43 self.deviceTypeComboBox = QtWidgets.QComboBox(parent=MicroPythonWidget) |
|
44 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed) |
|
45 sizePolicy.setHorizontalStretch(0) |
|
46 sizePolicy.setVerticalStretch(0) |
|
47 sizePolicy.setHeightForWidth(self.deviceTypeComboBox.sizePolicy().hasHeightForWidth()) |
|
48 self.deviceTypeComboBox.setSizePolicy(sizePolicy) |
|
49 self.deviceTypeComboBox.setSizeAdjustPolicy(QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLengthWithIcon) |
|
50 self.deviceTypeComboBox.setObjectName("deviceTypeComboBox") |
|
51 self.gridLayout.addWidget(self.deviceTypeComboBox, 0, 0, 1, 1) |
|
52 self.deviceInfoLabel = QtWidgets.QLabel(parent=MicroPythonWidget) |
|
53 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) |
|
54 sizePolicy.setHorizontalStretch(0) |
|
55 sizePolicy.setVerticalStretch(0) |
|
56 sizePolicy.setHeightForWidth(self.deviceInfoLabel.sizePolicy().hasHeightForWidth()) |
|
57 self.deviceInfoLabel.setSizePolicy(sizePolicy) |
|
58 self.deviceInfoLabel.setWordWrap(True) |
|
59 self.deviceInfoLabel.setObjectName("deviceInfoLabel") |
|
60 self.gridLayout.addWidget(self.deviceInfoLabel, 1, 0, 1, 5) |
|
61 self.deviceConnectedLed = EricLed(parent=MicroPythonWidget) |
|
62 self.deviceConnectedLed.setObjectName("deviceConnectedLed") |
|
63 self.gridLayout.addWidget(self.deviceConnectedLed, 0, 4, 1, 1) |
|
64 self.webreplConfigButton = QtWidgets.QToolButton(parent=MicroPythonWidget) |
|
65 self.webreplConfigButton.setObjectName("webreplConfigButton") |
|
66 self.gridLayout.addWidget(self.webreplConfigButton, 0, 2, 1, 1) |
|
67 self.horizontalLayout.addLayout(self.gridLayout) |
|
68 self.verticalLayout.addLayout(self.horizontalLayout) |
|
69 self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
70 self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
71 self.runButton = QtWidgets.QToolButton(parent=MicroPythonWidget) |
|
72 self.runButton.setObjectName("runButton") |
|
73 self.horizontalLayout_2.addWidget(self.runButton) |
|
74 self.replButton = QtWidgets.QToolButton(parent=MicroPythonWidget) |
|
75 self.replButton.setCheckable(True) |
|
76 self.replButton.setObjectName("replButton") |
|
77 self.horizontalLayout_2.addWidget(self.replButton) |
|
78 self.filesButton = QtWidgets.QToolButton(parent=MicroPythonWidget) |
|
79 self.filesButton.setCheckable(True) |
|
80 self.filesButton.setObjectName("filesButton") |
|
81 self.horizontalLayout_2.addWidget(self.filesButton) |
|
82 self.chartButton = QtWidgets.QToolButton(parent=MicroPythonWidget) |
|
83 self.chartButton.setCheckable(True) |
|
84 self.chartButton.setObjectName("chartButton") |
|
85 self.horizontalLayout_2.addWidget(self.chartButton) |
|
86 spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
|
87 self.horizontalLayout_2.addItem(spacerItem) |
|
88 self.connectButton = QtWidgets.QToolButton(parent=MicroPythonWidget) |
|
89 self.connectButton.setObjectName("connectButton") |
|
90 self.horizontalLayout_2.addWidget(self.connectButton) |
|
91 self.verticalLayout.addLayout(self.horizontalLayout_2) |
|
92 self.replWidget = MicroPythonReplWidget(parent=MicroPythonWidget) |
|
93 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) |
|
94 sizePolicy.setHorizontalStretch(0) |
|
95 sizePolicy.setVerticalStretch(0) |
|
96 sizePolicy.setHeightForWidth(self.replWidget.sizePolicy().hasHeightForWidth()) |
|
97 self.replWidget.setSizePolicy(sizePolicy) |
|
98 self.replWidget.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus) |
|
99 self.replWidget.setObjectName("replWidget") |
|
100 self.verticalLayout.addWidget(self.replWidget) |
|
101 |
|
102 self.retranslateUi(MicroPythonWidget) |
|
103 QtCore.QMetaObject.connectSlotsByName(MicroPythonWidget) |
|
104 MicroPythonWidget.setTabOrder(self.deviceTypeComboBox, self.repopulateButton) |
|
105 MicroPythonWidget.setTabOrder(self.repopulateButton, self.webreplConfigButton) |
|
106 MicroPythonWidget.setTabOrder(self.webreplConfigButton, self.menuButton) |
|
107 MicroPythonWidget.setTabOrder(self.menuButton, self.runButton) |
|
108 MicroPythonWidget.setTabOrder(self.runButton, self.replButton) |
|
109 MicroPythonWidget.setTabOrder(self.replButton, self.filesButton) |
|
110 MicroPythonWidget.setTabOrder(self.filesButton, self.chartButton) |
|
111 MicroPythonWidget.setTabOrder(self.chartButton, self.connectButton) |
|
112 MicroPythonWidget.setTabOrder(self.connectButton, self.replWidget) |
|
113 |
|
114 def retranslateUi(self, MicroPythonWidget): |
|
115 _translate = QtCore.QCoreApplication.translate |
|
116 self.repopulateButton.setToolTip(_translate("MicroPythonWidget", "Press to detect connected devices and repopulate the device selector.")) |
|
117 self.webreplConfigButton.setToolTip(_translate("MicroPythonWidget", "Press to edit the list of configured WebREPL connections.")) |
|
118 self.runButton.setToolTip(_translate("MicroPythonWidget", "Press to run the current script on the selected device")) |
|
119 self.replButton.setToolTip(_translate("MicroPythonWidget", "Press to open a terminal (REPL) on the selected device")) |
|
120 self.filesButton.setToolTip(_translate("MicroPythonWidget", "Press to open a file manager on the selected device")) |
|
121 self.chartButton.setToolTip(_translate("MicroPythonWidget", "Press to open a chart window to display data receive from the selected device")) |
|
122 self.connectButton.setToolTip(_translate("MicroPythonWidget", "Press to connect the selected device")) |
|
123 from eric7.EricWidgets.EricLed import EricLed |
|
124 from eric7.EricWidgets.EricToolButton import EricToolButton |
|
125 from eric7.MicroPython.MicroPythonReplWidget import MicroPythonReplWidget |