#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
#
# generated by wxGlade 1.1.0pre on Mon Feb  7 00:06:21 2022
#

import wx

# begin wxGlade: dependencies
import wx.grid
# 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((400, 300))
        self.SetTitle("frame")

        self.panel_1 = wx.Panel(self, wx.ID_ANY)

        sizer_1 = wx.BoxSizer(wx.VERTICAL)

        self.button_1 = wx.Button(self.panel_1, wx.ID_ANY, "button_1")
        sizer_1.Add(self.button_1, 0, 0, 0)

        self.grid_1 = wx.grid.Grid(self.panel_1, wx.ID_ANY)
        self.grid_1.CreateGrid(10, 4)
        self.grid_1.SetSelectionMode(wx.grid.Grid.SelectRows)
        sizer_1.Add(self.grid_1, 1, wx.EXPAND, 0)

        self.panel_1.SetSizer(sizer_1)

        self.Layout()

        self.panel_1.Bind(wx.EVT_LEFT_DOWN, self.on_left_down_panel)
        self.button_1.Bind(wx.EVT_BUTTON, self.on_button)
        self.button_1.Bind(wx.EVT_LEFT_DOWN, self.on_left_down)
        self.button_1.Bind(wx.EVT_MOUSE_EVENTS, self.on_mouse_events)
        self.grid_1.Bind(wx.grid.EVT_GRID_CMD_CELL_CHANGED, self.on_grid_cmd_cell_changed)
        self.grid_1.Bind(wx.EVT_TEXT_ENTER, self.on_grid_text_enter)
        self.Bind(wx.EVT_LEFT_DOWN, self.on_left_down_frame)
        # end wxGlade

    def on_left_down_panel(self, event):  # wxGlade: MyFrame.<event_handler>
        print("Event handler 'on_left_down_panel' not implemented!")
        event.Skip()

    def on_button(self, event):  # wxGlade: MyFrame.<event_handler>
        print("Event handler 'on_button' not implemented!")
        event.Skip()

    def on_left_down(self, event):  # wxGlade: MyFrame.<event_handler>
        print("Event handler 'on_left_down' not implemented!")
        event.Skip()

    def on_mouse_events(self, event):  # wxGlade: MyFrame.<event_handler>
        print("Event handler 'on_mouse_events' not implemented!")
        event.Skip()

    def on_grid_cmd_cell_changed(self, event):  # wxGlade: MyFrame.<event_handler>
        print("Event handler 'on_grid_cmd_cell_changed' not implemented!")
        event.Skip()

    def on_grid_text_enter(self, event):  # wxGlade: MyFrame.<event_handler>
        print("Event handler 'on_grid_text_enter' not implemented!")
        event.Skip()

    def on_left_down_frame(self, event):  # wxGlade: MyFrame.<event_handler>
        print("Event handler 'on_left_down_frame' 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()
