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

# Source Code for Module Gnumed.wxGladeWidgets.wxgEncounterTypeEditAreaPnl

     1  #!/usr/bin/env python
     2  # -*- coding: utf8 -*-
     3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgEncounterTypeEditAreaPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11
    12 -class wxgEncounterTypeEditAreaPnl(wx.ScrolledWindow):
    13 -    def __init__(self, *args, **kwds):
    14          # begin wxGlade: wxgEncounterTypeEditAreaPnl.__init__
    15          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    16          wx.ScrolledWindow.__init__(self, *args, **kwds)
    17          self._TCTRL_l10n_name = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    18          self._TCTRL_name = 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: wxgEncounterTypeEditAreaPnl.__set_properties
    26          self.SetScrollRate(10, 10)
    27          self._TCTRL_l10n_name.SetToolTipString(_("Required: A name for this encounter type in your local language."))
    28          self._TCTRL_name.SetToolTipString(_("Optional: A system-wide description for this encounter type. If you leave this empty the local name will be used.\n\nIt is useful to choose an English term but that is not mandatory. One advantage to using a system-wide type description is that different people can have the system description translated into their language and still use the same encounter type."))
    29          self._TCTRL_name.Enable(False)
    30          # end wxGlade
    31
    32 -    def __do_layout(self):
    33          # begin wxGlade: wxgEncounterTypeEditAreaPnl.__do_layout
    34          _gszr_main = wx.FlexGridSizer(2, 2, 1, 3)
    35          __lbl_l10n_name = wx.StaticText(self, -1, _("Local name"))
    36          __lbl_l10n_name.SetForegroundColour(wx.Colour(255, 0, 0))
    37          _gszr_main.Add(__lbl_l10n_name, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    38          _gszr_main.Add(self._TCTRL_l10n_name, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    39          __lbl_name = wx.StaticText(self, -1, _("Encounter type"))
    40          _gszr_main.Add(__lbl_name, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    41          _gszr_main.Add(self._TCTRL_name, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    42          self.SetSizer(_gszr_main)
    43          _gszr_main.Fit(self)
    44          _gszr_main.AddGrowableCol(1)
    45          # end wxGlade
    46
    47  # end of class wxgEncounterTypeEditAreaPnl
    48