Просмотр исходного кода

- corrected small type in list_sys Tcl command; added a protection of the Plot Area Tab after a successful edit.

Marius Stanciu 7 лет назад
Родитель
Сommit
e0adb9b43b
3 измененных файлов с 5 добавлено и 1 удалено
  1. 2 0
      FlatCAMApp.py
  2. 2 0
      README.md
  3. 1 1
      tclCommands/TclCommandListSys.py

+ 2 - 0
FlatCAMApp.py

@@ -1531,6 +1531,7 @@ class App(QtCore.QObject):
 
 
         self.ui.plot_tab_area.setTabText(0, "EDITOR Area")
+        self.ui.plot_tab_area.protectTab(0)
         self.inform.emit("[warning_notcl]Editor is activated ...")
 
     def editor2object(self):
@@ -1592,6 +1593,7 @@ class App(QtCore.QObject):
 
         edited_obj.plot()
         self.ui.plot_tab_area.setTabText(0, "Plot Area")
+        self.ui.plot_tab_area.protectTab(0)
         self.inform.emit("[success] %s is updated, returning to App..." % obj_type)
 
         # reset the Object UI to original settings

+ 2 - 0
README.md

@@ -21,6 +21,8 @@ CAD program, and create G-Code for Isolation routing.
 - Plot Area Tab view can now be toggled, added entry in View Menu and shortcut key CTRL+F10
 - All the tabs in the GUI right side are (Plot Are, Preferences etc) are now detachable to a separate windows which when closed it returns in the previous location in the toolbar. Those detached tabs can be also reattached by drag and drop.
 - fixed postprocessor files so now the bounds values are right aligned (assuming max string length of 9 chars which means 4 digits and 4 decimals)
+- corrected small type in list_sys Tcl command; added a protection of the Plot Area Tab after a successful edit.
+
 
 30.01.2019
 

+ 1 - 1
tclCommands/TclCommandListSys.py

@@ -37,7 +37,7 @@ class TclCommandListSys(TclCommand):
         'args': collections.OrderedDict([
         ]),
         'examples': ['list_sys',
-                     'list_sys ser'
+                     'list_sys ser',
                      'list_sys gerber',
                      'list_sys cncj']
     }