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

Source Code for Module Gnumed.wxGladeWidgets.wxgEncounterEditAreaPnl

 1  #!/usr/bin/env python 
 2  # -*- coding: ISO-8859-15 -*- 
 3  # generated by wxGlade 0.4.1 on Tue Dec 19 18:18:37 2006 
 4   
 5  import wx 
 6   
7 -class wxgEncounterEditAreaPnl(wx.ScrolledWindow):
8 - def __init__(self, *args, **kwds):
9 10 from Gnumed.wxpython import gmEMRStructWidgets, gmListWidgets, gmDateTimeInput 11 12 # begin wxGlade: wxgEncounterEditAreaPnl.__init__ 13 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 14 wx.ScrolledWindow.__init__(self, *args, **kwds) 15 self._LBL_patient = wx.StaticText(self, -1, "") 16 self._LBL_instructions = wx.StaticText(self, -1, _("Edit the details for the encounter below:")) 17 self._PRW_encounter_type = gmEMRStructWidgets.cEncounterTypePhraseWheel(self, -1, "", style=wx.NO_BORDER) 18 self._PRW_start = gmDateTimeInput.cFuzzyTimestampInput(self, -1, "", style=wx.NO_BORDER) 19 self._PRW_end = gmDateTimeInput.cFuzzyTimestampInput(self, -1, "", style=wx.NO_BORDER) 20 self._TCTRL_rfe = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 21 self._TCTRL_aoe = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 22 23 self.__set_properties() 24 self.__do_layout()
25 # end wxGlade 26
27 - def __set_properties(self):
28 # begin wxGlade: wxgEncounterEditAreaPnl.__set_properties 29 self.SetScrollRate(10, 10) 30 self._PRW_encounter_type.SetToolTipString(_("Select the type of encounter.")) 31 self._TCTRL_rfe.SetToolTipString(_("Enter the Reason For Encounter here. This is the patient's initial request which led to the encounter.")) 32 self._TCTRL_aoe.SetToolTipString(_("Enter the Encounter Summary here. This is your final assessment of the encounter summary."))
33 # end wxGlade 34
35 - def __do_layout(self):
36 # begin wxGlade: wxgEncounterEditAreaPnl.__do_layout 37 __szr_main = wx.BoxSizer(wx.VERTICAL) 38 __gszr_encounter_details = wx.FlexGridSizer(6, 2, 2, 5) 39 __szr_patient = wx.BoxSizer(wx.HORIZONTAL) 40 __lbl_patient = wx.StaticText(self, -1, _("Patient:")) 41 __szr_patient.Add(__lbl_patient, 0, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 10) 42 __szr_patient.Add(self._LBL_patient, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 1) 43 __szr_main.Add(__szr_patient, 0, wx.EXPAND, 0) 44 __szr_main.Add(self._LBL_instructions, 0, wx.TOP|wx.EXPAND, 3) 45 __lbl_type = wx.StaticText(self, -1, _("Type")) 46 __gszr_encounter_details.Add(__lbl_type, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 47 __gszr_encounter_details.Add(self._PRW_encounter_type, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 48 __lbl_start = wx.StaticText(self, -1, _("Started")) 49 __gszr_encounter_details.Add(__lbl_start, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 50 __gszr_encounter_details.Add(self._PRW_start, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 51 __lbl_end = wx.StaticText(self, -1, _("Ended")) 52 __gszr_encounter_details.Add(__lbl_end, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 53 __gszr_encounter_details.Add(self._PRW_end, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 54 __lbl_rfe = wx.StaticText(self, -1, _("Request")) 55 __gszr_encounter_details.Add(__lbl_rfe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 56 __gszr_encounter_details.Add(self._TCTRL_rfe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 57 __lbl_aoe = wx.StaticText(self, -1, _("Summary")) 58 __gszr_encounter_details.Add(__lbl_aoe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 59 __gszr_encounter_details.Add(self._TCTRL_aoe, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 60 __gszr_encounter_details.AddGrowableCol(1) 61 __szr_main.Add(__gszr_encounter_details, 0, wx.TOP|wx.EXPAND, 3) 62 self.SetSizer(__szr_main) 63 __szr_main.Fit(self)
64 # end wxGlade 65 66 # end of class wxgEncounterEditAreaPnl 67