Update of /cvsroot/pythoncard/PythonCard/components
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11178/components
Modified Files:
list.py
Log Message:
added missing module imports to pysshed
new workaround for "cleanly" removing extra event classes from spec
Index: list.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/components/list.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** list.py 26 Aug 2004 23:25:06 -0000 1.27
--- list.py 4 Sep 2004 23:13:39 -0000 1.28
***************
*** 55,58 ****
--- 55,63 ----
}
widget.WidgetSpec.__init__( self, 'List', 'Widget', events, attributes )
+ # KEA 2004-09-04
+ # this isn't particularly clean, but it does remove the extra event class
+ # and since events unlike attributes don't get any further processing
+ # in the spec this should be okay
+ self._events.remove(event.MouseDoubleClickEvent)
***************
*** 81,89 ****
self._setStringSelection(aResource.stringSelection)
! # need to remove MouseDoubleClickEvent
! # since ListMouseDoubleClickEvent is used instead
! temp = list(event.WIDGET_EVENTS + ListEvents)
! temp.remove(event.MouseDoubleClickEvent)
! self._bindEvents(tuple(temp))
def _getItems(self):
--- 86,90 ----
self._setStringSelection(aResource.stringSelection)
! self._bindEvents(self._spec._events)
def _getItems(self):
|