comparison frontends/src/primitivus/primitivus @ 911:b12706d164d7

primitivus: removed deprecated use of set_focus
author Goffi <goffi@goffi.org>
date Fri, 21 Mar 2014 15:04:03 +0100
parents cd02f5ef30df
children d08cbdd566e2
comparison
equal deleted inserted replaced
910:9754c0ebadba 911:b12706d164d7
359 """Remove window showed on the right column""" 359 """Remove window showed on the right column"""
360 #TODO: to a better Window management than this crappy hack 360 #TODO: to a better Window management than this crappy hack
361 assert(len(self.center_part.widget_list)<=2) 361 assert(len(self.center_part.widget_list)<=2)
362 wid_idx = len(self.center_part.widget_list)-1 362 wid_idx = len(self.center_part.widget_list)-1
363 self.center_part.widget_list[wid_idx] = urwid.Filler(urwid.Text('')) 363 self.center_part.widget_list[wid_idx] = urwid.Filler(urwid.Text(''))
364 self.center_part.set_focus(0) 364 self.center_part.focus_position = 0
365 self.redraw() 365 self.redraw()
366 366
367 def addProgress (self, id, message): 367 def addProgress (self, id, message):
368 """Follow a SàT progress bar 368 """Follow a SàT progress bar
369 @param id: SàT id of the progression 369 @param id: SàT id of the progression