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

# Source Code for Module Gnumed.wxGladeWidgets.wxgMeasurementTypeEAPnl

     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/wxgMeasurementTypeEAPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11
    12 -class wxgMeasurementTypeEAPnl(wx.ScrolledWindow):
    13 -    def __init__(self, *args, **kwds):
    14
    15          from Gnumed.wxpython import gmPhraseWheel
    16          from Gnumed.wxpython import gmMeasurementWidgets
    17
    18          # begin wxGlade: wxgMeasurementTypeEAPnl.__init__
    19          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    20          wx.ScrolledWindow.__init__(self, *args, **kwds)
    21          self._PRW_name = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    22          self._PRW_abbrev = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    23          self._PRW_conversion_unit = gmMeasurementWidgets.cUnitPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    24          self._PRW_loinc = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    25          self._TCTRL_loinc_info = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY|wx.NO_BORDER)
    26          self._TCTRL_comment_type = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    27          self._PRW_test_org = gmMeasurementWidgets.cMeasurementOrgPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    28          self._TCTRL_comment_org = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    29
    30          self.__set_properties()
    31          self.__do_layout()
    32          # end wxGlade
    33
    34 -    def __set_properties(self):
    35          # begin wxGlade: wxgMeasurementTypeEAPnl.__set_properties
    36          self.SetScrollRate(10, 10)
    37          self._PRW_name.SetToolTipString(_("A descriptive name for this test type."))
    38          self._PRW_name.SetFocus()
    39          self._PRW_abbrev.SetToolTipString(_("An abbreviation for the name of this test type."))
    40          self._PRW_conversion_unit.SetToolTipString(_("The base unit to convert results from different labs into when comparing time series."))
    41          self._PRW_loinc.SetToolTipString(_("The LOINC code corresponding to this test type."))
    42          self._TCTRL_loinc_info.Enable(False)
    43          self._TCTRL_comment_type.SetToolTipString(_("A comment on this test type, e.g. pertaining to typical context information."))
    44          self._PRW_test_org.SetToolTipString(_("The path lab/diagnostic organisation reporting on this test."))
    45          self._TCTRL_comment_org.SetToolTipString(_("A comment on the organisation performing this measurement."))
    46          # end wxGlade
    47
    48 -    def __do_layout(self):
    49          # begin wxGlade: wxgMeasurementTypeEAPnl.__do_layout
    50          _gszr_main = wx.FlexGridSizer(7, 2, 1, 3)
    51          __szr_loinc = wx.BoxSizer(wx.HORIZONTAL)
    52          __szr_abbrev_unit = wx.BoxSizer(wx.HORIZONTAL)
    53          __lbl_name = wx.StaticText(self, -1, _("Name"))
    54          _gszr_main.Add(__lbl_name, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    55          _gszr_main.Add(self._PRW_name, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    56          __lbl_abbrev = wx.StaticText(self, -1, _("Abbreviation"))
    57          _gszr_main.Add(__lbl_abbrev, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    58          __szr_abbrev_unit.Add(self._PRW_abbrev, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 10)
    59          __lbl_unit = wx.StaticText(self, -1, _("Unit"))
    60          __szr_abbrev_unit.Add(__lbl_unit, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5)
    61          __szr_abbrev_unit.Add(self._PRW_conversion_unit, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    62          _gszr_main.Add(__szr_abbrev_unit, 1, wx.EXPAND, 0)
    63          __lbl_loinc = wx.StaticText(self, -1, _("LOINC"))
    64          _gszr_main.Add(__lbl_loinc, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    65          __szr_loinc.Add(self._PRW_loinc, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 10)
    66          _gszr_main.Add(__szr_loinc, 1, wx.EXPAND, 0)
    67          _gszr_main.Add((20, 20), 0, wx.EXPAND, 0)
    68          _gszr_main.Add(self._TCTRL_loinc_info, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    69          __lbl_comment_type = wx.StaticText(self, -1, _("Comment"))
    70          _gszr_main.Add(__lbl_comment_type, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    71          _gszr_main.Add(self._TCTRL_comment_type, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    72          __lbl_test_org = wx.StaticText(self, -1, _("Lab"))
    73          _gszr_main.Add(__lbl_test_org, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    74          _gszr_main.Add(self._PRW_test_org, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 10)
    75          __lbl_comment_org = wx.StaticText(self, -1, _("Comment"))
    76          _gszr_main.Add(__lbl_comment_org, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    77          _gszr_main.Add(self._TCTRL_comment_org, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    78          self.SetSizer(_gszr_main)
    79          _gszr_main.Fit(self)
    80          _gszr_main.AddGrowableCol(1)
    81          # end wxGlade
    82
    83  # end of class wxgMeasurementTypeEAPnl
    84