alega erro de sintaxe!
e fica em vermelho o "self".Bind?(apenas o self!)
alguém poderia me explicar o do porque ?
import wx
class bucky(wx.Frame) :
def __init__(self,parent,id):
wx.Frame.__init__(self , parent, id ,'titulo da Janela' , size=(300,200) )
painel=wx.Panel(self)
button=wx.Button(painel,label="Sair",pos=(130,10) , size=(60,60)
self.Bind(wx.EVT_BUTTON, self.closebutton , button)
self.Bind(wx.EVT_CLOSE , self.closewindow)
def closebutton(self,event):
self.Close(True)
def closewindow(self,event):
self.Destroy()
if __name__=='__main__' :
app=wx.PySimpleApp()
janela= bucky(parent=None, id=-1)
janela.Show()
app.MainLoop()