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 12 # begin wxGlade: wxgEpisodeEditAreaPnl.__init__ 13 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 14 wx.ScrolledWindow.__init__(self, *args, **kwds) 15 self._TCTRL_patient = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 16 self._PRW_issue = gmEMRStructWidgets.cIssueSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER) 17 self._PRW_description = gmEMRStructWidgets.cEpisodeDescriptionPhraseWheel(self, -1, "", style=wx.NO_BORDER) 18 self._PRW_classification = gmEMRStructWidgets.cDiagnosticCertaintyClassificationPhraseWheel(self, -1, "", style=wx.NO_BORDER) 19 self._CHBOX_closed = wx.CheckBox(self, -1, _("Closed")) 20 21 self.__set_properties() 22 self.__do_layout()
23 # end wxGlade 24
25 - def __set_properties(self):
26 # begin wxGlade: wxgEpisodeEditAreaPnl.__set_properties 27 self.SetScrollRate(10, 10) 28 self._TCTRL_patient.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_BACKGROUND)) 29 self._PRW_issue.SetToolTipString(_("Select the health issue this episode belongs to.")) 30 self._PRW_description.SetToolTipString(_("Type or select the description for this episode. It should be a summary for the episode of illness.")) 31 self._PRW_classification.SetToolTipString(_("The diagnostic classification or grading of this episode.\n\nThis documents how certain one is about this episode being a true diagnosis.")) 32 self._CHBOX_closed.SetToolTipString(_("If this box is checked the episode is over. If not it is currently ongoing."))
33 # end wxGlade 34
35 - def __do_layout(self):
36 # begin wxGlade: wxgEpisodeEditAreaPnl.__do_layout 37 __szr_main = wx.BoxSizer(wx.VERTICAL) 38 __gzsr_details = wx.FlexGridSizer(4, 2, 3, 5) 39 __szr_status = wx.BoxSizer(wx.HORIZONTAL) 40 __lbl_patient = wx.StaticText(self, -1, _("Patient")) 41 __gzsr_details.Add(__lbl_patient, 0, wx.ALIGN_CENTER_VERTICAL, 0) 42 __gzsr_details.Add(self._TCTRL_patient, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 43 __lbl_issue = wx.StaticText(self, -1, _("Nest under")) 44 __gzsr_details.Add(__lbl_issue, 0, wx.ALIGN_CENTER_VERTICAL, 0) 45 __gzsr_details.Add(self._PRW_issue, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 46 __lbl_description = wx.StaticText(self, -1, _("Description")) 47 __gzsr_details.Add(__lbl_description, 0, wx.ALIGN_CENTER_VERTICAL, 0) 48 __gzsr_details.Add(self._PRW_description, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 49 __lbl_certainty = wx.StaticText(self, -1, _("Certainty")) 50 __gzsr_details.Add(__lbl_certainty, 0, wx.ALIGN_CENTER_VERTICAL, 0) 51 __szr_status.Add(self._PRW_classification, 1, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 15) 52 __szr_status.Add(self._CHBOX_closed, 1, wx.ALIGN_CENTER_VERTICAL, 0) 53 __gzsr_details.Add(__szr_status, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 54 __gzsr_details.AddGrowableCol(1) 55 __szr_main.Add(__gzsr_details, 1, wx.EXPAND, 0) 56 self.SetSizer(__szr_main) 57 __szr_main.Fit(self)
58 # end wxGlade 59
60 - def _on_standalone_chbox_checked(self, event): # wxGlade: wxgEpisodeEditAreaPnl.<event_handler>
61 print "Event handler `_on_standalone_chbox_checked' not implemented!" 62 event.Skip()
63 64 # end of class wxgEpisodeEditAreaPnl 65