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

# Source Code for Module Gnumed.wxGladeWidgets.wxgAU_StaffV01

     1  #!/usr/bin/env python
     2  # -*- coding: ISO-8859-1 -*-
     3  # generated by wxGlade 0.4cvs on Wed Jan 18 22:54:13 2006
     4
     5  import wx
     6
     7 -class cAU_StaffV01(wx.Panel):
     8 -    def __init__(self, *args, **kwds):
     9          # begin wxGlade: cAU_StaffV01.__init__
    10          kwds["style"] = wx.TAB_TRAVERSAL
    11          wx.Panel.__init__(self, *args, **kwds)
    12          self.label_1 = wx.StaticText(self, -1, "confirm staff")
    13          self.label_2 = wx.StaticText(self, -1, "identity")
    14          self.text_ctrl_1 = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY)
    15          self.label_3 = wx.StaticText(self, -1, "pg_user")
    16          self.text_ctrl_2 = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY)
    17          self.label_4 = wx.StaticText(self, -1, "groups")
    18          self.text_ctrl_3 = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY)
    19          self.label_5 = wx.StaticText(self, -1, "staff role")
    20          self.combo_box_1 = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN)
    21          self.label_6 = wx.StaticText(self, -1, "sign")
    22          self.text_ctrl_4 = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE)
    23          self.label_7 = wx.StaticText(self, -1, "comment")
    24          self.text_ctrl_5 = wx.TextCtrl(self, -1, "")
    25          self.button_1 = wx.Button(self, -1, "create / update staff\n")
    26          self.button_2 = wx.Button(self, -1, "cancel")
    27
    28          self.__set_properties()
    29          self.__do_layout()
    30
    31          self.Bind(wx.EVT_BUTTON, self.create_staff, self.button_1)
    32          self.Bind(wx.EVT_BUTTON, self.cancel_staff_creation, self.button_2)
    33          # end wxGlade
    34
    35 -    def __set_properties(self):
    36          # begin wxGlade: cAU_StaffV01.__set_properties
    37          self.combo_box_1.SetSelection(-1)
    38          # end wxGlade
    39
    40 -    def __do_layout(self):
    41          # begin wxGlade: cAU_StaffV01.__do_layout
    42          grid_sizer_1 = wx.FlexGridSizer(8, 2, 0, 0)
    43          grid_sizer_1.Add(self.label_1, 0, wx.ADJUST_MINSIZE, 0)
    44          grid_sizer_1.Add((20, 20), 8, wx.EXPAND|wx.ADJUST_MINSIZE, 3)
    45          grid_sizer_1.Add(self.label_2, 1, wx.ADJUST_MINSIZE, 0)
    46          grid_sizer_1.Add(self.text_ctrl_1, 4, wx.RIGHT|wx.BOTTOM|wx.EXPAND|wx.ADJUST_MINSIZE|wx.FIXED_MINSIZE, 14)
    47          grid_sizer_1.Add(self.label_3, 0, wx.ADJUST_MINSIZE, 0)
    48          grid_sizer_1.Add(self.text_ctrl_2, 4, wx.BOTTOM|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
    49          grid_sizer_1.Add(self.label_4, 0, wx.ADJUST_MINSIZE, 0)
    50          grid_sizer_1.Add(self.text_ctrl_3, 4, wx.BOTTOM|wx.EXPAND|wx.ADJUST_MINSIZE, 15)
    51          grid_sizer_1.Add(self.label_5, 0, wx.ADJUST_MINSIZE, 0)
    52          grid_sizer_1.Add(self.combo_box_1, 4, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
    53          grid_sizer_1.Add(self.label_6, 0, wx.ADJUST_MINSIZE, 0)
    54          grid_sizer_1.Add(self.text_ctrl_4, 4, wx.EXPAND|wx.ADJUST_MINSIZE, 2)
    55          grid_sizer_1.Add(self.label_7, 0, wx.ADJUST_MINSIZE, 0)
    56          grid_sizer_1.Add(self.text_ctrl_5, 4, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
    57          grid_sizer_1.Add(self.button_1, 0, wx.ALL|wx.ADJUST_MINSIZE, 19)
    58          grid_sizer_1.Add(self.button_2, 4, wx.ALL|wx.ADJUST_MINSIZE, 20)
    59          self.SetAutoLayout(True)
    60          self.SetSizer(grid_sizer_1)
    61          grid_sizer_1.Fit(self)
    62          grid_sizer_1.SetSizeHints(self)
    63          grid_sizer_1.AddGrowableCol(1)
    64          # end wxGlade
    65
    66 -    def create_staff(self, event): # wxGlade: cAU_StaffV01.<event_handler>
    67          print "Event handler `create_staff' not implemented!"
    68          event.Skip()
    69
    70 -    def cancel_staff_creation(self, event): # wxGlade: cAU_StaffV01.<event_handler>
    71          print "Event handler `cancel_staff_creation' not implemented!"
    72          event.Skip()
    73
    74  # end of class cAU_StaffV01
    75