#!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.4 on Thu Apr 10 10:20:08 2014

import wx

# begin wxGlade: extracode
# end wxGlade


class Cuadro(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: Cuadro.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.Sumando1 = wx.TextCtrl(self, -1, "")
        self.label_1 = wx.StaticText(self, -1, "+", style=wx.ALIGN_CENTRE)
        self.Sumando2 = wx.TextCtrl(self, -1, "")
        self.label_2 = wx.StaticText(self, -1, "=")
        self.text_ctrl_3 = wx.TextCtrl(self, -1, "")
        self.Sumar = wx.Button(self, -1, "Sumar")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.onclick, self.Sumar)
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: Cuadro.__set_properties
        self.SetTitle("Programa de sumar")
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: Cuadro.__do_layout
        sizer_1 = wx.BoxSizer(wx.VERTICAL)
        sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_2.Add(self.Sumando1, 0, 0, 0)
        sizer_2.Add(self.label_1, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_CENTER_VERTICAL, 0)
        sizer_2.Add(self.Sumando2, 0, 0, 0)
        sizer_2.Add(self.label_2, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_CENTER_VERTICAL, 0)
        sizer_2.Add(self.text_ctrl_3, 0, 0, 0)
        sizer_2.Add(self.Sumar, 0, 0, 0)
        sizer_1.Add(sizer_2, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_1)
        sizer_1.Fit(self)
        self.Layout()
        # end wxGlade

    def onclick(self, event):  # wxGlade: Cuadro.<event_handler>
    
        a = float(self.Sumando1.GetValue())
        b = float(self.Sumando2.GetValue())
        c = a + b
        c = str(c)
        self.text_ctrl_3.SetValue(c)
        event.Skip()

# end of class Cuadro
if __name__ == "__main__":
    app = wx.PySimpleApp(0)
    wx.InitAllImageHandlers()
    frame_1 = Cuadro(None, -1, "")
    app.SetTopWindow(frame_1)
    frame_1.Show()
    app.MainLoop()

25ee1d046ab8f3db3c7a601092a41bbd52baf2ed
<mask token>


class Cuadro(wx.Frame):

    def __init__(self, *args, **kwds):
        kwds['style'] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.Sumando1 = wx.TextCtrl(self, -1, '')
        self.label_1 = wx.StaticText(self, -1, '+', style=wx.ALIGN_CENTRE)
        self.Sumando2 = wx.TextCtrl(self, -1, '')
        self.label_2 = wx.StaticText(self, -1, '=')
        self.text_ctrl_3 = wx.TextCtrl(self, -1, '')
        self.Sumar = wx.Button(self, -1, 'Sumar')
        self.__set_properties()
        self.__do_layout()
        self.Bind(wx.EVT_BUTTON, self.onclick, self.Sumar)

    def __set_properties(self):
        self.SetTitle('Programa de sumar')
    <mask token>

    def onclick(self, event):
        a = float(self.Sumando1.GetValue())
        b = float(self.Sumando2.GetValue())
        c = a + b
        c = str(c)
        self.text_ctrl_3.SetValue(c)
        event.Skip()


<mask token>

<mask token>


class Cuadro(wx.Frame):

    def __init__(self, *args, **kwds):
        kwds['style'] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.Sumando1 = wx.TextCtrl(self, -1, '')
        self.label_1 = wx.StaticText(self, -1, '+', style=wx.ALIGN_CENTRE)
        self.Sumando2 = wx.TextCtrl(self, -1, '')
        self.label_2 = wx.StaticText(self, -1, '=')
        self.text_ctrl_3 = wx.TextCtrl(self, -1, '')
        self.Sumar = wx.Button(self, -1, 'Sumar')
        self.__set_properties()
        self.__do_layout()
        self.Bind(wx.EVT_BUTTON, self.onclick, self.Sumar)

    def __set_properties(self):
        self.SetTitle('Programa de sumar')

    def __do_layout(self):
        sizer_1 = wx.BoxSizer(wx.VERTICAL)
        sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_2.Add(self.Sumando1, 0, 0, 0)
        sizer_2.Add(self.label_1, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.
            ALIGN_CENTER_VERTICAL, 0)
        sizer_2.Add(self.Sumando2, 0, 0, 0)
        sizer_2.Add(self.label_2, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.
            ALIGN_CENTER_VERTICAL, 0)
        sizer_2.Add(self.text_ctrl_3, 0, 0, 0)
        sizer_2.Add(self.Sumar, 0, 0, 0)
        sizer_1.Add(sizer_2, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_1)
        sizer_1.Fit(self)
        self.Layout()

    def onclick(self, event):
        a = float(self.Sumando1.GetValue())
        b = float(self.Sumando2.GetValue())
        c = a + b
        c = str(c)
        self.text_ctrl_3.SetValue(c)
        event.Skip()


<mask token>

<mask token>


