Made additional formatting for input controls optional and on by default for popups so it doesn't show up in preferences but still works when setting torrent options

This commit is contained in:
Asmageddon 2012-03-12 20:22:29 +01:00
parent 05758245a1
commit 04ed96d121

View File

@ -807,17 +807,6 @@ class InputPopup(Popup):
self.parent.add_string(row, string, scr, col, pad, trim)
return True
def getmaxyx(self):
return self.screen.getmaxyx()
def add_string(self, row, string, scr=None, col = 0, pad=True, trim=True):
if row <= 0:
return False
elif row >= self.height -1:
return False
self.parent.add_string(row, string, scr, col, pad, trim)
return True
def add_spaces(self, num):
for i in range(num):
self.lines.append((len(self.inputs), ""))