Hello,

I think the real question is how exactly do you plan to implement the
UI under windows. Basically, bpython needs to be able to jump anywhere
on the screen. At least it needs to be able to reprint older lines
(think of paren highlighting) and it needs some area where it can
display the suggestion window (where the suggestions, the function
signature and the docstring are displayed).

The basic idea of porting new UIs to bpython is to inherit from
"bpython.repl.Repl" and implement some methods (like "current_line"
that returns the current input line, setting the "cpos" attribute that
indicates where the cursor is positioned etc.). That process is not
really documented, please feel free to document it. Also keep in mind
that the API is really rather line-based and not block-based, ie there
is the current line of input and previous lines never change again.

> I'd like to see UI configurable so that there is a single entrypoint
> in bpython that gives all necessary information about detected UI,
> chosen UI, features enabled, features disabled and the reasons why
> these features disables (TODO or UI limitations). I this could speed
> up porting bpython to other UIs.

I don't really understand that part. What exactly do you have in mind
and how does it help to speed up porting bpython to other UIs? Also,
please understand that we are a little bit sceptical about adding new
UIs to bpython. You're not done with adding the basic functionality,
someone also need to be willing to maintain it. Obviously, we (the
current maintainers, that is) don't have the resources to maintain yet
another UI thingie.

Regards,
Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"bpython" 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/bpython?hl=en.

Reply via email to