FreeCAD

Форк
0
/
InitGui.py 
70 строк · 3.0 Кб
1
# MeshPart gui init module
2
# (c) 2003 Juergen Riegel
3
#
4
# Gathering all the information to start FreeCAD
5
# This is the second one of three init scripts, the third one
6
# runs when the gui is up
7

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

31

32
class MeshPartWorkbench(Workbench):
33
    "MeshPart workbench object"
34
    Icon = """
35
            /* XPM */
36
            static const char *MeshPart_Box[]={
37
            "16 16 3 1",
38
            ". c None",
39
            "# c #000000",
40
            "a c #c6c642",
41
            "................",
42
            ".......#######..",
43
            "......#aaaaa##..",
44
            ".....#aaaaa###..",
45
            "....#aaaaa##a#..",
46
            "...#aaaaa##aa#..",
47
            "..#aaaaa##aaa#..",
48
            ".########aaaa#..",
49
            ".#aaaaa#aaaaa#..",
50
            ".#aaaaa#aaaa##..",
51
            ".#aaaaa#aaa##...",
52
            ".#aaaaa#aa##....",
53
            ".#aaaaa#a##... .",
54
            ".#aaaaa###......",
55
            ".########.......",
56
            "................"};
57
            """
58
    MenuText = "MeshPart"
59
    ToolTip = "MeshPart workbench"
60

61
    def Initialize(self):
62
        # load the module
63
        import MeshPartGui
64
        import MeshPart
65

66
    def GetClassName(self):
67
        return "MeshPartGui::Workbench"
68

69

70
# Gui.addWorkbench(MeshPartWorkbench())
71

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

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

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

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