Show More
@@ -796,12 +796,16 b' class ibrowse(ipipe.Display):' | |||||
796 | keymap.register("refresh", "r") |
|
796 | keymap.register("refresh", "r") | |
797 | keymap.register("refreshfind", "R") |
|
797 | keymap.register("refreshfind", "R") | |
798 |
|
798 | |||
799 |
def __init__(self, |
|
799 | def __init__(self, input=None, attrs=None): | |
800 | """ |
|
800 | """ | |
801 | Create a new browser. If ``attrs`` is not empty, it is the list |
|
801 | Create a new browser. If ``attrs`` is not empty, it is the list | |
802 | of attributes that will be displayed in the browser, otherwise |
|
802 | of attributes that will be displayed in the browser, otherwise | |
803 | these will be determined by the objects on screen. |
|
803 | these will be determined by the objects on screen. | |
804 | """ |
|
804 | """ | |
|
805 | self.input = input | |||
|
806 | ||||
|
807 | if attrs is None: | |||
|
808 | attrs = () | |||
805 | self.attrs = attrs |
|
809 | self.attrs = attrs | |
806 |
|
810 | |||
807 | # Stack of browser levels |
|
811 | # Stack of browser levels |
@@ -1101,6 +1101,10 b' class igrid(ipipe.Display):' | |||||
1101 | This is a wx-based display object that can be used instead of ``ibrowse`` |
|
1101 | This is a wx-based display object that can be used instead of ``ibrowse`` | |
1102 | (which is curses-based) or ``idump`` (which simply does a print). |
|
1102 | (which is curses-based) or ``idump`` (which simply does a print). | |
1103 | """ |
|
1103 | """ | |
|
1104 | ||||
|
1105 | def __init__(self, input=None): | |||
|
1106 | self.input = input | |||
|
1107 | ||||
1104 | if wx.VERSION < (2, 7): |
|
1108 | if wx.VERSION < (2, 7): | |
1105 | def display(self): |
|
1109 | def display(self): | |
1106 | try: |
|
1110 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now