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

# Source Code for Module Gnumed.wxGladeWidgets.wxgMetaTestTypeEAPnl

     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  from Gnumed.wxpython import gmPhraseWheel
    14  # end wxGlade
    15
    16
    17 -class wxgMetaTestTypeEAPnl(wx.ScrolledWindow):
    18 -        def __init__(self, *args, **kwds):
    19                  # begin wxGlade: wxgMetaTestTypeEAPnl.__init__
    20                  kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
    21                  wx.ScrolledWindow.__init__(self, *args, **kwds)
    22                  self._PRW_name = cPhraseWheel(self, wx.ID_ANY, "")
    23                  self._PRW_abbreviation = cPhraseWheel(self, wx.ID_ANY, "")
    24                  self._PRW_loinc = cPhraseWheel(self, wx.ID_ANY, "")
    25                  self._TCTRL_loinc_info = wx.TextCtrl(self, wx.ID_ANY, "")
    26                  self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "")
    27                  self._LBL_member_detail = wx.StaticText(self, wx.ID_ANY, "")
    28
    29                  self.__set_properties()
    30                  self.__do_layout()
    31                  # end wxGlade
    32
    33 -        def __set_properties(self):
    34                  # begin wxGlade: wxgMetaTestTypeEAPnl.__set_properties
    35                  self.SetScrollRate(10, 10)
    36                  self._PRW_name.SetToolTip(_("Mandatory: A descriptive name for this meta test type."))
    37                  self._PRW_abbreviation.SetToolTip(_("Mandatory: An abbreviation for this meta test type."))
    38                  self._PRW_loinc.SetToolTip(_("Optional: The LOINC for the meta test type."))
    39                  self._TCTRL_loinc_info.Enable(False)
    40                  self._TCTRL_comment.SetToolTip(_("Optional: A comment on this meta test type."))
    41                  # end wxGlade
    42
    43 -        def __do_layout(self):
    44                  # begin wxGlade: wxgMetaTestTypeEAPnl.__do_layout
    45                  _gszr_main = wx.FlexGridSizer(6, 2, 1, 3)
    46                  __lbl_meta_name = wx.StaticText(self, wx.ID_ANY, _("Name"))
    47                  __lbl_meta_name.SetForegroundColour(wx.Colour(255, 0, 0))
    48                  _gszr_main.Add(__lbl_meta_name, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    49                  _gszr_main.Add(self._PRW_name, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    50                  __lbl_abbreviation = wx.StaticText(self, wx.ID_ANY, _("Abbreviation"))
    51                  __lbl_abbreviation.SetForegroundColour(wx.Colour(255, 0, 0))
    52                  _gszr_main.Add(__lbl_abbreviation, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    53                  _gszr_main.Add(self._PRW_abbreviation, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    54                  __lbl_loinc = wx.StaticText(self, wx.ID_ANY, _("LOINC"))
    55                  _gszr_main.Add(__lbl_loinc, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    56                  _gszr_main.Add(self._PRW_loinc, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    57                  _gszr_main.Add((20, 20), 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    58                  _gszr_main.Add(self._TCTRL_loinc_info, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    59                  __lbl_comment = wx.StaticText(self, wx.ID_ANY, _("Comment"))
    60                  _gszr_main.Add(__lbl_comment, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    61                  _gszr_main.Add(self._TCTRL_comment, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    62                  __lbl_members = wx.StaticText(self, wx.ID_ANY, _("Contains"))
    63                  _gszr_main.Add(__lbl_members, 0, 0, 0)
    64                  _gszr_main.Add(self._LBL_member_detail, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0)
    65                  self.SetSizer(_gszr_main)
    66                  _gszr_main.Fit(self)
    67                  _gszr_main.AddGrowableRow(5)
    68                  _gszr_main.AddGrowableCol(1)
    69                  self.Layout()
    70                  # end wxGlade
    71
    72  # end of class wxgMetaTestTypeEAPnl
    73