Gnumed.wxGladeWidgets.wxgExternalIDEditAreaPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgExternalIDEditAreaPnl

     1  #!/usr/bin/env python
     2  # -*- coding: utf-8 -*-
     3  # generated by wxGlade 0.5 on Wed Dec  5 16:15:06 2007 from /home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgExternalIDEditAreaPnl.wxg
     4
     5  import wx
     6
     7 -class wxgExternalIDEditAreaPnl(wx.ScrolledWindow):
     8 -    def __init__(self, *args, **kwds):
     9
    10          from Gnumed.wxpython import gmDemographicsWidgets
    11
    12          # begin wxGlade: wxgExternalIDEditAreaPnl.__init__
    13          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    14          wx.ScrolledWindow.__init__(self, *args, **kwds)
    15          self._PRW_type = gmDemographicsWidgets.cExternalIDTypePhraseWheel(self, -1, "", style=wx.NO_BORDER)
    16          self._TCTRL_value = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    17          self._PRW_issuer = gmDemographicsWidgets.cExternalIDIssuerPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    18          self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    19
    20          self.__set_properties()
    21          self.__do_layout()
    22          # end wxGlade
    23
    24 -    def __set_properties(self):
    25          # begin wxGlade: wxgExternalIDEditAreaPnl.__set_properties
    26          self.SetScrollRate(10, 10)
    27          self._TCTRL_value.SetToolTipString(_("Enter the actual ID (number, identifier, ...) here."))
    28          self._TCTRL_comment.SetToolTipString(_("Enter a comment on this external ID."))
    29          # end wxGlade
    30
    31 -    def __do_layout(self):
    32          # begin wxGlade: wxgExternalIDEditAreaPnl.__do_layout
    33          _gszr_main = wx.FlexGridSizer(10, 2, 3, 5)
    34          __LBL_type = wx.StaticText(self, -1, _("ID Type"))
    35          _gszr_main.Add(__LBL_type, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    36          _gszr_main.Add(self._PRW_type, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    37          __LBL_value = wx.StaticText(self, -1, _("Value"))
    38          _gszr_main.Add(__LBL_value, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    39          _gszr_main.Add(self._TCTRL_value, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    40          __LBL_issuer = wx.StaticText(self, -1, _("Issuer"))
    41          _gszr_main.Add(__LBL_issuer, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    42          _gszr_main.Add(self._PRW_issuer, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    43          __LBL_comment = wx.StaticText(self, -1, _("Comment"))
    44          _gszr_main.Add(__LBL_comment, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    45          _gszr_main.Add(self._TCTRL_comment, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    46          self.SetSizer(_gszr_main)
    47          _gszr_main.Fit(self)
    48          _gszr_main.AddGrowableCol(1)
    49          # end wxGlade
    50
    51  # end of class wxgExternalIDEditAreaPnl
    52