install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit 0387e110047941b37d7919584f84bc99e695b450
parent 7cc71c68ada2f2c45db296c7fc5def23d9b7c28a
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Fri, 28 Oct 2016 18:23:51 +0200

Fix(Error Title)

Diffstat:
Minput.py | 7++++---
Mscreen.py | 1-
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/input.py b/input.py @@ -41,9 +41,10 @@ class Input: self.entry_type = type if self.current_choice == 0: curses.curs_set(1) - self.center(win, 2, size[1], title, curses.A_BOLD) - self.show_choices(win, size[1], 6) - self.input_string(win, 4, size[1]) + if type == "text" or type == "password": + self.center(win, 2, size[1], title, curses.A_BOLD) + self.show_choices(win, size[1], 6) + self.input_string(win, 4, size[1]) def title(self, x, y, title, win): size = win.getmaxyx() diff --git a/screen.py b/screen.py @@ -145,7 +145,6 @@ class Screen: self.error_win.attrset(curses.color_pair(1) | curses.A_BOLD); self.error_win.border() size = self.error_win.getmaxyx() - self.center(self.error_win, 0, size[1], " ERROR ", curses.color_pair(1) | curses.A_BOLD) self.center(self.error_win, 4, size[1], self.error_string) if (choice): self.in_error = 2