Explorar o código

- fixed the ToolMeasurement geometry not being displayed

Marius Stanciu %!s(int64=6) %!d(string=hai) anos
pai
achega
161dbdcb2d
Modificáronse 3 ficheiros con 5 adicións e 3 borrados
  1. 1 0
      README.md
  2. 3 2
      flatcamGUI/FlatCAMGUI.py
  3. 1 1
      flatcamTools/ToolMeasurement.py

+ 1 - 0
README.md

@@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing.
 
 - changed the icon for Open Script and reused it for the Check Rules Tool
 - added a new tool named "Optimal Tool" which will determine the minimum distance between the copper features for a Gerber object, in fact determining the maximum diameter for a isolation tool that can be used for a complete isolation
+- fixed the ToolMeasurement geometry not being displayed
 
 27.09.2019
 

+ 3 - 2
flatcamGUI/FlatCAMGUI.py

@@ -237,7 +237,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
         self.menufile.addAction(self.menufile_exit)
 
         # ## Edit # ##
-        self.menuedit = self.menu.addMenu(_('&Edit'))
+        self.menuedit = self.menu.addMenu(_('Edit'))
         # Separator
         self.menuedit.addSeparator()
         self.menueditedit = self.menuedit.addAction(QtGui.QIcon('share/edit16.png'), _('Edit Object\tE'))
@@ -315,7 +315,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
         self.menueditpreferences = self.menuedit.addAction(QtGui.QIcon('share/pref.png'), _('&Preferences\tSHIFT+P'))
 
         # ## Options # ##
-        self.menuoptions = self.menu.addMenu(_('&Options'))
+        self.menuoptions = self.menu.addMenu(_('Options'))
         # self.menuoptions_transfer = self.menuoptions.addMenu(QtGui.QIcon('share/transfer.png'), 'Transfer options')
         # self.menuoptions_transfer_a2p = self.menuoptions_transfer.addAction("Application to Project")
         # self.menuoptions_transfer_p2a = self.menuoptions_transfer.addAction("Project to Application")
@@ -2397,6 +2397,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
                     self.app.on_skewy()
                     return
             elif modifiers == QtCore.Qt.AltModifier:
+
                 # Eanble all plots
                 if key == Qt.Key_1:
                     self.app.enable_all_plots()

+ 1 - 1
flatcamTools/ToolMeasurement.py

@@ -380,7 +380,7 @@ class Measurement(FlatCAMTool):
         # second draw the new shape of the utility geometry
         meas_line = LineString([pos, self.points[0]])
 
-        color = '#00000000'
+        color = '#000000FF'
         self.sel_shapes.add(meas_line, color=color, update=True, layer=0, tolerance=None)
 
         if self.app.is_legacy is True: