time.sleep(0.4)
def warn(self, msg, new_line=True):
- self.d.gauge_update(self.index, "%s Warning: %s" % (self.msg, msg),
+ self.d.gauge_update(self.percent, "%s Warning: %s" % (self.msg, msg),
update_text=True)
time.sleep(0.4)
def __init__(self, size, title, bar_type='default'):
self.output.size = size
self.bar_type = bar_type
- self.output.msg = "%s..." % title
+ self.output.msg = "%s ..." % title
self.goto(0)
def _postfix(self):
self.output("Warning: %s" % msg, new_line)
def finalize(self):
- self.d.msgbox(self.msg, height=(self.height + 2), width=self.width)
+ self.d.msgbox(self.msg, title=self.title, height=(self.height + 2),
+ width=self.width)
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :