diff options
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py index f9032b6e..55e3154c 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -324,6 +324,18 @@ class Tab(object): """ pass + def on_half_scroll_down(self): + """ + Defines what happens when we scroll half a screen down + """ + pass + + def on_half_scroll_up(self): + """ + Defines what happens when we scroll half a screen up + """ + pass + def on_info_win_size_changed(self): """ Called when the window with the informations is resized @@ -529,6 +541,12 @@ class ChatTab(Tab): def on_scroll_down(self): self.text_win.scroll_down(self.text_win.height-1) + def on_half_scroll_up(self): + self.text_win.scroll_up((self.text_win.height-1) // 2) + + def on_half_scroll_down(self): + self.text_win.scroll_down((self.text_win.height-1) // 2) + class MucTab(ChatTab): """ |