Arch: Minor fixes
This commit is contained in:
@@ -57,7 +57,7 @@ class ArchWorkbench(Workbench):
|
||||
ToolTip = "Architecture workbench"
|
||||
|
||||
def Initialize(self):
|
||||
import DraftTools,DraftGui,Arch_rc,Arch
|
||||
import DraftTools,DraftGui,Arch_rc,Arch,Draft_rc
|
||||
|
||||
# arch tools
|
||||
self.archtools = ["Arch_Wall","Arch_Structure",
|
||||
@@ -91,6 +91,8 @@ class ArchWorkbench(Workbench):
|
||||
FreeCADGui.addIconPath(":/icons")
|
||||
FreeCADGui.addLanguagePath(":/translations")
|
||||
FreeCADGui.addPreferencePage(":/ui/archprefs-base.ui","Arch")
|
||||
FreeCADGui.addPreferencePage(":/ui/userprefs-base.ui","Draft")
|
||||
FreeCADGui.addPreferencePage(":/ui/userprefs-import.ui","Draft")
|
||||
Log ('Loading Arch module... done\n')
|
||||
|
||||
def Activated(self):
|
||||
@@ -106,7 +108,7 @@ class ArchWorkbench(Workbench):
|
||||
Msg("Arch workbench deactivated\n")
|
||||
|
||||
def ContextMenu(self, recipient):
|
||||
self.appendContextMenu("Display tools",self.draftcontexttools)
|
||||
self.appendContextMenu("Draft context tools",self.draftcontexttools)
|
||||
|
||||
def GetClassName(self):
|
||||
return "Gui::PythonWorkbench"
|
||||
|
||||
Reference in New Issue
Block a user