Example #1
0
 def __init__(self, *args, **kwds):
     kwds["style"] = wx.TAB_TRAVERSAL
     wx.Panel.__init__(self, *args, **kwds)
     
     self.notebook_tabs = wx.Panel(self, -1)
     self.tab_f = wx.Button(self.notebook_tabs, -1, "Father")
     self.tab_m = wx.Button(self.notebook_tabs, -1, "Mother")
     self.tab_g = wx.Button(self.notebook_tabs, -1, "Guardian")
     
     self.notebook = wx.Panel(self, -1)
     self.notebook_pane_1 = panel_guardian_data(self.notebook, -1)
     self.notebook_pane_2 = panel_guardian_data(self.notebook, -1)
     self.notebook_pane_3 = panel_guardian_data(self.notebook, -1)
     
     self.tabs            = [self.tab_f, self.tab_m, self.tab_g]
     self.notebook_panes  = [self.notebook_pane_1, self.notebook_pane_2, self.notebook_pane_3]
     
     #self.button_edit = wx.Button(self, -1, 'Edit')
     
     self.Bind(wx.EVT_BUTTON, self.OnTab, self.tab_f)
     self.Bind(wx.EVT_BUTTON, self.OnTab, self.tab_m)
     self.Bind(wx.EVT_BUTTON, self.OnTab, self.tab_g)
     
     self.__set_properties()
     self.__do_layout()
     self.__do_main()
Example #2
0
   def __init__(self, *args, **kwds):
       kwds["style"] = wx.TAB_TRAVERSAL
       wx.Panel.__init__(self, *args, **kwds)
       
       self.panel_l = wx.Panel(self, -1)
       self.panel_r = wx.Panel(self, -1)
       
       self.panel_top    = wx.Panel(self.panel_l, -1)
       
       self.button_back  = wx.Button(    self.panel_top, -1, "< Back")
       self.pcs1         = wx.StaticText(self.panel_top, -1, "")
       self.button_save  = wx.Button(    self.panel_top, -1, "Save")
       self.button_edit  = wx.Button(    self.panel_top, -1, "Edit")
       
       self.panel_contact  = panel_guardian_data(self.panel_l, -1)
 
       self.Bind(wx.EVT_BUTTON, self.OnBack,     self.button_back)
       self.Bind(wx.EVT_BUTTON, self.OnEdit,     self.button_edit)
       self.Bind(wx.EVT_BUTTON, self.OnSave,     self.button_save)
 
       self.__set_properties()
       self.__do_layout()
       self.__do_main()