#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
#
# generated by wxGlade 1.0.0a1 on Sat Aug 29 20:58:47 2020
#

import wx

# begin wxGlade: dependencies
# end wxGlade

# begin wxGlade: extracode
# end wxGlade


class CalculatorFrame(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: CalculatorFrame.__init__
        kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.SetSize((400, 300))
        self.SetTitle("Calculator")

        # Menu Bar
        self.frame_menubar = wx.MenuBar()
        wxglade_tmp_menu = wx.Menu()
        self.frame_menubar.i_reset = wxglade_tmp_menu.Append(wx.ID_ANY, "Reset", "Reset results")
        self.Bind(wx.EVT_MENU, self.on_menu_File_Reset, self.frame_menubar.i_reset)
        item = wxglade_tmp_menu.Append(wx.ID_ANY, "Exit", "Exit application")
        self.Bind(wx.EVT_MENU, self.on_menu_File_Exit, item)
        self.frame_menubar.Append(wxglade_tmp_menu, "File")
        self.SetMenuBar(self.frame_menubar)
        # Menu Bar end

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

        sizer_1 = wx.BoxSizer(wx.VERTICAL)

        sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_1.Add(sizer_2, 0, wx.ALL | wx.EXPAND, 4)

        label_1 = wx.StaticText(self.panel_1, wx.ID_ANY, "Value 1:")
        sizer_2.Add(label_1, 0, wx.ALIGN_CENTER_VERTICAL, 0)

        self.text_value1 = wx.TextCtrl(self.panel_1, wx.ID_ANY, "")
        sizer_2.Add(self.text_value1, 1, 0, 0)

        sizer_3 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_1.Add(sizer_3, 0, wx.ALL | wx.EXPAND, 4)

        label_4 = wx.StaticText(self.panel_1, wx.ID_ANY, "Operator:")
        sizer_3.Add(label_4, 0, wx.ALIGN_CENTER_VERTICAL, 0)

        self.radiobox_operator = wx.RadioBox(self.panel_1, wx.ID_ANY, "", choices=["+", "-", "*", "/"], majorDimension=1, style=wx.RA_SPECIFY_ROWS)
        self.radiobox_operator.SetSelection(0)
        sizer_3.Add(self.radiobox_operator, 0, 0, 0)

        sizer_4 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_1.Add(sizer_4, 0, wx.ALL | wx.EXPAND, 4)

        label_2 = wx.StaticText(self.panel_1, wx.ID_ANY, "Value 2:")
        sizer_4.Add(label_2, 0, wx.ALIGN_CENTER_VERTICAL, 0)

        self.text_value2 = wx.TextCtrl(self.panel_1, wx.ID_ANY, "")
        sizer_4.Add(self.text_value2, 1, 0, 0)

        static_line_1 = wx.StaticLine(self.panel_1, wx.ID_ANY)
        sizer_1.Add(static_line_1, 0, wx.BOTTOM | wx.EXPAND | wx.TOP, 5)

        sizer_5 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_1.Add(sizer_5, 1, wx.ALL | wx.EXPAND, 4)

        label_3 = wx.StaticText(self.panel_1, wx.ID_ANY, "Result:")
        sizer_5.Add(label_3, 0, 0, 0)

        self.text_result = wx.TextCtrl(self.panel_1, wx.ID_ANY, "", style=wx.TE_MULTILINE | wx.TE_READONLY)
        self.text_result.SetBackgroundColour(wx.Colour(212, 208, 200))
        sizer_5.Add(self.text_result, 1, wx.EXPAND, 0)

        sizer_6 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_1.Add(sizer_6, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)

        self.button_execute = wx.Button(self.panel_1, wx.ID_ANY, "Execute")
        self.button_execute.SetDefault()
        sizer_6.Add(self.button_execute, 0, wx.ALL, 5)

        self.button_reset = wx.Button(self.panel_1, wx.ID_ANY, "Reset")
        sizer_6.Add(self.button_reset, 0, wx.ALL, 5)

        self.panel_1.SetSizer(sizer_1)

        self.Layout()

        self.Bind(wx.EVT_BUTTON, self.on_execute_button_clicked, self.button_execute)
        self.Bind(wx.EVT_BUTTON, self.on_reset_button_clicked, self.button_reset)
        # end wxGlade

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

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

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

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

# end of class CalculatorFrame

class MyApp(wx.App):
    def OnInit(self):
        self.frame = CalculatorFrame(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()
