rendered paste bodyimport wx
ID_ABOUT=101
ID_EXIT=110
class VentanaPrincipal(wx.Frame):
def __init__(self,parent,id,title):
wx.Frame.__init__(self,parent,wx.ID_ANY, title, size =(350, 350))
self.control = wx.TextCtrl(self, 1, style=wx.TE_MULTILINE)
self.CreateStatusBar()
filemenu= wx.Menu()
filemenu.Append(wx.ID_ABOUT, "&Acerca", "Este es el mejor editor de texto cuz i say so")
filemenu.AppendSeparator()
filemenu.Append(wx.ID_EXIT, "&Salir", "Salir del programa...")
menuBar = wx.MenuBar()
menuBar.Append(filemenu, "Archivo&")
self.SetMenuBar(menuBar)
self.Show(True)
app = wx.PySimpleApp()
frame = VentanaPrincipal(None, -1, "Sample editor")
app.MainLoop()