summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui.py b/src/gui.py
index 6c698df3..23af902e 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -101,7 +101,7 @@ class Gui(object):
"^P": self.rotate_rooms_right,
"\t": self.auto_completion,
"^I": self.auto_completion,
- "KEY_RESIZE": self.window.resize,
+ "KEY_RESIZE": self.resize_window,
"KEY_BACKSPACE": self.window.input.key_backspace,
'^J': self.execute,
'\n': self.execute,
@@ -126,6 +126,13 @@ class Gui(object):
self.handler.connect('error-message', self.room_error)
self.handler.connect('error', self.information)
+ def resize_window(self):
+ """
+ Resize the whole screen
+ """
+ self.window.resize(self.stdscr)
+ self.window.refresh(self.rooms)
+
def main_loop(self, stdscr):
"""
main loop waiting for the user to press a key