- in Gerber and Excellon UI added buttons to start the Editor

- in all Editors Selected Tab added a button to Exit the Editor
This commit is contained in:
Marius Stanciu
2020-07-10 05:03:54 +03:00
parent 0dee41e03c
commit 24192540d7
7 changed files with 83 additions and 2 deletions

View File

@@ -2028,7 +2028,22 @@ class AppExcEditor(QtCore.QObject):
self.slot_array_frame.hide()
self.tools_box.addStretch()
layout.addStretch()
# Editor
self.exit_editor_button = QtWidgets.QPushButton(_('Exit Editor'))
self.exit_editor_button.setToolTip(
_("Exit from Editor.")
)
self.exit_editor_button.setStyleSheet("""
QPushButton
{
font-weight: bold;
}
""")
layout.addWidget(self.exit_editor_button)
self.exit_editor_button.clicked.connect(lambda: self.app.editor2object())
# ## Toolbar events and properties
self.tools_exc = {