#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# generated by wxGlade 0.9.9pre on Wed Apr 29 22:08:08 2020
#

import wx

# begin wxGlade: dependencies
# end wxGlade

# begin wxGlade: extracode
# end wxGlade


class MySimplebook(wx.Simplebook):
    def __init__(self, *args, **kwds):
        # begin wxGlade: MySimplebook.__init__
        kwds["style"] = kwds.get("style", 0) | wx.NB_TOP
        wx.Simplebook.__init__(self, *args, **kwds)
        
        self.notebook_1_pane_1 = wx.Panel(self, wx.ID_ANY)
        self.AddPage(self.notebook_1_pane_1, "notebook_1_pane_1")
        
        sizer_2 = wx.BoxSizer(wx.VERTICAL)
        
        label_1 = wx.StaticText(self.notebook_1_pane_1, wx.ID_ANY, "Page 1 of Simplebook")
        label_1.SetFont(wx.Font(20, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, 0, ""))
        sizer_2.Add(label_1, 0, wx.ALIGN_CENTER | wx.ALL, 20)
        
        self.button_1 = wx.Button(self.notebook_1_pane_1, wx.ID_ANY, "Show page 2")
        self.button_1.SetFont(wx.Font(16, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, 0, ""))
        sizer_2.Add(self.button_1, 1, wx.ALL | wx.EXPAND, 20)
        
        self.notebook_1_notebook_1_pane_2 = wx.Panel(self, wx.ID_ANY)
        self.AddPage(self.notebook_1_notebook_1_pane_2, "notebook_1_pane_2")
        
        sizer_3 = wx.BoxSizer(wx.VERTICAL)
        
        label_2 = wx.StaticText(self.notebook_1_notebook_1_pane_2, wx.ID_ANY, "Page 2 of Simplebook")
        label_2.SetFont(wx.Font(20, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, 0, ""))
        sizer_3.Add(label_2, 0, wx.ALIGN_CENTER | wx.ALL, 20)
        
        self.button_2 = wx.Button(self.notebook_1_notebook_1_pane_2, wx.ID_ANY, "Show page 1")
        self.button_2.SetFont(wx.Font(16, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, 0, ""))
        sizer_3.Add(self.button_2, 1, wx.ALL | wx.EXPAND, 20)
        
        self.notebook_1_notebook_1_pane_2.SetSizer(sizer_3)
        
        self.notebook_1_pane_1.SetSizer(sizer_2)
        

        self.Bind(wx.EVT_BUTTON, lambda event: self.ChangeSelection(1), self.button_1)
        self.Bind(wx.EVT_BUTTON, lambda event: self.ChangeSelection(0), self.button_2)
        # end wxGlade

# end of class MySimplebook

class MyFrame(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: MyFrame.__init__
        kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.SetSize((400, 300))
        self.SetTitle("frame")
        
        sizer_1 = wx.BoxSizer(wx.VERTICAL)
        
        self.simplebook_1 = MySimplebook(self, wx.ID_ANY)
        sizer_1.Add(self.simplebook_1, 1, wx.EXPAND, 0)
        
        self.SetSizer(sizer_1)
        
        self.Layout()
        # end wxGlade

# end of class MyFrame

class MyApp(wx.App):
    def OnInit(self):
        self.frame = MyFrame(None, wx.ID_ANY, "")
        self.SetTopWindow(self.frame)
        self.frame.Show()
        return True

# end of class MyApp

if __name__ == "__main__":
    app = MyApp(0)
    app.MainLoop()
