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.gmEMRStructWidgets import cHospitalWardPhraseWheel
    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 = cHospitalWardPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
    23          self._PRW_episode = cEpisodeSelectionPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
    24          self._PRW_admission = gmDateTimeInput.cDateInputPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
    25          self._PRW_discharge = gmDateTimeInput.cDateInputPhraseWheel(self, wx.ID_ANY, "", style=wx.NO_BORDER)
    26          self._TCTRL_comment = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.NO_BORDER)
    27
    28          self.__set_properties()
    29          self.__do_layout()
    30          # end wxGlade
    31
    32 -    def __set_properties(self):
    33          # begin wxGlade: wxgHospitalStayEditAreaPnl.__set_properties
    34          self._PRW_hospital.SetToolTipString(_("Mandatory: Which hospital the patient was admitted to."))
    35          self._PRW_episode.SetToolTipString(_("Mandatory: Select, or enter for creation, the episode (reason, condition) of this hospitalization."))
    36          self._PRW_admission.SetToolTipString(_("Mandatory: When was the patient admitted ?"))
    37          self._PRW_discharge.SetToolTipString(_("Optional: When was the Patient discharged ?"))
    38          self._TCTRL_comment.SetToolTipString(_("Optional: An arbitrary comment on this hospital stay."))
    39          # end wxGlade
    40
    41 -    def __do_layout(self):
    42          # begin wxGlade: wxgHospitalStayEditAreaPnl.__do_layout
    43          _gszr_main = wx.FlexGridSizer(5, 2, 3, 5)
    44          __lbl_hospital = wx.StaticText(self, wx.ID_ANY, _("Hospital"))
    45          __lbl_hospital.SetForegroundColour(wx.Colour(255, 0, 0))
    46          _gszr_main.Add(__lbl_hospital, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    47          _gszr_main.Add(self._PRW_hospital, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    48          __lbl_episode = wx.StaticText(self, wx.ID_ANY, _("Episode"))
    49          __lbl_episode.SetForegroundColour(wx.Colour(255, 0, 0))
    50          _gszr_main.Add(__lbl_episode, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    51          _gszr_main.Add(self._PRW_episode, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    52          __lbl_admission = wx.StaticText(self, wx.ID_ANY, _("Admitted"))
    53          __lbl_admission.SetForegroundColour(wx.Colour(255, 0, 0))
    54          _gszr_main.Add(__lbl_admission, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    55          _gszr_main.Add(self._PRW_admission, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    56          __lbl_discharge = wx.StaticText(self, wx.ID_ANY, _("Discharged"))
    57          _gszr_main.Add(__lbl_discharge, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    58          _gszr_main.Add(self._PRW_discharge, 0, wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 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.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    62          self.SetSizer(_gszr_main)
    63          _gszr_main.Fit(self)
    64          _gszr_main.AddGrowableCol(1)
    65          # end wxGlade
    66
    67  # end of class wxgHospitalStayEditAreaPnl
    68