class Cuadro(wx.Frame):

    def __init__(self, *args, **kwds):
        kwds['style'] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.Sumando1 = wx.TextCtrl(self, -1, '')
        self.label_1 = wx.StaticText(self, -1, '+', style=wx.ALIGN_CENTRE)
        self.Sumando2 = wx.TextCtrl(self, -1, '')
        self.label_2 = wx.StaticText(self, -1, '=')
        self.text_ctrl_3 = wx.TextCtrl(self, -1, '')
        self.Sumar = wx.Button(self, -1, 'Sumar')
        self.__set_properties()
        self.__do_layout()
        self.Bind(wx.EVT_BUTTON, self.onclick, self.Sumar)

    def __set_properties(self):
        self.SetTitle('Programa de sumar')

    def __do_layout(self):
        sizer_1 = wx.BoxSizer(wx.VERTICAL)
        sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_2.Add(self.Sumando1, 0, 0, 0)
        sizer_2.Add(self.label_1, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.
            ALIGN_CENTER_VERTICAL, 0)
        sizer_2.Add(self.Sumando2, 0, 0, 0)
        sizer_2.Add(self.label_2, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.
            ALIGN_CENTER_VERTICAL, 0)
        sizer_2.Add(self.text_ctrl_3, 0, 0, 0)
        sizer_2.Add(self.Sumar, 0, 0, 0)
        sizer_1.Add(sizer_2, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_1)
        sizer_1.Fit(self)
        self.Layout()

    def onclick(self, event):
        a = float(self.Sumando1.GetValue())
        b = float(self.Sumando2.GetValue())
        c = a + b
        c = str(c)
        self.text_ctrl_3.SetValue(c)
        event.Skip()


if __name__ == '__main__':
    app = wx.PySimpleApp(0)
    wx.InitAllImageHandlers()
    frame_1 = Cuadro(None, -1, '')
    app.SetTopWindow(frame_1)
    frame_1.Show()
    app.MainLoop()

import wx


class Cuadro(wx.Frame):

    def __init__(self, *args, **kwds):
        kwds['style'] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.Sumando1 = wx.TextCtrl(self, -1, '')
        self.label_1 = wx.StaticText(self, -1, '+', style=wx.ALIGN_CENTRE)
        self.Sumando2 = wx.TextCtrl(self, -1, '')
        self.label_2 = wx.StaticText(self, -1, '=')
        self.text_ctrl_3 = wx.TextCtrl(self, -1, '')
        self.Sumar = wx.Button(self, -1, 'Sumar')
        self.__set_properties()
        self.__do_layout()
        self.Bind(wx.EVT_BUTTON, self.onclick, self.Sumar)

    def __set_properties(self):
        self.SetTitle('Programa de sumar')

    def __do_layout(self):
        sizer_1 = wx.BoxSizer(wx.VERTICAL)
        sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_2.Add(self.Sumando1, 0, 0, 0)
        sizer_2.Add(self.label_1, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.
            ALIGN_CENTER_VERTICAL, 0)
        sizer_2.Add(self.Sumando2, 0, 0, 0)
        sizer_2.Add(self.label_2, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.
            ALIGN_CENTER_VERTICAL, 0)
        sizer_2.Add(self.text_ctrl_3, 0, 0, 0)
        sizer_2.Add(self.Sumar, 0, 0, 0)
        sizer_1.Add(sizer_2, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_1)
        sizer_1.Fit(self)
        self.Layout()

    def onclick(self, event):
        a = float(self.Sumando1.GetValue())
        b = float(self.Sumando2.GetValue())
        c = a + b
        c = str(c)
        self.text_ctrl_3.SetValue(c)
        event.Skip()


if __name__ == '__main__':
    app = wx.PySimpleApp(0)
    wx.InitAllImageHandlers()
    frame_1 = Cuadro(None, -1, '')
    app.SetTopWindow(frame_1)
    frame_1.Show()
    app.MainLoop()

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.4 on Thu Apr 10 10:20:08 2014

import wx

# begin wxGlade: extracode
# end wxGlade


class Cuadro(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: Cuadro.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.Sumando1 = wx.TextCtrl(self, -1, "")
        self.label_1 = wx.StaticText(self, -1, "+", style=wx.ALIGN_CENTRE)
        self.Sumando2 = wx.TextCtrl(self, -1, "")
        self.label_2 = wx.StaticText(self, -1, "=")
        self.text_ctrl_3 = wx.TextCtrl(self, -1, "")
        self.Sumar = wx.Button(self, -1, "Sumar")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.onclick, self.Sumar)
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: Cuadro.__set_properties
        self.SetTitle("Programa de sumar")
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: Cuadro.__do_layout
        sizer_1 = wx.BoxSizer(wx.VERTICAL)
        sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_2.Add(self.Sumando1, 0, 0, 0)
        sizer_2.Add(self.label_1, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_CENTER_VERTICAL, 0)
        sizer_2.Add(self.Sumando2, 0, 0, 0)
        sizer_2.Add(self.label_2, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_CENTER_VERTICAL, 0)
        sizer_2.Add(self.text_ctrl_3, 0, 0, 0)
        sizer_2.Add(self.Sumar, 0, 0, 0)
        sizer_1.Add(sizer_2, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_1)
        sizer_1.Fit(self)
        self.Layout()
        # end wxGlade

    def onclick(self, event):  # wxGlade: Cuadro.<event_handler>
    
        a = float(self.Sumando1.GetValue())
        b = float(self.Sumando2.GetValue())
        c = a + b
        c = str(c)
        self.text_ctrl_3.SetValue(c)
        event.Skip()

# end of class Cuadro
if __name__ == "__main__":
    app = wx.PySimpleApp(0)
    wx.InitAllImageHandlers()
    frame_1 = Cuadro(None, -1, "")
    app.SetTopWindow(frame_1)
    frame_1.Show()
    app.MainLoop()
