Added functions for adding spin inputs to popup. Added support for default non-number values to them(they return None in that case). Added proper scrolling to InputPopup. Tweaked visual style
This commit is contained in:
parent
a28e40ea35
commit
05758245a1
@ -807,6 +807,17 @@ class InputPopup(Popup):
|
|||||||
self.parent.add_string(row, string, scr, col, pad, trim)
|
self.parent.add_string(row, string, scr, col, pad, trim)
|
||||||
return True
|
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):
|
def add_spaces(self, num):
|
||||||
for i in range(num):
|
for i in range(num):
|
||||||
self.lines.append((len(self.inputs), ""))
|
self.lines.append((len(self.inputs), ""))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user