Mercurial > urwid-satext
comparison frontends/primitivus/custom_widgets.py @ 21:96a2c5904e35
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 | 333a62fab0e3 |
children | dfabea6f73b5 |
comparison
equal
deleted
inserted
replaced
20:333a62fab0e3 | 21:96a2c5904e35 |
---|---|
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))) |