You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I understand the usage of (x|y)cursor in Float that are after used here in write_to_screen, do you think it could be a better/simpler idea to have a singleton cursor_pos = object() (or even a specific string "cursor") that could could be use for Floats top/left/bottom/right arguments ?
The advantage of the Cursor singleton object is you could implement __add__/__sub__ dunder,
And do things like:
from prompt_toolkit.shortcut import cursor as c
Float(left=c+1, top=c-3)
Thoughts?
The text was updated successfully, but these errors were encountered:
Carreau
added a commit
to Carreau/python-prompt-toolkit
that referenced
this issue
Nov 4, 2015
I think I understand the usage of
(x|y)cursor
in Float that are after used here inwrite_to_screen
, do you think it could be a better/simpler idea to have a singletoncursor_pos = object()
(or even a specific string"cursor"
) that could could be use forFloat
s top/left/bottom/right arguments ?The advantage of the
Cursor
singleton object is you could implement__add__/__sub__
dunder,And do things like:
Thoughts?
The text was updated successfully, but these errors were encountered: