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

Source Code for Module Gnumed.wxGladeWidgets.wxgActiveEncounterPnl

 1  # -*- coding: UTF-8 -*- 
 2  # 
 3  # generated by wxGlade 
 4  # 
 5   
 6  import wx 
 7   
 8  # begin wxGlade: dependencies 
 9  import gettext 
10  # end wxGlade 
11   
12  # begin wxGlade: extracode 
13  # end wxGlade 
14   
15   
16 -class wxgActiveEncounterPnl(wx.Panel):
17 - def __init__(self, *args, **kwds):
18 # begin wxGlade: wxgActiveEncounterPnl.__init__ 19 wx.Panel.__init__(self, *args, **kwds) 20 self._BTN_list = wx.Button(self, wx.ID_ANY, _("&L"), style=wx.BU_EXACTFIT) 21 self._TCTRL_encounter = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_READONLY) 22 self._BTN_new = wx.Button(self, wx.ID_ANY, _("&N"), style=wx.BU_EXACTFIT) 23 24 self.__set_properties() 25 self.__do_layout() 26 27 self.Bind(wx.EVT_BUTTON, self._on_list_button_pressed, self._BTN_list) 28 self.Bind(wx.EVT_BUTTON, self._on_new_button_pressed, self._BTN_new)
29 # end wxGlade 30
31 - def __set_properties(self):
32 # begin wxGlade: wxgActiveEncounterPnl.__set_properties 33 self._BTN_list.SetToolTip(_("List all encounters.")) 34 self._TCTRL_encounter.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BACKGROUND)) 35 self._TCTRL_encounter.SetToolTip(_("The encounter.")) 36 self._BTN_new.SetToolTip(_("Start a new encounter for the active patient."))
37 # end wxGlade 38
39 - def __do_layout(self):
40 # begin wxGlade: wxgActiveEncounterPnl.__do_layout 41 __szr_main = wx.BoxSizer(wx.HORIZONTAL) 42 __szr_main.Add(self._BTN_list, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 2) 43 __szr_main.Add(self._TCTRL_encounter, 1, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 2) 44 __szr_main.Add(self._BTN_new, 0, wx.ALIGN_CENTER_VERTICAL, 1) 45 self.SetSizer(__szr_main) 46 __szr_main.Fit(self) 47 self.Layout()
48 # end wxGlade 49
50 - def _on_list_button_pressed(self, event): # wxGlade: wxgActiveEncounterPnl.<event_handler>
51 print("Event handler '_on_list_button_pressed' not implemented!") 52 event.Skip()
53
54 - def _on_new_button_pressed(self, event): # wxGlade: wxgActiveEncounterPnl.<event_handler>
55 print("Event handler '_on_new_button_pressed' not implemented!") 56 event.Skip() 57 58 # end of class wxgActiveEncounterPnl 59