Module terminplan
[hide private]
[frames] | no frames]

Source Code for Module terminplan

  1  # -*- coding: utf-8 -*- 
  2  # 
  3  # 
  4  #    filename:  terminplan.py 
  5  # 
  6  #    version:   see wxvf.py 
  7  # 
  8  # 
  9  # ---------------------------------------------------------------------------------------- 
 10  # 
 11  # 
 12  #    Copyright (C) 2010  Michael Bellair 
 13  # 
 14  #    This file is part of wxvf. 
 15  # 
 16  #    wxvf is free software: you can redistribute it and/or modify 
 17  #    it under the terms of the GNU General Public License as published by 
 18  #    the Free Software Foundation, either version 3 of the License, or 
 19  #    (at your option) any later version. 
 20  # 
 21  #    wxvf is distributed in the hope that it will be useful, 
 22  #    but WITHOUT ANY WARRANTY; without even the implied warranty of 
 23  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 24  #    GNU General Public License for more details. 
 25  # 
 26  #    You should have received a copy of the GNU General Public License 
 27  #    along with wxvf.  If not, see <http://www.gnu.org/licenses/>. 
 28  # 
 29  #    Michael Bellair 
 30  #    Sportplatzstrasse 11 
 31  #    01259 Dresden 
 32  # 
 33  #    E-Mail:    bellair@freenet.de 
 34  #    homepage:  http://www.michaelbellair.de/vf/index.html 
 35  # 
 36  # 
 37  # ---------------------------------------------------------------------------------------- 
 38  # 
 39  import wx 
 40   
 41  from wxuniversal import FlexGridSizerWxObjTitel         # wxObjekt mit Titel 
 42  from wxuniversal import ListBoxErg                      # wx.ListBox mit Ergänzungen 
 43   
 44   
 45   
 46   
 47  # 
 48  # 
 49  # 
 50  # ---------------------------------------------------------------------------------------- 
 51  # ---------------------------------------------------------------------------------------- 
 52  # --                                    -------------------------------------------------- 
 53  # --    Offene Punkte / Aufgaben        -------------------------------------------------- 
 54  # --                                    -------------------------------------------------- 
 55  # ---------------------------------------------------------------------------------------- 
 56  # ---------------------------------------------------------------------------------------- 
 57  # 
 58  #  
 59  #       -- siehe TODO 'bearbeitesicherheitsanf.py' -- 
 60  # 
 61  # 
 62  # ---------------------------------------------------------------------------------------- 
 63  # 
 64   
 65   
 66   
 67   
 68  # 
 69  # 
 70  # 
 71  # ---------------------------------------------------------------------------------------- 
 72  # ---------------------------------------------------------------------------------------- 
 73  # --                                    -------------------------------------------------- 
 74  # --    Eingabeformular 'Terminplan'    -------------------------------------------------- 
 75  # --                                    -------------------------------------------------- 
 76  # ---------------------------------------------------------------------------------------- 
 77  # ---------------------------------------------------------------------------------------- 
 78  # 
 79  #class Terminplan( wx.Panel ): 
80 -class Terminplan( wx.ScrolledWindow ):
81 """ 82 Klasse zur Abbildung des Eingabeformulars 'Terminplan' 83 84 @keyword parent: Es ist der Datenbankbenutzername zu übergeben. 85 @type parent: Zeichenkette 86 @keyword id: Es ist das Kennwort des Datenbankbenutzers zu übergeben. 87 @type id: Zeichenkette 88 @keyword size: Es ist die IP-Adresse anzugeben, über die der PostgreSQL-Datenbankserver ansprechbar ist. 89 @type size: Zeichenkette 90 91 @raise Fehler: ?? Fehlermeldung und Programmende, wenn die Datenbankverbindung nicht hergestellt werden kann. ?? 92 """ 93 94 # 95 # ------------------------------------------------------------------------------------ 96 # -- Eingabeformular initialisieren ---------------------------------- 97 # ------------------------------------------------------------------------------------ 98 #
99 - def __init__(self, parent, id = -1, size = wx.DefaultSize):
100 # wx.Panel.__init__( self, parent, id, (0, 0), size=size ) 101 wx.ScrolledWindow.__init__( self, parent, id, (0, 0), size=size ) 102 103 # 104 # -- Namen setzen (somit Klasse / Objekt erkennen) -------------------------- 105 # 106 self.SetName( name = u"Terminplan" ) 107 108 109 # 110 # -- Vorgabewerte für ScrolledWindow ------------------------------------------ 111 # 112 self.SetScrollRate( 20, 20 ) 113 self.EnableScrolling( True, True ) 114 115 116 # self.ListBox__GefStufeBegr = FlexGridSizerWxObjTitel( parent = self 117 # , wxObj = ListBoxErg( self 118 # , size = ( 1000, 1000 ) 119 # , style = wx.BORDER_SUNKEN | wx.LB_SORT 120 # , Notizen = None ) 121 # , titel = u"Begründung der Gefahrenstufe" 122 # , orient = wx.VERTICAL ) 123 124 # self.ListBox__GefStufeBegr = ListBoxErg( self 125 # , size = ( 1000, 1000 ) 126 # , style = wx.BORDER_SUNKEN | wx.LB_SORT 127 # , Notizen = None ) 128 129 130 self.ListBox__GefStufeBegr = wx.ListBox( self 131 , size = ( 1000, 1000 ) 132 , style = wx.BORDER_SUNKEN | wx.LB_SORT ) 133 134 135 136 FlexGridSizer = wx.FlexGridSizer( rows = 1, cols = 1, vgap = 10, hgap = 10 ) 137 138 FlexGridSizer.AddGrowableCol( idx = 0, proportion = 1 ) 139 FlexGridSizer.AddGrowableRow( idx = 0, proportion = 1 ) 140 141 FlexGridSizer.Add( self.ListBox__GefStufeBegr 142 , flag = wx.LEFT|wx.TOP|wx.RIGHT|wx.BOTTOM|wx.EXPAND 143 , border = 10 ) 144 145 self.SetSizerAndFit( FlexGridSizer )
146 147 148 149 # Sizer_Navigation = wx.BoxSizer( wx.VERTICAL ) 150 # Sizer_Navigation.Add( wx.StaticText( parent = self 151 # , label = u"Wird später implementiert !" ) 152 # , flag = wx.ALL|wx.EXPAND|wx.ALIGN_CENTER, border = 50 ) 153 # 154 # self.SetSizerAndFit( Sizer_Navigation ) 155