Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/08/2011, 05:52
markmb
 
Fecha de Ingreso: octubre-2009
Ubicación: En el ordenador
Mensajes: 504
Antigüedad: 14 años, 6 meses
Puntos: 10
Python con wxPython: problemas con Panel

Código Python:
Ver original
  1. class panel_new_web(wx.Panel):
  2.     def __init__(self):
  3.         wx.Panel.__init__(self,-1,1)

En este fragmento de arriba de un programa que estoy creando, me aparece este error:

Código:
in __init__
    _windows_.Panel_swiginit(self,_windows_.new_Panel(*args, **kwargs))
TypeError: in method 'new_Panel', expected argument 1 of type 'wxWindow *'
El error está lo muestra exactamente en la última línea del fragmento de arriba.

En teoría, wx.Panel.__init__(self,-1,1) representa un panel con el padre -1 e id 1

A ver si me pueden ayudar!!
__________________
Buscando ideas para proyectos....

Esperando a tener 18 años....