papo-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Papo-hackers] Falla en DateEntry al querer interactuar con Window


From: maram
Subject: [Papo-hackers] Falla en DateEntry al querer interactuar con Window
Date: Wed, 8 Dec 2004 10:18:15 -0300

041207-1100
Al querer mostrar el DateEntry...

... ...   File "/home/marceloa/src/cimarron/src/Generic/StatefulControl.py",
line 109, in string
... ...     self.pushStatus(_('Unable to represent "%s"') %
(`value`,), timeout=10, type='warn')
... ...   File "/home/marceloa/src/cimarron/src/Generic/View.py", line
80, in pushStatus
... ...     return self.getParent().pushStatus(message, timeout, type)
... ...   File "/home/marceloa/src/cimarron/src/Generic/View.py", line
80, in pushStatus
... ...     return self.getParent().pushStatus(message, timeout, type)
... ...   File "/home/marceloa/src/cimarron/src/Generic/View.py", line
80, in pushStatus
... ...     return self.getParent().pushStatus(message, timeout, type)
... ...   File "/home/marceloa/src/cimarron/src/Generic/View.py", line
80, in pushStatus
... ...     return self.getParent().pushStatus(message, timeout, type)
... ...   File "/home/marceloa/src/cimarron/src/Generic/View.py", line
80, in pushStatus
... ...     return self.getParent().pushStatus(message, timeout, type)
... ...   File "/home/marceloa/src/cimarron/src/Generic/View.py", line
80, in pushStatus
... ...     return self.getParent().pushStatus(message, timeout, type)
... ... AttributeError: 'NoneType' object has no attribute 'pushStatus'


En principio el error se produce porque Gtk2DateEntry espera que su
"parent" sea del tipo window, y falla cuando el DateEntry, esta dentro
de otro contenedor como un Vbox...

momentaneamente lo soluciono "comentando#" todas las referencias a win
en Gtk2dateEntry.py, por ejemplo:

    def _popup_dialog(self, *a):
        dia = self._dia
        cal = self._cal
        win = self.getWindow()

        (aqui falla porque win es None.)

        #win.disable()
        #win.busy()
        #win.pushStatus(_('Waiting for input in calendar'))

Cual seria la solucion correcta, como le digo cual es el "parent"  de
la ventana principal? y no el "parent" como widget

maram




reply via email to

[Prev in Thread] Current Thread [Next in Thread]