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

# Source Code for Module Gnumed.wxGladeWidgets.wxgPersonIdentityManagerPnl

     1  #!/usr/bin/env python
     2  # -*- coding: utf-8 -*-
     3  # generated by wxGlade 0.5 on Mon Nov 26 13:17:24 2007 from /home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgPersonIdentityManagerPnl.wxg
     4
     5  import wx
     6
     7 -class wxgPersonIdentityManagerPnl(wx.ScrolledWindow):
     8 -    def __init__(self, *args, **kwds):
     9
    10          from Gnumed.wxpython import gmDemographicsWidgets
    11          from Gnumed.wxpython import gmDateTimeInput
    12
    13          # begin wxGlade: wxgPersonIdentityManagerPnl.__init__
    14          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    15          wx.ScrolledWindow.__init__(self, *args, **kwds)
    16          self._PNL_identity = gmDemographicsWidgets.cIdentityEAPnl(self, -1, style=wx.NO_BORDER|wx.TAB_TRAVERSAL)
    17          self._BTN_save_identity = wx.Button(self, wx.ID_SAVE, "", style=wx.BU_EXACTFIT)
    18          self._BTN_reload_identity = wx.Button(self, wx.ID_REVERT_TO_SAVED, "", style=wx.BU_EXACTFIT)
    19          self._PNL_names = gmDemographicsWidgets.cPersonNamesManagerPnl(self, -1, style=wx.NO_BORDER|wx.TAB_TRAVERSAL)
    20          self._PNL_ids = gmDemographicsWidgets.cPersonIDsManagerPnl(self, -1, style=wx.NO_BORDER|wx.TAB_TRAVERSAL)
    21
    22          self.__set_properties()
    23          self.__do_layout()
    24
    25          self.Bind(wx.EVT_BUTTON, self._on_save_identity_details_button_pressed, self._BTN_save_identity)
    26          self.Bind(wx.EVT_BUTTON, self._on_reload_identity_button_pressed, self._BTN_reload_identity)
    27          # end wxGlade
    28
    29 -    def __set_properties(self):
    30          # begin wxGlade: wxgPersonIdentityManagerPnl.__set_properties
    31          self.SetFocus()
    32          self.SetScrollRate(10, 10)
    33          self._BTN_save_identity.SetToolTipString(_("Save the identity details."))
    34          self._BTN_reload_identity.SetToolTipString(_("Reload identity from the database."))
    35          # end wxGlade
    36
    37 -    def __do_layout(self):
    38          # begin wxGlade: wxgPersonIdentityManagerPnl.__do_layout
    39          __szr_main = wx.BoxSizer(wx.VERTICAL)
    40          __szr_top = wx.BoxSizer(wx.HORIZONTAL)
    41          __szr_identity = wx.BoxSizer(wx.VERTICAL)
    42          __szr_identity_buttons = wx.BoxSizer(wx.HORIZONTAL)
    43          __szr_identity.Add(self._PNL_identity, 1, wx.EXPAND, 0)
    44          __szr_identity_buttons.Add(self._BTN_save_identity, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 10)
    45          __szr_identity_buttons.Add(self._BTN_reload_identity, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    46          __szr_identity_buttons.Add((20, 20), 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    47          __szr_identity.Add(__szr_identity_buttons, 0, wx.EXPAND, 0)
    48          __szr_top.Add(__szr_identity, 2, wx.RIGHT|wx.EXPAND, 10)
    49          __szr_top.Add(self._PNL_names, 4, wx.EXPAND, 5)
    50          __szr_main.Add(__szr_top, 1, wx.LEFT|wx.RIGHT|wx.TOP|wx.EXPAND, 5)
    51          __szr_main.Add(self._PNL_ids, 1, wx.ALL|wx.EXPAND, 5)
    52          self.SetSizer(__szr_main)
    53          __szr_main.Fit(self)
    54          # end wxGlade
    55
    56 -    def _on_save_identity_details_button_pressed(self, event): # wxGlade: wxgPersonIdentityManagerPnl.<event_handler>
    57          print "Event handler `_on_save_identity_details_button_pressed' not implemented"
    58          event.Skip()
    59
    60 -    def _on_reload_identity_button_pressed(self, event): # wxGlade: wxgPersonIdentityManagerPnl.<event_handler>
    61          print "Event handler `_on_reload_identity_button_pressed' not implemented"
    62          event.Skip()
    63
    64  # end of class wxgPersonIdentityManagerPnl
    65