On Wed, Jan 21, 2009 at 4:56 PM, Jesse Aldridge <[email protected]>wrote:
> > Ok, here's my first attempt: It looks reasonable. In particular, getInput follows the typical pattern for creating minibuffer commands. > > I created two script buttons: During prototyping, I would suggest adding helpers like shouldDisplay as children of the script button. The script can then use g.func2method to add the helper to the desired class. This kind of "monkey patching" avoids the need to change important classes. > > Finally, I added some code to drawTree. Monkey patching would keep the new code separate from the old. But that's really a nit. Interesting work. > > Also, I have a feeling that this post might not be the best way to share my > changes... What would be the proper way? You might put the actual code on Leo's wiki, and provide a link in a post. That way you can update the code without invalidating the link. Edward --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
