ranger.gui.widgets
index
../../ranger/gui/widgets/__init__.py

# -*- coding: utf-8 -*-

 
Package Contents
       
browsercolumn
browserview
console
pager
statusbar
taskview
titlebar

 
Classes
       
ranger.gui.displayable.Displayable(ranger.core.shared.EnvironmentAware, ranger.core.shared.FileManagerAware, ranger.gui.curses_shortcuts.CursesShortcuts)
Widget

 
class Widget(ranger.gui.displayable.Displayable)
    A class for classification of widgets.
 
 
Method resolution order:
Widget
ranger.gui.displayable.Displayable
ranger.core.shared.EnvironmentAware
ranger.core.shared.FileManagerAware
ranger.gui.curses_shortcuts.CursesShortcuts
ranger.core.shared.SettingsAware
builtins.object

Data and other attributes defined here:
vcsfilestatus_symb = {'changed': ('*', ['vcschanged']), 'conflict': ('X', ['vcsconflict']), 'deleted': ('-', ['vcschanged']), 'ignored': ('·', ['vcsignored']), 'none': (' ', []), 'staged': ('*', ['vcsstaged']), 'sync': ('√', ['vcssync']), 'unknown': ('?', ['vcsunknown']), 'untracked': ('+', ['vcschanged'])}
vcsremotestatus_symb = {'ahead': ('>', ['vcsahead']), 'behind': ('<', ['vcsbehind']), 'diverged': ('Y', ['vcsdiverged']), 'none': (' ', []), 'sync': ('=', ['vcssync']), 'unknown': ('?', ['vcsunknown'])}

Methods inherited from ranger.gui.displayable.Displayable:
__bool__ = __nonzero__(self)
Always True
__contains__(self, item)
Checks if item is inside the boundaries.
 
item can be an iterable like [y, x] or an object with x and y methods.
__init__(self, win, env=None, fm=None, settings=None)
__nonzero__(self)
Always True
__str__(self)
click(self, event)
Called when a mouse key is pressed and self.focused is True.
 
Override this!
contains_point(self, y, x)
Test whether the point lies inside this object.
 
x and y should be absolute coordinates.
destroy(self)
Called when the object is destroyed.
 
Override this!
draw(self)
Draw the oject.
 
Called on every main iteration if visible.  Containers should call
draw() on their contained objects here.  Override this!
finalize(self)
Called after every displayable is done drawing.
 
Override this!
poke(self)
Called before drawing, even if invisible
press(self, key)
Called when a key is pressed and self.focused is True.
 
Override this!
resize(self, y, x, hei=None, wid=None)
Resize the widget

Methods inherited from ranger.core.shared.EnvironmentAware:
env = None
Data descriptors inherited from ranger.core.shared.EnvironmentAware:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from ranger.gui.curses_shortcuts.CursesShortcuts:
addch(self, *args)
addnstr(self, *args)
addstr(self, *args)
color(self, *keys)
Change the colors from now on.
color_at(self, y, x, wid, *keys)
Change the colors at the specified position
color_reset(self)
Change the colors to the default colors
set_fg_bg_attr(self, fg, bg, attr)