[Python-es] Problema en wxPython

jose villalba josevillalba_3 en hotmail.com
Mie Sep 22 17:56:08 CEST 2010


Hola estoy empezando a estudiar wxPython y tengo un error que no se como corregirlo busque en Internet y no encontré nada.
Códigoimport wxclass MyFrame(wx.Frame):	def __init(self,parente,title):		wx.Frame.__init__(self, parent, title=title, size=(200,100))		self.control = wx.TextCtrl(self, style=wx.TE_MULTILINE)		self.Show(True)app=wx.App(False)frame = MyFrame(None,2, 'Small editor')app.MainLoop()
Error:Traceback (most recent call last):  File "D:\Documentos de Alvaro\Escritorio\editor.py", line 8, in <module>    frame = MyFrame(None, 'Small editor')  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_windows.py", line 505, in __init__    _windows_.Frame_swiginit(self,_windows_.new_Frame(*args, **kwargs))TypeError: in method 'new_Frame', expected argument 2 of type 'int'
Desde ya mucha gracia-Jose 		 	   		  
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20100922/3a38a9fb/attachment.html>


Más información sobre la lista de distribución Python-es