What Tk plugins must be ported to Qt?

15 views
Skip to first unread message

Edward K. Ream

unread,
Feb 2, 2011, 1:14:17 PM2/2/11
to leo-editor
The more I review the vim-related stuff, the more I think that it is
time to abandon the Tk gui.

The reason is simple: the vim-related project will require substantial
changes to the gui code, and I really don't want to do this work
twice. Furthermore, the key code can be simplified *slightly* by
getting rid of Tk-isms.

Otoh, moving to Qt requires that I rewrite all import Tk plugins that
don't already exist in a Qt version.

We discussed this somewhere, but I don't remember which Tk plugins
need to be ported. Can anyone supply the list? Thanks.

Edward

VR

unread,
Feb 2, 2011, 3:10:17 PM2/2/11
to leo-editor
Hi Edward,

I can* not* provide a complete list of Tk-only plug-ins. -
However I'd
like to get the ball rolling on your attempt to simplify the Leo-
GUI ...
* detect_urls.py

- This has been *my* major reason, why I still mostly use the
combination of Python 2 & Tk-GUI ...

With kind regards,

Viktor

Ville M. Vainio

unread,
Feb 2, 2011, 3:22:57 PM2/2/11
to leo-e...@googlegroups.com
On Wed, Feb 2, 2011 at 9:10 PM, VR <viktor....@gmail.com> wrote:

> * detect_urls.py
>
>   - This has been *my* major reason, why I still mostly use the
>     combination of Python 2 & Tk-GUI ...

I don't remember where we ended last time we discussed this, but the
way to do this is not through a plugin, but through incorporating it
in syntax highlighter code.

--
Ville M. Vainio @@ Forum Nokia

Edward K. Ream

unread,
Mar 4, 2011, 8:27:56 AM3/4/11
to leo-e...@googlegroups.com

I'll attempt to add this today, following the code in detect_urls.
There are two choices:

1. Colorize url's everywhere, regardless of context.

2. Colorize url's only in comments.

Actually, the jEdit colorizer doesn't know about comment syntax,
although perhaps the scan for url's could be done only where when one
of the comment colorizing tags is about to be applied.

For now, I'll add a so-called "Leo Rule" that will colorize url's
everywhere. I suppose this rule must match early, otherwise all
syntax constructs would suppress the colorizing of urls, which doesn't
seem like what we want.

Edward


>
> --
> Ville M. Vainio @@ Forum Nokia
>

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

--
------------------------------------------------------------------------------
Edward K. Ream email: edre...@gmail.com
Leo: http://webpages.charter.net/edreamleo/front.html
------------------------------------------------------------------------------

Edward K. Ream

unread,
Mar 4, 2011, 10:27:22 AM3/4/11
to leo-editor


On Feb 2, 2:10 pm, VR <viktor.ransm...@gmail.com> wrote:

>    - This has been *my* major reason, why I still mostly use the
>      combination of Python 2 & Tk-GUI ...

After using the new colorizer for 5 minutes I wonder how I ever lived
without "live" url's in Leo.

Thanks, Viktor, for this suggestion.

Edward

Edward K. Ream

unread,
Mar 4, 2011, 10:35:36 AM3/4/11
to leo-editor


On Feb 2, 2:22 pm, "Ville M. Vainio" <vivai...@gmail.com> wrote:
> On Wed, Feb 2, 2011 at 9:10 PM, VR <viktor.ransm...@gmail.com> wrote:
> > * detect_urls.py
>
> >   - This has been *my* major reason, why I still mostly use the
> >     combination of Python 2 & Tk-GUI ...
>
> I don't remember where we ended last time we discussed this, but the
> way to do this is not through a plugin, but through incorporating it
> in syntax highlighter code.

And thanks to you, Ville, for making this suggestion. It really moved
things along.

EKR
Reply all
Reply to author
Forward
0 new messages