Skip to content

Commit

Permalink
a2p_importpart.py: consistent wording for new feature
Browse files Browse the repository at this point in the history
  • Loading branch information
donovaly committed Jun 5, 2019
1 parent d937adf commit 8265ab4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions a2p_importpart.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,22 +463,23 @@ def GuiViewFit(self):
#==============================================================================
toolTip = \
'''
Restore Transparency to Active Document Objects
Restore transparency to
active document objects
'''

class a2p_Restore_Transparency_Command():

def GetResources(self):
return {'Pixmap' : a2plib.pathOfModule()+'/icons/a2p_Restore_Transparency.svg',
'Accel' : "Shift+T", # a default shortcut (optional)
'MenuText': "Restore Transparency to Active Document Objects",
'MenuText': "Restore transparency to active document objects",
'ToolTip' : toolTip
}

def Activated(self):
doc = FreeCAD.ActiveDocument
if doc is None:
FreeCAD.Console.Print("No Active Document found")
FreeCAD.Console.Print("No active document found")
return
else:
for obj in doc.Objects:
Expand Down

0 comments on commit 8265ab4

Please sign in to comment.