Mercurial > libervia-backend
comparison frontends/primitivus/custom_widgets.py @ 176:a50953ac6191
Primitivus: send_file first draft
- a new dialog for choosing a file is work in progress
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 12 Aug 2010 23:09:31 +0800 |
parents | 726786e914c3 |
children | 8f56238309d9 |
comparison
equal
deleted
inserted
replaced
175:8537df794f74 | 176:a50953ac6191 |
---|---|
897 urwid.LineBox.__init__(self, original_widget) | 897 urwid.LineBox.__init__(self, original_widget) |
898 top_columns = self._w.widget_list[0] | 898 top_columns = self._w.widget_list[0] |
899 top_columns.widget_list[1] = label_widget | 899 top_columns.widget_list[1] = label_widget |
900 | 900 |
901 class VerticalSeparator(urwid.WidgetDecoration, urwid.WidgetWrap): | 901 class VerticalSeparator(urwid.WidgetDecoration, urwid.WidgetWrap): |
902 def __init__(self, original_widget, left_char = utf8decode("│"), right_char = ''): | 902 def __init__(self, original_widget, left_char = u"│", right_char = ''): |
903 """Draw a separator on left and/or right of original_widget.""" | 903 """Draw a separator on left and/or right of original_widget.""" |
904 | 904 |
905 widgets = [original_widget] | 905 widgets = [original_widget] |
906 if left_char: | 906 if left_char: |
907 widgets.insert(0, ('fixed', 1, urwid.SolidFill(left_char))) | 907 widgets.insert(0, ('fixed', 1, urwid.SolidFill(left_char))) |