1
2
3
4
5 import wx
6
9
10 kwds["style"] = wx.TAB_TRAVERSAL
11 wx.Panel.__init__(self, *args, **kwds)
12 self.sizer_22_staticbox = wx.StaticBox(self, -1, "Available pg Users (not bound to staff)")
13 self.list_ctrl_2 = wx.ListCtrl(self, -1, style=wx.LC_REPORT|wx.SUNKEN_BORDER)
14 self.label_17 = wx.StaticText(self, -1, "user")
15 self.text_ctrl_6 = wx.TextCtrl(self, -1, "")
16 self.label_18 = wx.StaticText(self, -1, "password")
17 self.text_ctrl_9 = wx.TextCtrl(self, -1, "", style=wx.TE_PASSWORD)
18 self.label_19 = wx.StaticText(self, -1, "confirm pass")
19 self.text_ctrl_10 = wx.TextCtrl(self, -1, "", style=wx.TE_PASSWORD)
20 self.label_20 = wx.StaticText(self, -1, "groups")
21 self.checkbox_9 = wx.CheckBox(self, -1, "gm-doctors")
22 self.checkbox_10 = wx.CheckBox(self, -1, "gm-staff_medical")
23 self.checkbox_12 = wx.CheckBox(self, -1, "gm-staff_office")
24 self.checkbox_11 = wx.CheckBox(self, -1, "gm-public")
25 self.button_16 = wx.Button(self, -1, "create/update pg_user")
26 self.button_18 = wx.Button(self, -1, "remove")
27 self.button_19 = wx.Button(self, -1, "select pg_user and use")
28
29 self.__set_properties()
30 self.__do_layout()
31
32 self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.listed_pg_user_activated, self.list_ctrl_2)
33 self.Bind(wx.EVT_BUTTON, self.update_pg_user, self.button_16)
34 self.Bind(wx.EVT_BUTTON, self.remove_pg_user, self.button_18)
35 self.Bind(wx.EVT_BUTTON, self.select_pg_user, self.button_19)
36
37
39
40 self.checkbox_11.Enable(False)
41 self.checkbox_11.SetValue(1)
42
43
45
46 sizer_31 = wx.BoxSizer(wx.HORIZONTAL)
47 sizer_32 = wx.BoxSizer(wx.VERTICAL)
48 sizer_34 = wx.BoxSizer(wx.VERTICAL)
49 grid_sizer_4 = wx.FlexGridSizer(4, 2, 0, 0)
50 sizer_33 = wx.BoxSizer(wx.VERTICAL)
51 sizer_22 = wx.StaticBoxSizer(self.sizer_22_staticbox, wx.HORIZONTAL)
52 sizer_22.Add(self.list_ctrl_2, 1, wx.EXPAND, 0)
53 sizer_31.Add(sizer_22, 3, wx.EXPAND, 0)
54 grid_sizer_4.Add(self.label_17, 0, wx.ADJUST_MINSIZE, 0)
55 grid_sizer_4.Add(self.text_ctrl_6, 0, wx.ADJUST_MINSIZE, 0)
56 grid_sizer_4.Add(self.label_18, 0, wx.ADJUST_MINSIZE, 0)
57 grid_sizer_4.Add(self.text_ctrl_9, 0, wx.ADJUST_MINSIZE, 0)
58 grid_sizer_4.Add(self.label_19, 0, wx.ADJUST_MINSIZE, 0)
59 grid_sizer_4.Add(self.text_ctrl_10, 0, wx.ADJUST_MINSIZE, 0)
60 grid_sizer_4.Add(self.label_20, 0, wx.ADJUST_MINSIZE, 0)
61 sizer_33.Add(self.checkbox_9, 0, wx.ADJUST_MINSIZE, 0)
62 sizer_33.Add(self.checkbox_10, 0, wx.ADJUST_MINSIZE, 0)
63 sizer_33.Add(self.checkbox_12, 0, wx.ADJUST_MINSIZE, 0)
64 sizer_33.Add(self.checkbox_11, 0, wx.ADJUST_MINSIZE, 0)
65 grid_sizer_4.Add(sizer_33, 1, wx.EXPAND, 0)
66 sizer_32.Add(grid_sizer_4, 1, wx.EXPAND, 0)
67 sizer_34.Add(self.button_16, 0, wx.ALL|wx.ADJUST_MINSIZE, 10)
68 sizer_34.Add((20, 20), 0, wx.ADJUST_MINSIZE, 0)
69 sizer_34.Add(self.button_18, 0, wx.ALL|wx.ADJUST_MINSIZE, 10)
70 sizer_34.Add(self.button_19, 0, wx.ALL|wx.ADJUST_MINSIZE, 10)
71 sizer_32.Add(sizer_34, 1, wx.EXPAND, 0)
72 sizer_32.Add((20, 20), 0, wx.ADJUST_MINSIZE, 0)
73 sizer_31.Add(sizer_32, 2, wx.EXPAND, 0)
74 self.SetAutoLayout(True)
75 self.SetSizer(sizer_31)
76 sizer_31.Fit(self)
77 sizer_31.SetSizeHints(self)
78
79
81 print "Event handler `listed_pg_user_activated' not implemented!"
82 event.Skip()
83
85 print "Event handler `update_pg_user' not implemented!"
86 event.Skip()
87
89 print "Event handler `remove_pg_user' not implemented!"
90 event.Skip()
91
93 print "Event handler `select_pg_user' not implemented!"
94 event.Skip()
95
96
97