summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-03-23 00:15:01 +0100
committermathieui <mathieui@mathieui.net>2014-03-23 00:15:01 +0100
commit186803d9a97d7efb089acc470b98293b7e472db5 (patch)
tree89533dc38acddbcfbb34b162974bd29a62c07db3 /src/windows.py
parent918e15d1781fce0fbf2b7b2b047be32163bc4679 (diff)
downloadpoezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.gz
poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.bz2
poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.xz
poezio-186803d9a97d7efb089acc470b98293b7e472db5.zip
Fix formatting, some typos, and unused code, and add docstrings
- No idea why subclasses of ConversationTab were working before (info_header was overriden with None in __init__) - Or why the date parsing worked (“Exeception”) - Some more reformatting with pylint indications - Document each module in the tabs module
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/windows.py b/src/windows.py
index 6b0523a2..7e9951a6 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1168,13 +1168,13 @@ class Input(Win):
}
Win.__init__(self)
self.text = ''
- self.pos = 0 # The position of the “cursor” in the text
- # (not only in the view)
- self.view_pos = 0 # The position (in the text) of the
- # first character displayed on the
- # screen
- self.on_input = None # callback called on any key pressed
- self.color = None # use this color on addstr
+ self.pos = 0 # The position of the “cursor” in the text
+ # (not only in the view)
+ self.view_pos = 0 # The position (in the text) of the
+ # first character displayed on the
+ # screen
+ self.on_input = None # callback called on any key pressed
+ self.color = None # use this color on addstr
def on_delete(self):
"""