# HG changeset patch # User Goffi # Date 1281590291 -28800 # Node ID 726786e914c3a89220bf078352e20ec12fd7afb9 # Parent 96af1bec2e689d613cb238fd4781ee6bae3098fa Primitivus: buttons are now in the bottom of Dialogs diff -r 96af1bec2e68 -r 726786e914c3 frontends/primitivus/custom_widgets.py --- a/frontends/primitivus/custom_widgets.py Thu Aug 12 13:17:10 2010 +0800 +++ b/frontends/primitivus/custom_widgets.py Thu Aug 12 13:18:11 2010 +0800 @@ -661,10 +661,9 @@ buttons = [urwid.Button(_("Ok"), kwargs['ok_cb'], kwargs['ok_value'])] if buttons: buttons_flow = urwid.GridFlow(buttons, max([len(button.get_label()) for button in buttons])+4, 1, 1, 'center') - widgets_lst.append(buttons_flow) body_content = urwid.SimpleListWalker(widgets_lst) frame_body = urwid.ListBox(body_content) - frame = urwid.Frame(frame_body, frame_header) + frame = urwid.Frame(frame_body, frame_header, buttons_flow if buttons else None) decorated_frame = urwid.LineBox(frame) urwid.WidgetWrap.__init__(self, decorated_frame)