Package hsh :: Package curses_display :: Module message_view :: Class MessageView
[hide private]
[frames] | no frames]

Class MessageView

          object --+        
                   |        
           view.View --+    
                       |    
content_view.ContentView --+
                           |
                          MessageView

Instance Methods [hide private]
 
__init__(self, display, name, message, can_focus=True)
Initialize the new ContentView.
 
set_message(self, message)
 
set_focus(self, *args, **kwargs)
Used by display to inform a View that it is getting or losing focus, as indicated by the boolean has_focus.

Inherited from content_view.ContentView: delete_left, delete_line, delete_right, draw, draw_cursor, insert, insert_text, is_dirty, move_bottom, move_down, move_end, move_left, move_right, move_search, move_start, move_top, move_up, page_down, page_up, paste, toggle_wrap

Inherited from view.View: change_view, current_job, delete_job, draw_header, draw_line, edit_job, get_face, get_name, has_terminal, header_info, min_height, min_width, next_job, next_window, prev_job, putch, quit, restart_job, set_dirty, set_has_terminal, set_visible_job, show_search, wants_terminal

Inherited from view.View (private): _content_win

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, display, name, message, can_focus=True)
(Constructor)

 

Initialize the new ContentView.

Parameters:
  • display - Where it will be drawn
  • text - What to draw
  • name - Optional unique name, defaulting to class name.
Overrides: object.__init__
(inherited documentation)

set_focus(self, *args, **kwargs)

 

Used by display to inform a View that it is getting or losing focus, as indicated by the boolean has_focus. Return True if the change is accepted, False otherwise.

Overrides: view.View.set_focus
(inherited documentation)