Debian Codegraph @

wxgeometrie/modules/geometre/__init__.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2
3 ##--------------------------------------#######
4 # Geometre #
5 ##--------------------------------------#######
6 # WxGeometrie
7 # Dynamic geometry, graph plotter, and more for french mathematic teachers.
8 # Copyright (C) 2005-2013 Nicolas Pourcelot
9 #
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 2 of the License, or
13 # (at your option) any later version.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
24
25 from ...GUI.menu import MenuBar
26 from ...GUI.panel import Panel_API_graphique
27
28 class GeometreMenuBar(MenuBar):
29 def __init__(self, panel):
30 MenuBar.__init__(self, panel)
31 self.ajouter("Fichier", ["nouveau"], ["ouvrir"], ["ouvrir ici"], None,
32 ["enregistrer"], ["enregistrer_sous"], ["exporter"],
33 ["exporter&sauver"], None,
34 ['session'], None, ["imprimer"], ["presse-papier"],
35 None, ["proprietes"], None, self.panel.doc_ouverts, None,
36 ["fermer"], ["quitter"])
37 self.ajouter("Editer", ["annuler"], ["refaire"], ["modifier"], ["supprimer"])
38 self.ajouter("creer")
39 self.ajouter("affichage")
40 self.ajouter("autres")
41 self.ajouter("Outils", ["options"])
42 self.ajouter("avance1")
43 self.ajouter("?")
44
45
46 class Geometre(Panel_API_graphique):
47
48 titre = "Géométrie dynamique" # Donner un titre à chaque module
49
50 def __init__(self, *args, **kw):
51 Panel_API_graphique.__init__(self, *args, **kw)
52 self.finaliser()