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

# Source Code for Module Gnumed.wxGladeWidgets.wxgIdentityEAPnl

     1  #!/usr/bin/env python
     2  # -*- coding: utf8 -*-
     3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-git/gnumed/gnumed/client/wxg/wxgIdentityEAPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11
    12 -class wxgIdentityEAPnl(wx.ScrolledWindow):
    13 -    def __init__(self, *args, **kwds):
    14
    15          from Gnumed.wxpython import gmDemographicsWidgets, gmDateTimeInput
    16
    17          # begin wxGlade: wxgIdentityEAPnl.__init__
    18          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    19          wx.ScrolledWindow.__init__(self, *args, **kwds)
    20          self._LBL_info = wx.StaticText(self, -1, "")
    21          self._PRW_dob = gmDateTimeInput.cDateInputPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    22          self._PRW_dod = gmDateTimeInput.cDateInputPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    23          self._PRW_gender = gmDemographicsWidgets.cGenderSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    24          self._PRW_ethnicity = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    25          self._PRW_title = gmDemographicsWidgets.cTitlePhraseWheel(self, -1, "", style=wx.NO_BORDER)
    26          self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE|wx.NO_BORDER)
    27
    28          self.__set_properties()
    29          self.__do_layout()
    30          # end wxGlade
    31
    32 -    def __set_properties(self):
    33          # begin wxGlade: wxgIdentityEAPnl.__set_properties
    34          self.SetScrollRate(10, 10)
    35          self._PRW_dob.SetToolTipString(_("The date of birth for this person."))
    36          self._PRW_dod.SetToolTipString(_("The date of death."))
    37          self._PRW_ethnicity.Enable(False)
    38          self._TCTRL_comment.SetToolTipString(_("A free-text comment on this person."))
    39          # end wxGlade
    40
    41 -    def __do_layout(self):
    42          # begin wxGlade: wxgIdentityEAPnl.__do_layout
    43          __gzszr_main = wx.FlexGridSizer(7, 2, 1, 3)
    44          __lbl_name = wx.StaticText(self, -1, _("Status"))
    45          __gzszr_main.Add(__lbl_name, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    46          __gzszr_main.Add(self._LBL_info, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    47          __lbl_dob = wx.StaticText(self, -1, _("Born"))
    48          __gzszr_main.Add(__lbl_dob, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    49          __gzszr_main.Add(self._PRW_dob, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    50          __lbl_dod = wx.StaticText(self, -1, _("Deceased"))
    51          __gzszr_main.Add(__lbl_dod, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    52          __gzszr_main.Add(self._PRW_dod, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    53          __lbl_gender = wx.StaticText(self, -1, _("Gender"))
    54          __gzszr_main.Add(__lbl_gender, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    55          __gzszr_main.Add(self._PRW_gender, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    56          __lbl_ethnicity = wx.StaticText(self, -1, _("Ethnicity"))
    57          __gzszr_main.Add(__lbl_ethnicity, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    58          __gzszr_main.Add(self._PRW_ethnicity, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    59          __lbl_title = wx.StaticText(self, -1, _("Title"))
    60          __gzszr_main.Add(__lbl_title, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    61          __gzszr_main.Add(self._PRW_title, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    62          __lbl_comment = wx.StaticText(self, -1, _("Comment"))
    63          __gzszr_main.Add(__lbl_comment, 0, 0, 0)
    64          __gzszr_main.Add(self._TCTRL_comment, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    65          self.SetSizer(__gzszr_main)
    66          __gzszr_main.Fit(self)
    67          __gzszr_main.AddGrowableRow(6)
    68          __gzszr_main.AddGrowableCol(1)
    69          # end wxGlade
    70
    71  # end of class wxgIdentityEAPnl
    72