Gnumed.wxGladeWidgets.wxgIdentityEAPnl

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._CHBOX_estimated_dob = wx.CheckBox(self, -1, _(u"≈"))
    23          self._TCTRL_tob = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    24          self._PRW_dod = gmDateTimeInput.cDateInputPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    25          self._PRW_gender = gmDemographicsWidgets.cGenderSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    26          self._PRW_ethnicity = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    27          self._PRW_title = gmDemographicsWidgets.cTitlePhraseWheel(self, -1, "", style=wx.NO_BORDER)
    28          self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE | wx.NO_BORDER)
    29
    30          self.__set_properties()
    31          self.__do_layout()
    32          # end wxGlade
    33
    34 -    def __set_properties(self):
    35          # begin wxGlade: wxgIdentityEAPnl.__set_properties
    36          self.SetScrollRate(10, 10)
    37          self._PRW_dob.SetToolTipString(_("The date of birth for this person."))
    38          self._CHBOX_estimated_dob.SetToolTipString(_("Check this if the date of birth is estimated rather than known precisely."))
    39          self._TCTRL_tob.SetToolTipString(_("The time of birth if known."))
    40          self._PRW_dod.SetToolTipString(_("The date of death."))
    41          self._PRW_ethnicity.Enable(False)
    42          self._TCTRL_comment.SetToolTipString(_("A free-text comment on this person."))
    43          # end wxGlade
    44
    45 -    def __do_layout(self):
    46          # begin wxGlade: wxgIdentityEAPnl.__do_layout
    47          __gzszr_main = wx.FlexGridSizer(7, 2, 1, 3)
    48          __szr_dob = wx.BoxSizer(wx.HORIZONTAL)
    49          __lbl_name = wx.StaticText(self, -1, _("Status"))
    50          __gzszr_main.Add(__lbl_name, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    51          __gzszr_main.Add(self._LBL_info, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    52          __lbl_dob = wx.StaticText(self, -1, _("Born"))
    53          __gzszr_main.Add(__lbl_dob, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    54          __szr_dob.Add(self._PRW_dob, 1, wx.RIGHT | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 5)
    55          __szr_dob.Add(self._CHBOX_estimated_dob, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)
    56          __vline_dob = wx.StaticLine(self, -1, style=wx.LI_VERTICAL)
    57          __szr_dob.Add(__vline_dob, 0, wx.LEFT | wx.RIGHT | wx.EXPAND, 2)
    58          __lbl_tob = wx.StaticText(self, -1, _("Time:"))
    59          __szr_dob.Add(__lbl_tob, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 3)
    60          __szr_dob.Add(self._TCTRL_tob, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    61          __gzszr_main.Add(__szr_dob, 1, wx.EXPAND, 0)
    62          __lbl_dod = wx.StaticText(self, -1, _("Deceased"))
    63          __gzszr_main.Add(__lbl_dod, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    64          __gzszr_main.Add(self._PRW_dod, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    65          __lbl_gender = wx.StaticText(self, -1, _("Gender"))
    66          __gzszr_main.Add(__lbl_gender, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    67          __gzszr_main.Add(self._PRW_gender, 1, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    68          __lbl_ethnicity = wx.StaticText(self, -1, _("Ethnicity"))
    69          __gzszr_main.Add(__lbl_ethnicity, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    70          __gzszr_main.Add(self._PRW_ethnicity, 1, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    71          __lbl_title = wx.StaticText(self, -1, _("Title"))
    72          __gzszr_main.Add(__lbl_title, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    73          __gzszr_main.Add(self._PRW_title, 1, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    74          __lbl_comment = wx.StaticText(self, -1, _("Comment"))
    75          __gzszr_main.Add(__lbl_comment, 0, 0, 0)
    76          __gzszr_main.Add(self._TCTRL_comment, 1, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    77          self.SetSizer(__gzszr_main)
    78          __gzszr_main.Fit(self)
    79          __gzszr_main.AddGrowableRow(6)
    80          __gzszr_main.AddGrowableCol(1)
    81          # end wxGlade
    82
    83  # end of class wxgIdentityEAPnl
    84