Ver Mensaje Individual
  #6 (permalink)  
Antiguo 30/09/2008, 19:07
iozk
 
Fecha de Ingreso: mayo-2008
Mensajes: 499
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: crear algo con phyton ayuda!

Cita:
import wx
ID_ABOUT =101
ID_EXIT =110

class MainWindow(wx.Frame):
def _init_(self,parent,id,title):
wx.Frame._init_(self,parent,wx.ID_ANY,title,size = (400,200),
style = wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE )
self.control = wx.TextCtrl(self,1,style = wx.TE_MULTILINE)
#--- START NEW CODE: -----------------------------------------------------
self.CreateStatusBar()
#-------- Setting up the menu.
filemenu = wx.menu(1)
filemenu.Append(ID_ABOUT, "&About","Information obout this program")
filemenu.AppendSeparator()
filemenu.Append(ID_EXIT, "E&xit" "terminate the program")
#-------- Creating the menu.
menubar = wx.MenuBar()
menubar.Append(filemenu,"&File")
self.SetMenuBar(menubar)

#--- END NEW CODE --------------------------------------------------------
self.show(True)

app = wx.PySimpleApp()
frame = MainWindow(None,-1,"universal grapics studio")
frame.Show(1)
app.MainLoop()