wxPython Merge #2 of 2.4 branch --> HEAD (branch tag: wxPy_2_4_merge_2)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-07-02 23:13:10 +00:00
parent e234d4c9b7
commit 1fded56b37
535 changed files with 48899 additions and 20067 deletions

View File

@@ -8,7 +8,7 @@
#
# Created: 12-December-2002
# RCS-ID: $Id$
# Copyright: (c) 2002 by Robb Shecter <robb@acm.org>
# Copyright: (c) 2003 by db-X Corporation
# Licence: wxWindows license
#---------------------------------------------------------------------------
@@ -32,7 +32,6 @@ programmer to declare or track control ids or parent containers:
This module is Python 2.1+ compatible.
Author: Robb Shecter
"""
from wxPython import wx
import pubsub
@@ -176,7 +175,7 @@ class EventManager:
Return a dictionary with data about my state.
"""
stats = {}
stats['Adapters: Message'] = reduce(lambda x,y: x+y, map(len, self.messageAdapterDict.values()))
stats['Adapters: Message'] = reduce(lambda x,y: x+y, [0] + map(len, self.messageAdapterDict.values()))
stats['Adapters: Event'] = len(self.eventAdapterDict)
stats['Topics: Total'] = len(self.__getTopics())
stats['Topics: Dead'] = len(self.GetDeadTopics())
@@ -193,7 +192,7 @@ class EventManager:
is a problem.
"""
for topic in self.GetDeadTopics():
self.DeregisterTopic(topic)
self.__deregisterTopic(topic)
def GetDeadTopics(self):