On Aug 22, 10:03 am, Terry Brown <terry_n_br...@yahoo.com> wrote:
> On Sun, 22 Aug 2010 10:00:56 -0500
>
> Terry Brown <terry_n_br...@yahoo.com> wrote:
> > To clarify, Leo has a gui agnostic API for these parts of the interface for 
> > Leo's core functions, but I'm not sure it covers everything plugins might 
> > need.
>
> Ahem, and to clarify the point of my posting :-)  .configure() is a Tk 
> function, so it won't work with Qt.  There may or may not be Leo wrapper 
> functions to get the same result in either gui.

Terry, thanks for the tips. I found some spare time to look into this
a bit more and found that the plugin "toolbar.py", which I had
enabled, was the main culprit. Upon disabling it, my script worked ok
on Windows (tk), but not on Ubuntu (qt). As you say, the .configure()
function does not work in qt, so as a temporary workaround I simply
removed DeleteButtonCallback(), at which point it worked alright with
qt.

Ultimately, I would like to have a script that works the same on both
tk and qt. I'll continue to tinker with it until I get it the way I
want it, but for now I have it working well enough on both platforms.

So a final question: Other than looking at the code (which I assume is
in leoGuiPluginsRef.leo), is there any "official" documentation of the
gui-agnostic API?

Thanks!
Phil

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-edi...@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to