-
Notifications
You must be signed in to change notification settings - Fork 75
/
HelpCmd.py
42 lines (32 loc) · 1.04 KB
/
HelpCmd.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python3
# coding: utf-8
#
# LGPL
# Copyright HUBERT Zoltán
#
# HelpCmd.py
import os, webbrowser
import FreeCADGui as Gui
import Asm4_libs as Asm4
from Asm4_Translate import translate
"""
+-----------------------------------------------+
| main class |
+-----------------------------------------------+
"""
class Asm4Help():
def GetResources(self):
return {"MenuText": translate("Asm4_Help", "Help for Assembly4"),
"ToolTip": translate("Asm4_Help", "Show basic usage for FreeCAD and Assembly4"),
"Pixmap": os.path.join(Asm4.iconPath, 'Asm4_Help.svg')
}
def IsActive(self):
return True
def Activated(self):
webbrowser.open('https://github.com/Zolko-123/FreeCAD_Assembly4/blob/master/INSTRUCTIONS.md')
"""
+-----------------------------------------------+
| add the command to the workbench |
+-----------------------------------------------+
"""
Gui.addCommand( 'Asm4_Help', Asm4Help() )