fix the position of the input
This commit is contained in:
parent
bbd9d9bb32
commit
2eeec351cb
|
@ -6,18 +6,17 @@ import interface_variables
|
||||||
import curses
|
import curses
|
||||||
|
|
||||||
int_vars = interface_variables
|
int_vars = interface_variables
|
||||||
|
screen = curses.initscr()
|
||||||
|
|
||||||
def get_param(prompt_string):
|
def get_param(prompt_string):
|
||||||
screen = curses.initscr()
|
|
||||||
screen.clear()
|
screen.clear()
|
||||||
screen.border(0)
|
screen.border(0)
|
||||||
screen.addstr(2, 2, prompt_string)
|
screen.addstr(2, 2, prompt_string)
|
||||||
screen.refresh()
|
screen.refresh()
|
||||||
input = screen.getstr(10, 10, 60)
|
input = screen.getstr(3, 2, 60)
|
||||||
return input
|
return input
|
||||||
|
|
||||||
def draw_screen():
|
def draw_screen():
|
||||||
screen = curses.initscr()
|
|
||||||
screen.clear()
|
screen.clear()
|
||||||
screen.border(0)
|
screen.border(0)
|
||||||
screen.addstr(2, 2, "Please enter a number...")
|
screen.addstr(2, 2, "Please enter a number...")
|
||||||
|
|
Reference in New Issue