about summary refs log tree commit diff stats
path: root/ranger/gui/displayable.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-13 05:49:42 +0100
committerhut <hut@lavabit.com>2010-01-13 05:49:42 +0100
commit0cfc59d6028c6b43e1dc323b94c84a8157db1859 (patch)
treec874504fbcb7317662ca6062d375df806ea2b1cc /ranger/gui/displayable.py
parente848e45204c291fde887a88c860bfee2f747a3af (diff)
downloadranger-0cfc59d6028c6b43e1dc323b94c84a8157db1859.tar.gz
cleanups + style adjustments
Diffstat (limited to 'ranger/gui/displayable.py')
-rw-r--r--ranger/gui/displayable.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py
index 54596389..5c46a0dc 100644
--- a/ranger/gui/displayable.py
+++ b/ranger/gui/displayable.py
@@ -12,13 +12,12 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-from ranger.shared import FileManagerAware, EnvironmentAware
-from ranger.gui.curses_shortcuts import CursesShortcuts
 import _curses
 
+from ranger.shared import FileManagerAware, EnvironmentAware
+from ranger.gui.curses_shortcuts import CursesShortcuts
 
 class Displayable(EnvironmentAware, FileManagerAware, CursesShortcuts):
-
 	"""
 	Displayables are objects which are displayed on the screen.
 
@@ -86,7 +85,8 @@ class Displayable(EnvironmentAware, FileManagerAware, CursesShortcuts):
 		return True
 
 	def __contains__(self, item):
-		"""Is item inside the boundaries?
+		"""
+		Is item inside the boundaries?
 		item can be an iterable like [y, x] or an object with x and y methods.
 		"""
 		try:
@@ -107,7 +107,8 @@ class Displayable(EnvironmentAware, FileManagerAware, CursesShortcuts):
 		"""
 
 	def destroy(self):
-		"""Called when the object is destroyed.
+		"""
+		Called when the object is destroyed.
 		Override this!
 		"""
 
@@ -120,13 +121,15 @@ class Displayable(EnvironmentAware, FileManagerAware, CursesShortcuts):
 				(y >= self.y and y < self.y + self.hei)
 
 	def click(self, event):
-		"""Called when a mouse key is pressed and self.focused is True.
+		"""
+		Called when a mouse key is pressed and self.focused is True.
 		Override this!
 		"""
 		pass
 
 	def press(self, key):
-		"""Called when a key is pressed and self.focused is True.
+		"""
+		Called when a key is pressed and self.focused is True.
 		Override this!
 		"""
 		pass
@@ -141,7 +144,8 @@ class Displayable(EnvironmentAware, FileManagerAware, CursesShortcuts):
 				self.win.erase()
 	
 	def finalize(self):
-		"""Called after every displayable is done drawing.
+		"""
+		Called after every displayable is done drawing.
 		Override this!
 		"""
 		pass