139 lines
4.6 KiB
Python
139 lines
4.6 KiB
Python
#!/usr/bin/env python3
|
|
# -*- coding: UTF-8 -*-
|
|
#
|
|
# generated by wxGlade 1.0.2 on Sun Jul 4 21:29:50 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((1920, 1080))
|
|
self.SetTitle("frame")
|
|
|
|
# Menu Bar
|
|
self.frame_menubar = wx.MenuBar()
|
|
wxglade_tmp_menu = wx.Menu()
|
|
wxglade_tmp_menu.Append(wx.ID_ANY, "Quit", "")
|
|
self.frame_menubar.Append(wxglade_tmp_menu, "File")
|
|
self.SetMenuBar(self.frame_menubar)
|
|
# Menu Bar end
|
|
|
|
self.frame_statusbar = self.CreateStatusBar(1)
|
|
self.frame_statusbar.SetStatusWidths([-1])
|
|
# statusbar fields
|
|
frame_statusbar_fields = ["frame_statusbar"]
|
|
for i in range(len(frame_statusbar_fields)):
|
|
self.frame_statusbar.SetStatusText(frame_statusbar_fields[i], i)
|
|
|
|
# Tool Bar
|
|
self.frame_toolbar = wx.ToolBar(self, -1)
|
|
self.SetToolBar(self.frame_toolbar)
|
|
self.frame_toolbar.Realize()
|
|
# Tool 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
|
|
|
|
def test(self, event): # wxGlade: MyFrame.<event_handler>
|
|
print("Event handler 'test' not implemented!")
|
|
event.Skip()
|
|
|
|
# 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()
|