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

# Source Code for Module Gnumed.wxGladeWidgets.wxgHospitalStayEditAreaPnl

     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/wxgHospitalStayEditAreaPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11
    12 -class wxgHospitalStayEditAreaPnl(wx.Panel):
    13 -    def __init__(self, *args, **kwds):
    14
    15          from Gnumed.wxpython.gmEMRStructWidgets import cEpisodeSelectionPhraseWheel
    16          from Gnumed.wxpython.gmPhraseWheel import cPhraseWheel
    17          from Gnumed.wxpython import gmDateTimeInput
    18
    19          # begin wxGlade: wxgHospitalStayEditAreaPnl.__init__
    20          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    21          wx.Panel.__init__(self, *args, **kwds)
    22          self._PRW_hospital = cPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    23          self._PRW_episode = cEpisodeSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    24          self._PRW_admission = gmDateTimeInput.cDateInputPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    25          self._PRW_discharge = gmDateTimeInput.cDateInputPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    26
    27          self.__set_properties()
    28          self.__do_layout()
    29          # end wxGlade
    30
    31 -    def __set_properties(self):
    32          # begin wxGlade: wxgHospitalStayEditAreaPnl.__set_properties
    33          self._PRW_hospital.SetToolTipString(_("Mandatory: Which hospital the patient was admitted to."))
    34          self._PRW_episode.SetToolTipString(_("Mandatory: The episode (reason, condition) because of which the patient was admitted."))
    35          self._PRW_admission.SetToolTipString(_("Mandatory: When was the patient admitted ?"))
    36          self._PRW_discharge.SetToolTipString(_("Optional: When was the Patient discharged ?"))
    37          # end wxGlade
    38
    39 -    def __do_layout(self):
    40          # begin wxGlade: wxgHospitalStayEditAreaPnl.__do_layout
    41          _gszr_main = wx.FlexGridSizer(4, 2, 3, 5)
    42          __lbl_hospital = wx.StaticText(self, -1, _("Hospital"))
    43          __lbl_hospital.SetForegroundColour(wx.Colour(255, 0, 0))
    44          _gszr_main.Add(__lbl_hospital, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    45          _gszr_main.Add(self._PRW_hospital, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    46          __lbl_episode = wx.StaticText(self, -1, _("Episode"))
    47          __lbl_episode.SetForegroundColour(wx.Colour(255, 0, 0))
    48          _gszr_main.Add(__lbl_episode, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    49          _gszr_main.Add(self._PRW_episode, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    50          __lbl_admission = wx.StaticText(self, -1, _("Admitted"))
    51          __lbl_admission.SetForegroundColour(wx.Colour(255, 0, 0))
    52          _gszr_main.Add(__lbl_admission, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    53          _gszr_main.Add(self._PRW_admission, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    54          __lbl_discharge = wx.StaticText(self, -1, _("Discharged"))
    55          _gszr_main.Add(__lbl_discharge, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    56          _gszr_main.Add(self._PRW_discharge, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    57          self.SetSizer(_gszr_main)
    58          _gszr_main.Fit(self)
    59          _gszr_main.AddGrowableCol(1)
    60          # end wxGlade
    61
    62  # end of class wxgHospitalStayEditAreaPnl
    63