FreeCAD

Форк
0
/
InitGui.py 
47 строк · 2.3 Кб
1
#***************************************************************************
2
#*   Copyright (c) 2013 Juergen Riegel <FreeCAD@juergen-riegel.net>        *
3
#*                                                                         *
4
#*   This program is free software; you can redistribute it and/or modify  *
5
#*   it under the terms of the GNU Lesser General Public License (LGPL)    *
6
#*   as published by the Free Software Foundation; either version 2 of     *
7
#*   the License, or (at your option) any later version.                   *
8
#*   for detail see the LICENCE text file.                                 *
9
#*                                                                         *
10
#*   This program is distributed in the hope that it will be useful,       *
11
#*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12
#*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13
#*   GNU Library General Public License for more details.                  *
14
#*                                                                         *
15
#*   You should have received a copy of the GNU Library General Public     *
16
#*   License along with this program; if not, write to the Free Software   *
17
#*   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
18
#*   USA                                                                   *
19
#*                                                                         *
20
#***************************************************************************
21
"""Initialization of the Material Workbench graphical interface."""
22

23
import FreeCAD as App
24
import FreeCADGui as Gui
25
import os
26

27

28
class MaterialWorkbench(Gui.Workbench):
29
    """Part workbench object."""
30

31
    def __init__(self):
32
        self.__class__.Icon = os.path.join(App.getResourceDir(),
33
                                           "Mod", "Material",
34
                                           "Resources", "icons",
35
                                           "MaterialWorkbench.svg")
36
        self.__class__.MenuText = "Material"
37
        self.__class__.ToolTip = "Material workbench"
38

39
    def Initialize(self):
40
        # load the module
41
        import MatGui
42

43
    def GetClassName(self):
44
        return "MatGui::Workbench"
45

46

47
Gui.addWorkbench(MaterialWorkbench())
48

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.