PEP8'd curses_helper.py
This commit is contained in:
@@ -21,6 +21,7 @@ __all__ = ['ESCAPE', 'get_gold', 'show_notification', 'show_help',
|
|||||||
# http://bugs.python.org/issue21088
|
# http://bugs.python.org/issue21088
|
||||||
ESCAPE = 27
|
ESCAPE = 27
|
||||||
|
|
||||||
|
|
||||||
def get_gold():
|
def get_gold():
|
||||||
"""
|
"""
|
||||||
Return the guilded symbol.
|
Return the guilded symbol.
|
||||||
@@ -30,6 +31,7 @@ def get_gold():
|
|||||||
attr = curses.A_BOLD | Color.YELLOW
|
attr = curses.A_BOLD | Color.YELLOW
|
||||||
return symbol, attr
|
return symbol, attr
|
||||||
|
|
||||||
|
|
||||||
def get_arrow(likes):
|
def get_arrow(likes):
|
||||||
"""
|
"""
|
||||||
Return the vote symbol to display, based on the `likes` paramater.
|
Return the vote symbol to display, based on the `likes` paramater.
|
||||||
@@ -305,7 +307,7 @@ def prompt_input(window, prompt, hide=False):
|
|||||||
window.addstr(n_rows - 1, 0, prompt, attr)
|
window.addstr(n_rows - 1, 0, prompt, attr)
|
||||||
window.refresh()
|
window.refresh()
|
||||||
subwin = window.derwin(1, n_cols - len(prompt),
|
subwin = window.derwin(1, n_cols - len(prompt),
|
||||||
n_rows - 1, len(prompt))
|
n_rows - 1, len(prompt))
|
||||||
subwin.attrset(attr)
|
subwin.attrset(attr)
|
||||||
out = text_input(subwin)
|
out = text_input(subwin)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user