1
2
3
4
5
6 import wx
7
8
9 import gettext
10
11
12
13
14
15
18
19 kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
20 wx.ScrolledWindow.__init__(self, *args, **kwds)
21 self._lbl_msg = wx.StaticText(self, wx.ID_ANY, _("Activate the respective patient by double-clicking a row."))
22 from Gnumed.wxpython.gmDataMiningWidgets import cPatientListingCtrl
23 self._LCTRL_items = cPatientListingCtrl(self, wx.ID_ANY, style=wx.BORDER_SIMPLE | wx.LC_HRULES | wx.LC_REPORT | wx.LC_VRULES)
24 self._BTN_1 = wx.Button(self, wx.ID_ANY, "")
25 self._BTN_2 = wx.Button(self, wx.ID_ANY, "")
26 self._BTN_3 = wx.Button(self, wx.ID_ANY, "")
27 self._BTN_4 = wx.Button(self, wx.ID_ANY, "")
28 self._BTN_5 = wx.Button(self, wx.ID_ANY, "")
29
30 self.__set_properties()
31 self.__do_layout()
32
33 self.Bind(wx.EVT_BUTTON, self._on_BTN_1_pressed, self._BTN_1)
34 self.Bind(wx.EVT_BUTTON, self._on_BTN_2_pressed, self._BTN_2)
35 self.Bind(wx.EVT_BUTTON, self._on_BTN_3_pressed, self._BTN_3)
36 self.Bind(wx.EVT_BUTTON, self._on_BTN_4_pressed, self._BTN_4)
37 self.Bind(wx.EVT_BUTTON, self._on_BTN_5_pressed, self._BTN_5)
38
39
41
42 self.SetScrollRate(10, 10)
43 self._BTN_1.Enable(False)
44 self._BTN_2.Enable(False)
45 self._BTN_3.Enable(False)
46 self._BTN_4.Enable(False)
47 self._BTN_5.Enable(False)
48
49
51
52 __szr_main = wx.BoxSizer(wx.VERTICAL)
53 __szr_buttons = wx.BoxSizer(wx.HORIZONTAL)
54 __szr_main.Add(self._lbl_msg, 0, wx.ALL | wx.EXPAND, 5)
55 __szr_main.Add(self._LCTRL_items, 1, wx.ALL | wx.EXPAND, 5)
56 __szr_buttons.Add((20, 20), 1, wx.EXPAND, 0)
57 __szr_buttons.Add(self._BTN_1, 0, wx.EXPAND | wx.RIGHT, 5)
58 __szr_buttons.Add(self._BTN_2, 0, wx.EXPAND | wx.RIGHT, 5)
59 __szr_buttons.Add(self._BTN_3, 0, wx.EXPAND | wx.RIGHT, 5)
60 __szr_buttons.Add(self._BTN_4, 0, wx.EXPAND | wx.RIGHT, 5)
61 __szr_buttons.Add(self._BTN_5, 0, wx.EXPAND, 5)
62 __szr_buttons.Add((20, 20), 1, wx.EXPAND, 0)
63 __szr_main.Add(__szr_buttons, 0, wx.ALL | wx.EXPAND, 5)
64 self.SetSizer(__szr_main)
65 __szr_main.Fit(self)
66 self.Layout()
67
68
70 print("Event handler '_on_BTN_1_pressed' not implemented!")
71 event.Skip()
72
74 print("Event handler '_on_BTN_2_pressed' not implemented!")
75 event.Skip()
76
78 print("Event handler '_on_BTN_3_pressed' not implemented!")
79 event.Skip()
80
82 print("Event handler '_on_BTN_4_pressed' not implemented!")
83 event.Skip()
84
86 print("Event handler '_on_BTN_5_pressed' not implemented!")
87 event.Skip()
88
89
90