Mercurial > traipse_dev
comparison orpg/chat/chatwnd.py @ 82:2fa8bd6785a5 ornery-dev
TerminalWriter's colors are nice, but if no debug console is open it causes the software to look for one until a recursion error is created. Crash reports are sent to the debug console and a pop-up tells the user one has happened. Fix to chat window from SnowDog.
author | sirebral |
---|---|
date | Thu, 27 Aug 2009 00:51:22 -0500 |
parents | dd4be4817377 |
children | eb1b275699c4 |
comparison
equal
deleted
inserted
replaced
81:65c212e9a5b4 | 82:2fa8bd6785a5 |
---|---|
64 import sys | 64 import sys |
65 import cStringIO # for reading inline imagedata as a stream | 65 import cStringIO # for reading inline imagedata as a stream |
66 from HTMLParser import HTMLParser | 66 from HTMLParser import HTMLParser |
67 import chat_util | 67 import chat_util |
68 import traceback | 68 import traceback |
69 from wx.lib.expando import EVT_ETC_LAYOUT_NEEDED | |
69 | 70 |
70 from orpg.tools.validate import validate | 71 from orpg.tools.validate import validate |
71 from orpg.tools.orpg_settings import settings | 72 from orpg.tools.orpg_settings import settings |
72 from orpg.orpgCore import component | 73 from orpg.orpgCore import component |
73 from orpg.tools.orpg_log import logger | 74 from orpg.tools.orpg_log import logger |
556 self.defaultFilterName = 'No Filter' | 557 self.defaultFilterName = 'No Filter' |
557 self.advancedFilter = False | 558 self.advancedFilter = False |
558 self.lastSend = 0 # this is used to help implement the player typing indicator | 559 self.lastSend = 0 # this is used to help implement the player typing indicator |
559 self.lastPress = 0 # this is used to help implement the player typing indicator | 560 self.lastPress = 0 # this is used to help implement the player typing indicator |
560 self.Bind(wx.EVT_SIZE, self.OnSize) | 561 self.Bind(wx.EVT_SIZE, self.OnSize) |
562 self.Bind(EVT_ETC_LAYOUT_NEEDED, self.OnSize) #require to keep text at bottom of chat when text entry expands --SD | |
561 self.build_ctrls() | 563 self.build_ctrls() |
562 #openrpg dir | |
563 #self.root_dir = dir_struct["home"] #Removing! | |
564 # html font/fontsize is global to all the notebook tabs. | |
565 StartupFont = self.settings.get_setting("defaultfont") | 564 StartupFont = self.settings.get_setting("defaultfont") |
566 StartupFontSize = self.settings.get_setting("defaultfontsize") | 565 StartupFontSize = self.settings.get_setting("defaultfontsize") |
567 if(StartupFont != "") and (StartupFontSize != ""): | 566 if(StartupFont != "") and (StartupFontSize != ""): |
568 try: self.set_default_font(StartupFont, int(StartupFontSize)) | 567 try: self.set_default_font(StartupFont, int(StartupFontSize)) |
569 except: pass | 568 except: pass |