no me funciona esta funcion dice que no esta atribuido
Código PHP:
import wx
ID_ABOUT = 1
ID_OPEN = 2
ID_SAVE = 3
ID_QUIT = 4
ID_COPY = 5
ID_TOOLS = 6
ID_HELP = 7
class MainWindow(wx.Frame):
def __init__(self,parent,id,title):
wx.Frame.__init__(self, parent, id,title,size = (400,400),style = wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE)
self.control = wx.TextCtrl(self,1,style = wx.TE_MULTILINE)
#---START NUEW CODE:--------------------------------------
self.CreateStatusBar()
#-------- Setting up the menu.
filemenu = wx.Menu()
filemenu.Append(ID_ABOUT, "&About","Informacion sobre la aplicacion")
filemenu.Append(ID_OPEN, "&Open", "Abrir archivo")
filemenu.Append(ID_SAVE, "&Save", "Grabar archivo")
filemenu.AppendSeparator()
quit = wx.MenuItem(filemenu, ID_QUIT, '&Quit\tCtrl+Q')
quit.SetBitmap(wx.Bitmap('wamp/exit.png'))
filemenu.AppendItem(quit)
editmenu = wx.Menu()
editmenu.Append(ID_COPY,"&Copy", "copiar texto")
toolmenu = wx.Menu()
toolmenu.Append(ID_TOOLS, "&Tool", "Herramientas del programa")
helpmenu = wx.Menu()
helpmenu.Append(ID_HELP, "&Help", "instruccion de aplicacion")
#-------- Creating the menu.
menubar = wx.MenuBar()
menubar.Append(filemenu, "&File")
menubar.Append(editmenu, "&Edit")
menubar.Append(toolmenu, "&Tool")
menubar.Append(helpmenu, "&Help")
self.SetMenuBar(menubar)
#--- END NEW CODE --------------------------------------------------------
toolbar = self.CreateToolBar(wx.TB_HORIZONTAL)
toolbar.AddLabelTool(wx.ID_ANY, '', wx.Bitmap('../wamp/exit.png'))
toolbar.AddLabelTool(wx.ID_ANY, '', wx.Bitmap('../wamp/exit.png'))
toolbar.AddLabelTool(wx.ID_ANY, '', wx.Bitmap('../wamp/exit.png'))
toolbar.AddLabelTool(wx.ID_ANY, '', wx.Bitmap('../wamp/exit.png'))
toolbar.AddLabelTool(wx.ID_ANY, '', wx.Bitmap('../wamp/exit.png'))
toolbar.AddLabelTool(wx.ID_ANY, '', wx.Bitmap('../wamp/exit.png'))
toolbar.AddLabelTool(wx.ID_ANY, '', wx.Bitmap('../wamp/exit.png'))
toolbar.AddLabelTool(wx.ID_ANY, '', wx.Bitmap('../wamp/exit.png'))
toolbar.Realize()
[B]panel = wx.Panel(self, 1)
combo = wx.ComboBox(panel, 1, 'EnterCombo', (110, 20))[/B]
[B]combo.Bind(wx.EVT_ENTER_WINDOW, self.EnterCombo, id=1)[/B]
self.Centre()
self.Show(True)
def OnQuit(self, event):
self.Close()
def EnterCombo(self, event):
self.sb.SetStatusText('ComboBox widget')
event.Skip()
app = wx.PySimpleApp()
frame = MainWindow(None,-1,"iozk studio")
frame.Show(1)
app.MainLoop()