- the main issue was the modules that I imported. It was the FlatCAMObj.py
modules which it was not what it was needed. I changed the imports to camlib.py, remade the functions in camlib.py and now the Flip, Rotate and Skew work over all the objects of FlatCAM (Gerber, Geometry created by the FC, Geometry created by the objects, Excellon, CNCJob)
This commit is contained in:
@@ -2,7 +2,7 @@ from PyQt4 import QtGui, QtCore
|
||||
from PyQt4 import Qt
|
||||
from GUIElements import FCEntry, FCButton
|
||||
from FlatCAMTool import FlatCAMTool
|
||||
from FlatCAMObj import FlatCAMGerber, FlatCAMExcellon, FlatCAMGeometry
|
||||
from camlib import *
|
||||
|
||||
|
||||
class ToolTransform(FlatCAMTool):
|
||||
@@ -224,7 +224,7 @@ class ToolTransform(FlatCAMTool):
|
||||
self.app.inform.emit('Object was rotated ...')
|
||||
except Exception as e:
|
||||
self.app.inform.emit("[ERROR] Due of %s, rotation movement was not executed." % str(e))
|
||||
return
|
||||
raise
|
||||
|
||||
def on_flip(self, axis):
|
||||
obj_list = self.app.collection.get_selected()
|
||||
@@ -276,7 +276,7 @@ class ToolTransform(FlatCAMTool):
|
||||
|
||||
except Exception as e:
|
||||
self.app.inform.emit("[ERROR] Due of %s, Flip action was not executed.")
|
||||
return
|
||||
raise
|
||||
|
||||
def on_skew(self, axis, num):
|
||||
obj_list = self.app.collection.get_selected()
|
||||
@@ -314,6 +314,6 @@ class ToolTransform(FlatCAMTool):
|
||||
self.app.inform.emit('Object was skewed on %s axis ...' % str(axis))
|
||||
except Exception as e:
|
||||
self.app.inform.emit("[ERROR] Due of %s, Skew action was not executed." % str(e))
|
||||
return
|
||||
raise
|
||||
|
||||
# end of file
|
||||
Reference in New Issue
Block a user