summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-08 20:20:43 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-08 20:20:43 +0000
commit49e62b940f769d9794f34c3f902637e82079d5bb (patch)
treee95d2b50dd3760819e3f5c3204246d00fa3932e1 /src
parent0adc5f1acf3b06d7b6aa7336684da67b4cefbb9c (diff)
downloadpoezio-49e62b940f769d9794f34c3f902637e82079d5bb.tar.gz
poezio-49e62b940f769d9794f34c3f902637e82079d5bb.tar.bz2
poezio-49e62b940f769d9794f34c3f902637e82079d5bb.tar.xz
poezio-49e62b940f769d9794f34c3f902637e82079d5bb.zip
fix the resize new problem
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