" I think a better solution is for Dabo to expose an event. With most
other wx-level events, we trap them in the framework classes, and then
raise Dabo events. I'm working on this now, and should have something
posted shortly.
-- Ed Leafe"
I saw that you posted to svn some code changes that seemed related so I tried
to test them out tonight. If you weren't quite done yet then I appologize.
First I got the svn code and copied it over the dir I run dabo classdesigner
from on c:\program files\dabo but that didn't seem to find the code when I ran
so then I copied the svn code over my site-packages in
C:\Python26\Lib\site-packages\Dabo-0.9.2-py2.6.egg\ I thought I saw some note
on that in searches and it seemed to find the new code when I ran (at least i
got a different error msg) so hopefully that's the way I'm supposed to install
svn code.
So I notice that a new event was added to dEvents and
self.raiseEvent(dEvents.EditorStyleNeeded, evt) was added to the end of
OnStyleNeeded in dEditor. My first thought was that I could just plug in some
code for the event somewhere in the classdesigner but didn't find anywhere to
do that directly so then I tried binding the event in the afterInit of my
dEditor control to a method of the dEditor control
self.Bind(dEvents.EditorStyleNeeded, self.OnStyleNeeded2)
Then I adjust the OnStyleNeeded2 method a little from yesterday. This then pops
the following error so I'm not exactly sure where to write the code for the
event. I did do some searching on the wiki and mailing groups for how to use
dEvents but all the code I found seemed to import the module and then do
nothing with it. either that or there's some python magic going on i'm not
familure with yet. (still fairly new to python though I've hacked a few things
together)
---------------------------
Attribute Error
---------------------------
Attribute Error: type object 'EditorStyleNeeded' has no attribute 'Bind'
---------------------------
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
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]