FreeCAD

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

24
# Points gui init module
25
#
26
# Gathering all the information to start FreeCAD
27
# This is the second one of three init scripts, the third one
28
# runs when the gui is up
29

30

31
class PointsWorkbench(Workbench):
32
    "Points workbench object"
33

34
    def __init__(self):
35
        self.__class__.Icon = (
36
            FreeCAD.getResourceDir() + "Mod/Points/Resources/icons/PointsWorkbench.svg"
37
        )
38
        self.__class__.MenuText = "Points"
39
        self.__class__.ToolTip = "Points workbench"
40

41
    def Initialize(self):
42
        # load the module
43
        import PointsGui
44

45
    def GetClassName(self):
46
        return "PointsGui::Workbench"
47

48

49
Gui.addWorkbench(PointsWorkbench())
50

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

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

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

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