1
2
3
4
5 import wx
6
7
8
9
10
13
14 from Gnumed.wxpython.gmEMRTimelineWidgets import cEMRTimelinePnl
15
16
17 kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
18 wx.ScrolledWindow.__init__(self, *args, **kwds)
19 self._PNL_timeline = cEMRTimelinePnl(self, -1, style=wx.NO_BORDER | wx.TAB_TRAVERSAL)
20 self._BTN_refresh = wx.Button(self, wx.ID_REFRESH, "")
21
22 self.__set_properties()
23 self.__do_layout()
24
25 self.Bind(wx.EVT_BUTTON, self._on_refresh_button_pressed, self._BTN_refresh)
26
27
29
30 self.SetScrollRate(10, 10)
31 self._BTN_refresh.SetToolTipString(_("Refresh the timeline display."))
32
33
35
36 sizer_1 = wx.BoxSizer(wx.VERTICAL)
37 sizer_1.Add(self._PNL_timeline, 1, wx.BOTTOM | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 3)
38 sizer_1.Add(self._BTN_refresh, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_CENTER_VERTICAL, 0)
39 self.SetSizer(sizer_1)
40 sizer_1.Fit(self)
41
42
44 print "Event handler `_on_refresh_button_pressed' not implemented!"
45 event.Skip()
46
47
48