Hi Paul. I'm still a bit confused. The code snippet Jacek posted sets the UIAppClass to the UIApplication class which is defines in the snippet as a subclass of "dabo.ui.uiApp". When I look at the API docs at "http://paul.dabodev.com/doc/api/dabodoc/dabo.ui.uiwx.uiApp.uiApp.html" I see not mention of FilterEvents or SetCallFilterEvents.
How do they get there? Are they being added to the Application object in the background by the UI system because it sees it's WX, or is there some inheritance I'm not seeing or what. Sorry if it's a silly question. I've only ever written a couple of small python programs, and none of the using Dabo yet, so I could be easily missing something. Ian Simcock. Paul McNett wrote: > On 2/6/12 4:11 PM, Ian Simcock wrote: >> When I saw this I thought "I don't remember seeing that before". So I >> checked the API docs on the web site and found no mention of FilterEvent >> or SetCallFilterEvent anywhere. I even did a Google search of >> DaboDev.com and it found nothing. > > These come from the UI App: wx.App: > mac:sbs pmcnett$ python > Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55) > [GCC 4.0.1 (Apple Inc. build 5493)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import wx > >>> help(wx.App.FilterEvent) > Help on method FilterEvent in module wx._core: > > FilterEvent(*args, **kwargs) unbound wx._core.App method > FilterEvent(self, Event event) -> int > > Filters all events. `SetCallFilterEvent` controls whether or not your > override is called. > > >>> help(wx.App.SetCallFilterEvent) > Help on method SetCallFilterEvent in module wx._core: > > SetCallFilterEvent(*args, **kwargs) unbound wx._core.App method > SetCallFilterEvent(self, bool callFilterEvent=True) > > Set the Call FilterEvent flag. When set your override of FilterEvent > will be called. SetCallFilterEvent's purpose is to avoid any > performance penalty when you have overriden FilterEvent, but don't > want it to be called, and also to reduce the runtime overhead when it > is not overridden. > >> I thought that the API docs were automatically generated, and if so, why >> aren't these listed there? > > The property exposed at the Dabo layer to allow access to the wxApp layer was > UIAppClass, which is documented here: > > http://paul.dabodev.com/doc/api/dabodoc/dabo.dApp.dApp.html#Properties_UIAppClass > > Paul > _______________________________________________ > Post Messages to: [email protected] > Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users > Searchable Archives: http://leafe.com/archives/search/dabo-users > This message: http://leafe.com/archives/byMID/[email protected] > _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
