Gnumed.wxGladeWidgets.wxgExternalIDEditAreaPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgExternalIDEditAreaPnl

     1  # -*- coding: UTF-8 -*-
     2  #
     3  # generated by wxGlade
     4  #
     5
     6  import wx
     7
     8  # begin wxGlade: dependencies
     9  import gettext
    10  # end wxGlade
    11
    12  # begin wxGlade: extracode
    13  # end wxGlade
    14
    15
    16 -class wxgExternalIDEditAreaPnl(wx.ScrolledWindow):
    17 -        def __init__(self, *args, **kwds):
    18                  # begin wxGlade: wxgExternalIDEditAreaPnl.__init__
    19                  kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
    20                  wx.ScrolledWindow.__init__(self, *args, **kwds)
    21                  from Gnumed.wxpython.gmDemographicsWidgets import cExternalIDTypePhraseWheel
    22                  self._PRW_type = cExternalIDTypePhraseWheel(self, wx.ID_ANY, "")
    23                  self._TCTRL_value = wx.TextCtrl(self, wx.ID_ANY, "")
    24                  from Gnumed.wxpython.gmDemographicsWidgets import cExternalIDIssuerPhraseWheel
    25                  self._PRW_issuer = cExternalIDIssuerPhraseWheel(self, wx.ID_ANY, "")
    26                  self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "")
    27
    28                  self.__set_properties()
    29                  self.__do_layout()
    30                  # end wxGlade
    31
    32 -        def __set_properties(self):
    33                  # begin wxGlade: wxgExternalIDEditAreaPnl.__set_properties
    34                  self.SetScrollRate(10, 10)
    35                  self._TCTRL_value.SetToolTip(_("Enter the actual ID (number, identifier, ...) here."))
    36                  self._TCTRL_comment.SetToolTip(_("Enter a comment on this external ID."))
    37                  # end wxGlade
    38
    39 -        def __do_layout(self):
    40                  # begin wxGlade: wxgExternalIDEditAreaPnl.__do_layout
    41                  _gszr_main = wx.FlexGridSizer(4, 2, 3, 5)
    42                  __LBL_type = wx.StaticText(self, wx.ID_ANY, _("ID Type"))
    43                  _gszr_main.Add(__LBL_type, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    44                  _gszr_main.Add(self._PRW_type, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    45                  __LBL_value = wx.StaticText(self, wx.ID_ANY, _("Value"))
    46                  _gszr_main.Add(__LBL_value, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    47                  _gszr_main.Add(self._TCTRL_value, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    48                  __LBL_issuer = wx.StaticText(self, wx.ID_ANY, _("Issuer"))
    49                  _gszr_main.Add(__LBL_issuer, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    50                  _gszr_main.Add(self._PRW_issuer, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    51                  __LBL_comment = wx.StaticText(self, wx.ID_ANY, _("Comment"))
    52                  _gszr_main.Add(__LBL_comment, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    53                  _gszr_main.Add(self._TCTRL_comment, 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    54                  self.SetSizer(_gszr_main)
    55                  _gszr_main.Fit(self)
    56                  _gszr_main.AddGrowableCol(1)
    57                  self.Layout()
    58                  # end wxGlade
    59
    60  # end of class wxgExternalIDEditAreaPnl
    61