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

# Source Code for Module Gnumed.wxGladeWidgets.wxgEpisodeEditAreaPnl

     1  #!/usr/bin/env python
     2  # -*- coding: ISO-8859-15 -*-
     3  # generated by wxGlade 0.4.1 on Wed Jan  3 16:20:33 2007
     4
     5  import wx
     6
     7 -class wxgEpisodeEditAreaPnl(wx.ScrolledWindow):
     8 -    def __init__(self, *args, **kwds):
     9
    10          from Gnumed.wxpython import gmEMRStructWidgets
    11          from Gnumed.wxpython.gmCodingWidgets import cGenericCodesPhraseWheel
    12
    13
    14          # begin wxGlade: wxgEpisodeEditAreaPnl.__init__
    15          kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
    16          wx.ScrolledWindow.__init__(self, *args, **kwds)
    17          self._TCTRL_patient = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)
    18          self._PRW_issue = gmEMRStructWidgets.cIssueSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    19          self._PRW_description = gmEMRStructWidgets.cEpisodeDescriptionPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    20          self._PRW_certainty = gmEMRStructWidgets.cDiagnosticCertaintyClassificationPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    21          self._CHBOX_closed = wx.CheckBox(self, -1, _("Closed"))
    22          self._TCTRL_status = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE|wx.NO_BORDER)
    23          self._PRW_codes = cGenericCodesPhraseWheel(self, -1, "", style=wx.NO_BORDER)
    24
    25          self.__set_properties()
    26          self.__do_layout()
    27          # end wxGlade
    28
    29 -    def __set_properties(self):
    30          # begin wxGlade: wxgEpisodeEditAreaPnl.__set_properties
    31          self.SetScrollRate(10, 10)
    32          self._TCTRL_patient.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_BACKGROUND))
    33          self._PRW_issue.SetToolTipString(_("Select the health issue this episode belongs to.\n\nEpisode remains unassociated if this field is left blank."))
    34          self._PRW_description.SetToolTipString(_("Type or select the description for this episode. It should be a summary for the episode of illness."))
    35          self._PRW_certainty.SetToolTipString(_("The diagnostic classification or grading of this episode.\n\nThis documents how certain one is about this episode being a true diagnosis."))
    36          self._CHBOX_closed.SetToolTipString(_("If this box is checked the episode is over. If not it is currently ongoing."))
    37          self._TCTRL_status.SetToolTipString(_("A summary of the state of this episode."))
    38          self._PRW_codes.SetToolTipString(_("Codes relevant to this episode\nseparated by \";\"."))
    39          # end wxGlade
    40
    41 -    def __do_layout(self):
    42          # begin wxGlade: wxgEpisodeEditAreaPnl.__do_layout
    43          __szr_main = wx.BoxSizer(wx.VERTICAL)
    44          __gzsr_details = wx.FlexGridSizer(6, 2, 3, 5)
    45          __szr_status = wx.BoxSizer(wx.HORIZONTAL)
    46          __lbl_patient = wx.StaticText(self, -1, _("Patient"))
    47          __gzsr_details.Add(__lbl_patient, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    48          __gzsr_details.Add(self._TCTRL_patient, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    49          __lbl_issue = wx.StaticText(self, -1, _("Nest under"))
    50          __gzsr_details.Add(__lbl_issue, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    51          __gzsr_details.Add(self._PRW_issue, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    52          __lbl_description = wx.StaticText(self, -1, _("Description"))
    53          __lbl_description.SetForegroundColour(wx.Colour(255, 0, 0))
    54          __gzsr_details.Add(__lbl_description, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    55          __gzsr_details.Add(self._PRW_description, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    56          __lbl_certainty = wx.StaticText(self, -1, _("Certainty"))
    57          __gzsr_details.Add(__lbl_certainty, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    58          __szr_status.Add(self._PRW_certainty, 1, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 15)
    59          __szr_status.Add(self._CHBOX_closed, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    60          __gzsr_details.Add(__szr_status, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    61          __lbl_status = wx.StaticText(self, -1, _("Synopsis"))
    62          __gzsr_details.Add(__lbl_status, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    63          __gzsr_details.Add(self._TCTRL_status, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    64          __lbl_codes = wx.StaticText(self, -1, _("Codes"))
    65          __gzsr_details.Add(__lbl_codes, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    66          __gzsr_details.Add(self._PRW_codes, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    67          __gzsr_details.AddGrowableCol(1)
    68          __szr_main.Add(__gzsr_details, 1, wx.EXPAND, 0)
    69          self.SetSizer(__szr_main)
    70          __szr_main.Fit(self)
    71          # end wxGlade
    72
    73 -    def _on_standalone_chbox_checked(self, event): # wxGlade: wxgEpisodeEditAreaPnl.<event_handler>
    74          print "Event handler `_on_standalone_chbox_checked' not implemented!"
    75          event.Skip()
    76
    77  # end of class wxgEpisodeEditAreaPnl
    78