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

# Source Code for Module Gnumed.wxGladeWidgets.wxgMetaTestTypeEAPnl

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