Am 2010-10-13 um 18:41 schrieb Paul McNett:
>> - how can non-GUI objects work with events? (possibly without
>> inheriting dObject)
>
> You'd need to inherit dabo.lib.eventMixin.EventMixin. It is a pretty  
> simple
> implementation.

Yes, I thought so, and that was what I tried first - but EventMixin  
knows nothing about Application or Form, and thus it's apparently not  
possible to exchange events between GUI and other objects.
Maybe I made another mistake.

>> - would it make sense for the framework or my own apps to use
>> something like PyDispatcher?
>
> For general-use event-handling, I think I'd use one of the libraries  
> built for this,
> like PyDispatcher, pubsub, or Twisted, depending on my specific  
> needs. The Dabo event
> handling stuff was designed to be general-use, but was really built  
> specifically to
> wrap wx events. If that makes any sense...

That's what I wanted to hear, thank you!

When I used Twisted with wxPython around 2004, I needed PyDispatcher  
anyway for general events, since (at last, AFAIR, at that time) both's  
events weren't usable for the kind of "messaging" I wanted.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/5f1a1f3f-023f-4941-bb28-33f6b3f04...@fiee.net

Reply via email to