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

Source Code for Module Gnumed.wxGladeWidgets.wxgMeasurementsByDayPnl

 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  from Gnumed.wxpython.gmListWidgets import cReportListCtrl 
14  from Gnumed.wxpython.gmMeasurementWidgets import cLabRelatedDocumentsPnl 
15  # end wxGlade 
16   
17   
18 -class wxgMeasurementsByDayPnl(wx.Panel):
19 - def __init__(self, *args, **kwds):
20 # begin wxGlade: wxgMeasurementsByDayPnl.__init__ 21 kwds["style"] = kwds.get("style", 0) | wx.TAB_TRAVERSAL 22 wx.Panel.__init__(self, *args, **kwds) 23 self._LCTRL_days = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT) 24 self._LCTRL_results = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT) 25 self._TCTRL_measurements = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_AUTO_URL | wx.TE_MULTILINE | wx.TE_READONLY) 26 self._PNL_related_documents = cLabRelatedDocumentsPnl(self, wx.ID_ANY, style=wx.BORDER_NONE) 27 28 self.__set_properties() 29 self.__do_layout() 30 31 self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_day_selected, self._LCTRL_days) 32 self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_result_selected, self._LCTRL_results)
33 # end wxGlade 34
35 - def __set_properties(self):
36 # begin wxGlade: wxgMeasurementsByDayPnl.__set_properties 37 pass
38 # end wxGlade 39
40 - def __do_layout(self):
41 # begin wxGlade: wxgMeasurementsByDayPnl.__do_layout 42 __szr_main = wx.BoxSizer(wx.HORIZONTAL) 43 __szr_details = wx.BoxSizer(wx.VERTICAL) 44 __szr_main.Add(self._LCTRL_days, 2, wx.EXPAND | wx.RIGHT, 5) 45 __szr_main.Add(self._LCTRL_results, 8, wx.EXPAND | wx.RIGHT, 5) 46 __szr_details.Add(self._TCTRL_measurements, 1, wx.EXPAND, 0) 47 __szr_details.Add(self._PNL_related_documents, 0, wx.EXPAND | wx.TOP, 3) 48 __szr_main.Add(__szr_details, 10, wx.EXPAND, 0) 49 self.SetSizer(__szr_main) 50 __szr_main.Fit(self) 51 self.Layout()
52 # end wxGlade 53
54 - def _on_day_selected(self, event): # wxGlade: wxgMeasurementsByDayPnl.<event_handler>
55 print("Event handler '_on_day_selected' not implemented!") 56 event.Skip()
57
58 - def _on_result_selected(self, event): # wxGlade: wxgMeasurementsByDayPnl.<event_handler>
59 print("Event handler '_on_result_selected' not implemented!") 60 event.Skip() 61 62 # end of class wxgMeasurementsByDayPnl 63