Updated widgets

This commit is contained in:
Manuel Cortez 2017-05-26 10:03:32 -05:00
parent 8464725fb4
commit 010c9ccdbc

View File

@ -90,6 +90,8 @@ class Button(GuiObject):
def draw(self):
s = self.prompt
if len(s) > self.base.maxx:
s = s[:self.base.maxx-5]+"..."
self.screen.addstr(self.y, self.x, s)
self.screen.refresh()