Skip to content

Commit 486de77

Browse files
Recompile ui
1 parent bffbae2 commit 486de77

3 files changed

Lines changed: 1232 additions & 1197 deletions

File tree

examples/pynotepad/forms/main_window.ui

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,19 @@
1919
</property>
2020
<widget class="QWidget" name="centralwidget">
2121
<layout class="QGridLayout" name="gridLayout">
22-
<property name="horizontalSpacing">
22+
<property name="leftMargin">
23+
<number>0</number>
24+
</property>
25+
<property name="topMargin">
26+
<number>0</number>
27+
</property>
28+
<property name="rightMargin">
29+
<number>0</number>
30+
</property>
31+
<property name="bottomMargin">
2332
<number>0</number>
2433
</property>
25-
<property name="margin">
34+
<property name="horizontalSpacing">
2635
<number>0</number>
2736
</property>
2837
<item row="1" column="0">
@@ -36,13 +45,18 @@
3645
<x>0</x>
3746
<y>0</y>
3847
<width>847</width>
39-
<height>35</height>
48+
<height>27</height>
4049
</rect>
4150
</property>
4251
<widget class="QMenu" name="menuFile">
4352
<property name="title">
4453
<string>File</string>
4554
</property>
55+
<widget class="QMenu" name="menuPython_interpreter">
56+
<property name="title">
57+
<string>Python interpreter</string>
58+
</property>
59+
</widget>
4660
<addaction name="actionNew"/>
4761
<addaction name="actionOpen"/>
4862
<addaction name="actionSave"/>
@@ -51,6 +65,7 @@
5165
<addaction name="actionConfigure_run"/>
5266
<addaction name="actionRun"/>
5367
<addaction name="separator"/>
68+
<addaction name="menuPython_interpreter"/>
5469
<addaction name="separator"/>
5570
<addaction name="actionQuit"/>
5671
</widget>
@@ -251,6 +266,16 @@
251266
<bool>true</bool>
252267
</property>
253268
</action>
269+
<action name="actionPython_2">
270+
<property name="text">
271+
<string>Python 2</string>
272+
</property>
273+
</action>
274+
<action name="actionPython_3">
275+
<property name="text">
276+
<string>Python 3</string>
277+
</property>
278+
</action>
254279
</widget>
255280
<customwidgets>
256281
<customwidget>

examples/pynotepad/pynotepad/forms/main_window_ui.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22

3-
# Form implementation generated from reading ui file '/home/colin/pyqode/python/examples/pynotepad/forms/main_window.ui'
3+
# Form implementation generated from reading ui file '/home/colin/Documents/pyqode/python/examples/pynotepad/forms/main_window.ui'
44
#
5-
# Created: Tue Feb 24 21:30:08 2015
5+
# Created: Thu Feb 26 08:16:23 2015
66
# by: PyQt5 UI code generator 5.4
77
#
88
# WARNING! All changes made in this file will be lost!
@@ -27,10 +27,12 @@ def setupUi(self, MainWindow):
2727
self.gridLayout.addWidget(self.tabWidget, 1, 0, 1, 1)
2828
MainWindow.setCentralWidget(self.centralwidget)
2929
self.menubar = QtWidgets.QMenuBar(MainWindow)
30-
self.menubar.setGeometry(QtCore.QRect(0, 0, 847, 35))
30+
self.menubar.setGeometry(QtCore.QRect(0, 0, 847, 27))
3131
self.menubar.setObjectName("menubar")
3232
self.menuFile = QtWidgets.QMenu(self.menubar)
3333
self.menuFile.setObjectName("menuFile")
34+
self.menuPython_interpreter = QtWidgets.QMenu(self.menuFile)
35+
self.menuPython_interpreter.setObjectName("menuPython_interpreter")
3436
self.menuEdit = QtWidgets.QMenu(self.menubar)
3537
self.menuEdit.setObjectName("menuEdit")
3638
self.menuModes = QtWidgets.QMenu(self.menubar)
@@ -116,6 +118,10 @@ def setupUi(self, MainWindow):
116118
self.actionConfigure_run.setIcon(icon8)
117119
self.actionConfigure_run.setIconVisibleInMenu(True)
118120
self.actionConfigure_run.setObjectName("actionConfigure_run")
121+
self.actionPython_2 = QtWidgets.QAction(MainWindow)
122+
self.actionPython_2.setObjectName("actionPython_2")
123+
self.actionPython_3 = QtWidgets.QAction(MainWindow)
124+
self.actionPython_3.setObjectName("actionPython_3")
119125
self.menuFile.addAction(self.actionNew)
120126
self.menuFile.addAction(self.actionOpen)
121127
self.menuFile.addAction(self.actionSave)
@@ -124,6 +130,7 @@ def setupUi(self, MainWindow):
124130
self.menuFile.addAction(self.actionConfigure_run)
125131
self.menuFile.addAction(self.actionRun)
126132
self.menuFile.addSeparator()
133+
self.menuFile.addAction(self.menuPython_interpreter.menuAction())
127134
self.menuFile.addSeparator()
128135
self.menuFile.addAction(self.actionQuit)
129136
self.menu.addAction(self.actionAbout)
@@ -148,6 +155,7 @@ def retranslateUi(self, MainWindow):
148155
_translate = QtCore.QCoreApplication.translate
149156
MainWindow.setWindowTitle(_translate("MainWindow", "pynotepad"))
150157
self.menuFile.setTitle(_translate("MainWindow", "File"))
158+
self.menuPython_interpreter.setTitle(_translate("MainWindow", "Python interpreter"))
151159
self.menuEdit.setTitle(_translate("MainWindow", "Edit"))
152160
self.menuModes.setTitle(_translate("MainWindow", "Modes"))
153161
self.menuPanels.setTitle(_translate("MainWindow", "Panels"))
@@ -171,8 +179,10 @@ def retranslateUi(self, MainWindow):
171179
self.actionRun.setText(_translate("MainWindow", "Run"))
172180
self.actionRun.setToolTip(_translate("MainWindow", "Run current script"))
173181
self.actionConfigure_run.setText(_translate("MainWindow", "Configure run"))
182+
self.actionPython_2.setText(_translate("MainWindow", "Python 2"))
183+
self.actionPython_3.setText(_translate("MainWindow", "Python 3"))
174184

175-
from pyqode.core.widgets.outline import OutlineTreeWidget
176185
from pyqode.python.widgets import PyInteractiveConsole
186+
from pyqode.core.widgets.outline import OutlineTreeWidget
177187
from pyqode.core.widgets import SplittableCodeEditTabWidget
178188
from . import resources_rc

0 commit comments

Comments
 (0)