summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-05-11 10:38:57 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-05-11 10:38:57 +0000
commita14611dbde118b1ffa6f66eb7237ddc0c3c61508 (patch)
tree72323783087bc71098bbbe810adeda4b5243c07d /src/gui.py
parentf7ae12fc8362a5df7a82ccb8900fa8141121d3ab (diff)
downloadpoezio-a14611dbde118b1ffa6f66eb7237ddc0c3c61508.tar.gz
poezio-a14611dbde118b1ffa6f66eb7237ddc0c3c61508.tar.bz2
poezio-a14611dbde118b1ffa6f66eb7237ddc0c3c61508.tar.xz
poezio-a14611dbde118b1ffa6f66eb7237ddc0c3c61508.zip
Fix the resize bug and avoid some blinking on resize \o/ fixed #1153
Diffstat (limited to 'src/gui.py')
-rw-r--r--src/gui.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui.py b/src/gui.py
index 7ec1ab73..b3964354 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -17,6 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with Poezio. If not, see <http://www.gnu.org/licenses/>.
+from common import debug
+
from gettext import (bindtextdomain, textdomain, bind_textdomain_codeset,
gettext as _)
@@ -77,7 +79,7 @@ class Gui(object):
'away': (self.command_away, _('Usage: /away [message]\nAway: Sets your availability to away and (optional) sets your status message. This is equivalent to "/show away [message]"')),
'busy': (self.command_busy, _('Usage: /busy [message]\nBusy: Sets your availability to busy and (optional) sets your status message. This is equivalent to "/show busy [message]"')),
'avail': (self.command_avail, _('Usage: /avail [message]\nAvail: Sets your availability to available and (optional) sets your status message. This is equivalent to "/show available [message]"')),
- 'available': (self.command_avail, _('Usage: /available [message]\nAvailable: Sets your availability to available and (optional) sets your status message. This is equivalent to "/show available [message]"')),
+ 'available': (self.command_avail, _('Usage: /available [message]\nAvailable: Sets your availability to available and (optional) sets your status message. This is equivalent to "/show available [message]"')),
'bookmark': (self.command_bookmark, _('Usage: /bookmark [roomname][/nick]\nBookmark: Bookmark the specified room (you will then auto-join it on each poezio start). This commands uses the same syntaxe as /join. Type /help join for syntaxe examples. Note that when typing "/bookmark" on its own, the room will be bookmarked with the nickname you\'re currently using in this room (instead of default_nick)')),
'set': (self.command_set, _('Usage: /set <option> [value]\nSet: Sets the value to the option in your configuration file. You can, for example, change your default nickname by doing `/set default_nick toto` or your resource with `/set resource blabla`. You can also set an empty value (nothing) by providing no [value] after <option>.')),
'kick': (self.command_kick, _('Usage: /kick <nick> [reason]\nKick: Kick the user with the specified nickname. You also can give an optional reason.')),
@@ -116,8 +118,9 @@ class Gui(object):
try:
key = stdscr.getkey()
except:
- self.window.resize(stdscr)
- self.window.refresh(self.rooms)
+ debug("main_loop exception")
+ # self.window.resize(stdscr)
+ # self.window.refresh(self.rooms)
continue
if str(key) in self.key_func.keys():
self.key_func[key]()
@@ -134,7 +137,7 @@ class Gui(object):
continue
else:
if ord(key) == 27 and ord(stdscr.getkey()) == 91:
- last = ord(stdscr.getkey()) # FIXME: ugly ugly workaroung.
+ last = ord(stdscr.getkey()) # FIXME: ugly ugly workaround.
if last == 51:
self.window.input.key_dc()
continue