> If we were to make a gui dialog system for gVim using Python, what
> would the preferable cross-platform (Windows/Linux) be? WxPython?
> TkInter? PyGTK?
>
A year ago while developing vimuiex I tried several Python toolkits
and the only one that worked was wxPython. The others just crashed
Vim when opening a window. The only problem with wxPython is that
you can't make a "modal" window: after you create a window the
control passes immediately back to Vim.
(this could probably be solved with a loop in Python that would wait
for wxApp to close the last window; but then redraw of the main
Vim window wouldn't work).
If you are interested, you can take a look at version 0.4 of vimuiex
where wxPython is still supported.
IMO it would be better to implement the dialogs with Python.curses
and then port it to use python_screen (patch for vimuiex). I thought
about doing that myself, except it would take a lot of time and I
don't really need dialogs (vimuiex was started as a utility for
browsing
temporary lists). You can find an implementation of a simple input
field in _popuplist_screen.py. But for a real GUI toolkit it would
have
to be implemented as a separate class that would be added to
dialogs and not as a part of the dialog itself as it is now.
Marko
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
To unsubscribe, reply using "remove me" as the subject.
No comments:
Post a Comment