OlliTut/trial2/wxglade_out.py~
2021-08-10 23:51:50 +02:00

118 lines
3.8 KiB
Python

#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
#
# generated by wxGlade 1.0.2 on Sun Jul 4 21:20:06 2021
#
import wx
# begin wxGlade: dependencies
# end wxGlade
# begin wxGlade: extracode
# end wxGlade
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((474, 290))
self.SetTitle("frame")
# Menu Bar
self.frame_menubar = wx.MenuBar()
self.SetMenuBar(self.frame_menubar)
# Menu Bar end
self.panel_1 = wx.Panel(self, wx.ID_ANY)
grid_sizer_1 = wx.GridBagSizer(0, 0)
sizer_1 = wx.BoxSizer(wx.VERTICAL)
grid_sizer_1.Add(sizer_1, (0, 0), (2, 1), wx.EXPAND, 0)
label_1 = wx.StaticText(self.panel_1, wx.ID_ANY, "Text1")
sizer_1.Add(label_1, 0, 0, 0)
label_2 = wx.StaticText(self.panel_1, wx.ID_ANY, u"Für")
sizer_1.Add(label_2, 0, 0, 0)
label_3 = wx.StaticText(self.panel_1, wx.ID_ANY, "Statis")
sizer_1.Add(label_3, 0, 0, 0)
self.notebook_1 = wx.Notebook(self.panel_1, wx.ID_ANY)
grid_sizer_1.Add(self.notebook_1, (0, 1), (1, 1), wx.EXPAND, 0)
self.notebook_1_pane_1 = wx.Panel(self.notebook_1, wx.ID_ANY)
self.notebook_1.AddPage(self.notebook_1_pane_1, "notebook_1_pane_1")
self.notebook_1_pane_2 = wx.Panel(self.notebook_1, wx.ID_ANY)
self.notebook_1.AddPage(self.notebook_1_pane_2, "notebook_1_pane_2")
self.notebook_1_pane_3 = wx.Panel(self.notebook_1, wx.ID_ANY)
self.notebook_1.AddPage(self.notebook_1_pane_3, "notebook_1_pane_3")
self.notebook_1_pane_4 = wx.Panel(self.notebook_1, wx.ID_ANY)
self.notebook_1.AddPage(self.notebook_1_pane_4, "notebook_1_pane_4")
grid_sizer_3 = wx.GridBagSizer(10, 0)
grid_sizer_1.Add(grid_sizer_3, (0, 2), (2, 1), wx.EXPAND, 0)
grid_sizer_4 = wx.GridBagSizer(0, 0)
grid_sizer_3.Add(grid_sizer_4, (0, 0), (1, 1), wx.EXPAND, 0)
self.button_1 = wx.Button(self.panel_1, wx.ID_ANY, "button_1")
grid_sizer_4.Add(self.button_1, (0, 0), (1, 1), 0, 0)
self.button_2 = wx.Button(self.panel_1, wx.ID_ANY, "button_2")
grid_sizer_4.Add(self.button_2, (1, 0), (1, 1), 0, 0)
self.button_3 = wx.Button(self.panel_1, wx.ID_ANY, "button_3")
grid_sizer_4.Add(self.button_3, (2, 0), (1, 1), 0, 0)
grid_sizer_5 = wx.GridBagSizer(0, 0)
grid_sizer_3.Add(grid_sizer_5, (1, 0), (1, 1), wx.EXPAND, 0)
self.button_7 = wx.Button(self.panel_1, wx.ID_ANY, "button_7")
grid_sizer_5.Add(self.button_7, (0, 0), (1, 1), 0, 0)
self.button_8 = wx.Button(self.panel_1, wx.ID_ANY, "button_8")
grid_sizer_5.Add(self.button_8, (1, 0), (1, 1), 0, 0)
self.button_9 = wx.Button(self.panel_1, wx.ID_ANY, "button_9")
grid_sizer_5.Add(self.button_9, (2, 0), (1, 1), 0, 0)
grid_sizer_2 = wx.GridBagSizer(0, 0)
grid_sizer_1.Add(grid_sizer_2, (1, 1), (1, 1), wx.EXPAND, 0)
self.button_4 = wx.Button(self.panel_1, wx.ID_ANY, "button_4")
grid_sizer_2.Add(self.button_4, (0, 0), (1, 1), 0, 0)
self.button_5 = wx.Button(self.panel_1, wx.ID_ANY, "button_5")
grid_sizer_2.Add(self.button_5, (0, 1), (1, 1), 0, 0)
self.button_6 = wx.Button(self.panel_1, wx.ID_ANY, "button_6")
grid_sizer_2.Add(self.button_6, (0, 2), (1, 1), 0, 0)
self.panel_1.SetSizer(grid_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()