Gnumed.wxGladeWidgets.wxgAU_StaffMgrPanel

Package Gnumed :: Package wxGladeWidgets :: Module wxgAU_StaffMgrPanel |
[frames] | no frames]

# Source Code for Module Gnumed.wxGladeWidgets.wxgAU_StaffMgrPanel

      1  #!/usr/bin/env python
      2  # -*- coding: ISO-8859-1 -*-
      3  # generated by wxGlade 0.4cvs on Wed Jan 18 21:32:57 2006
      4
      5  from Gnumed.wxpython.gmAU_ProviderFind import cProviderSelector
      6
      7  import wx
      8
      9 -class cAU_StaffMgrPanel(wx.Panel):
     10 -    def __init__(self, *args, **kwds):
     11          # begin wxGlade: cAU_StaffMgrPanel.__init__
     12          kwds["style"] = wx.TAB_TRAVERSAL
     13          wx.Panel.__init__(self, *args, **kwds)
     14          self.window_1 = wx.SplitterWindow(self, -1, style=wx.SP_3D|wx.SP_BORDER)
     15          self.window_1_pane_2 = wx.Panel(self.window_1, -1)
     16          self.window_1_pane_1 = wx.Panel(self.window_1, -1)
     17          self.sizer_2_copy_staticbox = wx.StaticBox(self.window_1_pane_1, -1, "Staff")
     18          self.list_ctrl_1 = wx.ListCtrl(self.window_1_pane_1, -1, style=wx.LC_REPORT|wx.SUNKEN_BORDER)
     19          self.button_2 = wx.Button(self.window_1_pane_1, -1, "discharge staff")
     20          self.button_1 = wx.Button(self.window_1_pane_1, -1, "enlist /update staff")
     21          self.label_1 = wx.StaticText(self.window_1_pane_2, -1, "person description\n")
     22          self.text_ctrl_1 = wx.TextCtrl(self.window_1_pane_2, -1, "", style=wx.TE_READONLY)
     23          self.label_3 = wx.StaticText(self.window_1_pane_2, -1, "pg user")
     24          self.text_ctrl_2 = wx.TextCtrl(self.window_1_pane_2, -1, "", style=wx.TE_READONLY)
     25          self.label_2 = wx.StaticText(self.window_1_pane_2, -1, "group membership")
     26          self.text_ctrl_3 = wx.TextCtrl(self.window_1_pane_2, -1, "", style=wx.TE_READONLY)
     27          self.label_4 = wx.StaticText(self.window_1_pane_2, -1, "staff role")
     28          self.text_ctrl_4 = wx.TextCtrl(self.window_1_pane_2, -1, "", style=wx.TE_MULTILINE|wx.TE_READONLY)
     29          self.label_5 = wx.StaticText(self.window_1_pane_2, -1, "sign")
     30          self.text_ctrl_5 = wx.TextCtrl(self.window_1_pane_2, -1, "", style=wx.TE_READONLY)
     31          self.label_6 = wx.StaticText(self.window_1_pane_2, -1, "comment")
     32          self.text_ctrl_6 = wx.TextCtrl(self.window_1_pane_2, -1, "", style=wx.TE_READONLY)
     33
     34          self.__set_properties()
     35          self.__do_layout()
     36
     37          self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.staff_listitem_selected, self.list_ctrl_1)
     38          self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.activate_listed_staff, self.list_ctrl_1)
     39          self.Bind(wx.EVT_BUTTON, self.discharge_staff, self.button_2)
     40          self.Bind(wx.EVT_BUTTON, self.enlist_staff, self.button_1)
     41          # end wxGlade
     42
     43 -    def __set_properties(self):
     44          # begin wxGlade: cAU_StaffMgrPanel.__set_properties
     45          self.window_1_pane_1.SetMinSize((440, 418))
     46          # end wxGlade
     47
     48 -    def __do_layout(self):
     49          # begin wxGlade: cAU_StaffMgrPanel.__do_layout
     50          sizer_1 = wx.BoxSizer(wx.HORIZONTAL)
     51          sizer_4 = wx.BoxSizer(wx.VERTICAL)
     52          sizer_5 = wx.BoxSizer(wx.HORIZONTAL)
     53          grid_sizer_1 = wx.FlexGridSizer(6, 2, 5, 5)
     54          sizer_2 = wx.BoxSizer(wx.VERTICAL)
     55          sizer_3 = wx.BoxSizer(wx.HORIZONTAL)
     56          sizer_2_copy = wx.StaticBoxSizer(self.sizer_2_copy_staticbox, wx.HORIZONTAL)
     57          sizer_2_copy.Add(self.list_ctrl_1, 2, wx.EXPAND, 0)
     58          sizer_2.Add(sizer_2_copy, 3, wx.EXPAND, 0)
     59          sizer_3.Add(self.button_2, 0, wx.ADJUST_MINSIZE, 0)
     60          sizer_3.Add((20, 20), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
     61          sizer_3.Add(self.button_1, 0, wx.ADJUST_MINSIZE, 0)
     62          sizer_2.Add(sizer_3, 0, wx.EXPAND, 0)
     63          self.window_1_pane_1.SetAutoLayout(True)
     64          self.window_1_pane_1.SetSizer(sizer_2)
     65          grid_sizer_1.Add(self.label_1, 0, wx.ADJUST_MINSIZE, 0)
     66          grid_sizer_1.Add(self.text_ctrl_1, 0, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
     67          grid_sizer_1.Add(self.label_3, 0, wx.ADJUST_MINSIZE, 0)
     68          grid_sizer_1.Add(self.text_ctrl_2, 0, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
     69          grid_sizer_1.Add(self.label_2, 0, wx.ADJUST_MINSIZE, 0)
     70          grid_sizer_1.Add(self.text_ctrl_3, 0, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
     71          grid_sizer_1.Add(self.label_4, 0, wx.ADJUST_MINSIZE, 0)
     72          grid_sizer_1.Add(self.text_ctrl_4, 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
     73          grid_sizer_1.Add(self.label_5, 0, wx.ADJUST_MINSIZE, 0)
     74          grid_sizer_1.Add(self.text_ctrl_5, 0, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
     75          grid_sizer_1.Add(self.label_6, 0, wx.ADJUST_MINSIZE, 0)
     76          grid_sizer_1.Add(self.text_ctrl_6, 0, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
     77          grid_sizer_1.AddGrowableCol(1)
     78          sizer_4.Add(grid_sizer_1, 1, wx.EXPAND, 0)
     79          sizer_5.Add((20, 20), 0, wx.ADJUST_MINSIZE, 0)
     80          sizer_5.Add((20, 20), 0, wx.ADJUST_MINSIZE, 0)
     81          sizer_5.Add((20, 20), 0, wx.ADJUST_MINSIZE, 0)
     82          sizer_4.Add(sizer_5, 1, wx.EXPAND, 0)
     83          self.window_1_pane_2.SetAutoLayout(True)
     84          self.window_1_pane_2.SetSizer(sizer_4)
     85          sizer_4.Fit(self.window_1_pane_2)
     86          sizer_4.SetSizeHints(self.window_1_pane_2)
     87          self.window_1.SplitVertically(self.window_1_pane_1, self.window_1_pane_2)
     88          sizer_1.Add(self.window_1, 3, wx.EXPAND, 5)
     89          self.SetAutoLayout(True)
     90          self.SetSizer(sizer_1)
     91          sizer_1.Fit(self)
     92          sizer_1.SetSizeHints(self)
     93          # end wxGlade
     94
     95 -    def alter_staff(self, event): # wxGlade: cAU_StaffMgrPanel.<event_handler>
     96          print "Event handler `alter_staff' not implemented!"
     97          event.Skip()
     98
     99 -    def enlist_staff(self, event): # wxGlade: cAU_StaffMgrPanel.<event_handler>
    100          print "Event handler `enlist_staff' not implemented!"
    101          event.Skip()
    102
    103 -    def activate_listed_staff(self, event): # wxGlade: cAU_StaffMgrPanel.<event_handler>
    104          print "Event handler `activate_listed_staff' not implemented"
    105          event.Skip()
    106
    107 -    def discharge_staff(self, event): # wxGlade: cAU_StaffMgrPanel.<event_handler>
    108          print "Event handler `discharge_staff' not implemented"
    109          event.Skip()
    110
    111 -    def staff_listitem_selected(self, event): # wxGlade: cAU_StaffMgrPanel.<event_handler>
    112          print "Event handler `staff_listitem_selected' not implemented"
    113          event.Skip()
    114
    115  # end of class cAU_StaffMgrPanel
    116