- 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

@@ -3295,6 +3295,23 @@ class AppGeoEditor(QtCore.QObject):
self.geo_parent = self.tw.invisibleRootItem()
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 = {
"select": {"button": self.app.ui.geo_select_btn, "constructor": FCSelect},