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

Source Code for Module Gnumed.wxGladeWidgets.wxgProcedureEAPnl

 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/wxgProcedureEAPnl.wxg" 
 4   
 5  import wx 
 6   
 7  # begin wxGlade: extracode 
 8  # end wxGlade 
 9   
10   
11   
12 -class wxgProcedureEAPnl(wx.ScrolledWindow):
13 - def __init__(self, *args, **kwds):
14 15 from Gnumed.wxpython import gmPhraseWheel 16 from Gnumed.wxpython import gmEMRStructWidgets 17 from Gnumed.wxpython import gmDateTimeInput 18 19 # begin wxGlade: wxgProcedureEAPnl.__init__ 20 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 21 wx.ScrolledWindow.__init__(self, *args, **kwds) 22 self._DPRW_date = gmDateTimeInput.cFuzzyTimestampInput(self, -1, "", style=wx.NO_BORDER) 23 self._PRW_hospital_stay = gmEMRStructWidgets.cHospitalStayPhraseWheel(self, -1, "", style=wx.NO_BORDER) 24 self._BTN_add_stay = wx.Button(self, -1, _("+"), style=wx.BU_EXACTFIT) 25 self._PRW_location = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER) 26 self._PRW_episode = gmEMRStructWidgets.cEpisodeSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER) 27 self._PRW_procedure = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER) 28 29 self.__set_properties() 30 self.__do_layout() 31 32 self.Bind(wx.EVT_BUTTON, self._on_add_hospital_stay_button_pressed, self._BTN_add_stay)
33 # end wxGlade 34
35 - def __set_properties(self):
36 # begin wxGlade: wxgProcedureEAPnl.__set_properties 37 self.SetScrollRate(10, 10) 38 self._DPRW_date.SetToolTipString(_("When did this procedure take place ?")) 39 self._PRW_hospital_stay.SetToolTipString(_("During which hospital stay was this procedure performed.")) 40 self._BTN_add_stay.SetToolTipString(_("Add a hospital stay.")) 41 self._PRW_location.SetToolTipString(_("The location (praxis, clinic, ...) this procedure was performed at.\n\nMutually exclusive with \"Hospital stay\". Requires \"Episode\".")) 42 self._PRW_episode.SetToolTipString(_("The episode this procedure was performed under.\n\nMutually exclusive with \"Hospital stay\". Requires \"Location\".")) 43 self._PRW_procedure.SetToolTipString(_("The actual procedure performed on the patient."))
44 # end wxGlade 45
46 - def __do_layout(self):
47 # begin wxGlade: wxgProcedureEAPnl.__do_layout 48 _gszr_main = wx.FlexGridSizer(6, 2, 1, 3) 49 __szr_stay = wx.BoxSizer(wx.HORIZONTAL) 50 __lbl_date = wx.StaticText(self, -1, _("Date")) 51 _gszr_main.Add(__lbl_date, 0, wx.ALIGN_CENTER_VERTICAL, 0) 52 _gszr_main.Add(self._DPRW_date, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 53 __lbl_stay = wx.StaticText(self, -1, _("Hospital stay")) 54 _gszr_main.Add(__lbl_stay, 0, wx.ALIGN_CENTER_VERTICAL, 0) 55 __szr_stay.Add(self._PRW_hospital_stay, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 56 __szr_stay.Add(self._BTN_add_stay, 0, wx.ALIGN_CENTER_VERTICAL, 0) 57 _gszr_main.Add(__szr_stay, 1, wx.EXPAND, 0) 58 __lbl_or = wx.StaticText(self, -1, _("... or ...")) 59 _gszr_main.Add(__lbl_or, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) 60 _gszr_main.Add((20, 20), 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 61 __lbl_location = wx.StaticText(self, -1, _("Location")) 62 _gszr_main.Add(__lbl_location, 0, wx.ALIGN_CENTER_VERTICAL, 0) 63 _gszr_main.Add(self._PRW_location, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 64 __lbl_episode = wx.StaticText(self, -1, _("and Episode")) 65 _gszr_main.Add(__lbl_episode, 0, wx.ALIGN_CENTER_VERTICAL, 0) 66 _gszr_main.Add(self._PRW_episode, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 67 __lbl_procedure = wx.StaticText(self, -1, _("Procedure")) 68 _gszr_main.Add(__lbl_procedure, 0, wx.ALIGN_CENTER_VERTICAL, 0) 69 _gszr_main.Add(self._PRW_procedure, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 70 self.SetSizer(_gszr_main) 71 _gszr_main.Fit(self) 72 _gszr_main.AddGrowableCol(1)
73 # end wxGlade 74
75 - def _on_add_hospital_stay_button_pressed(self, event): # wxGlade: wxgProcedureEAPnl.<event_handler>
76 print "Event handler `_on_add_hospital_stay_button_pressed' not implemented!" 77 event.Skip()
78 79 # end of class wxgProcedureEAPnl 80