Mercurial > libervia-backend
diff frontends/wix/chat.py @ 183:9ee4a1d0d7fb
Added auto(dis)connect params + misc
- parameters,xmlui: "bool" type is now managed
- parameters,xmlui: categories now use label in addition of name
- QuickFrontend: auto(dis)connection management
- plugin XEP-0045: an error dialog is now show in frontend if room cannot be joined
- Wix: fixed unproper close event management
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 18 Aug 2010 15:57:26 +0800 |
parents | a86607e5cf38 |
children | 31632472e857 |
line wrap: on
line diff
--- a/frontends/wix/chat.py Wed Aug 18 12:45:48 2010 +0800 +++ b/frontends/wix/chat.py Wed Aug 18 15:57:26 2010 +0800 @@ -188,9 +188,6 @@ def onClose(self, event): """Close event: we only hide the frame.""" event.Veto() - self.Show() ## this is a workaround to a wxpython bug: - ## with Raise on hidden frame, Hide doesn't work anymore - ## TODO: check this and repport bug to wxpython devs self.Hide() def onEnterPressed(self, event): @@ -222,9 +219,10 @@ self.chatWindow.AppendText("%s\n" % msg) if not mymess: #TODO: use notification system - self.RequestUserAttention() #FIXME: do this only if in background. - self.Show() #gof: FIXME: to check - #self.Raise() #FIXME: too intrusive + if not self.IsActive(): + self.RequestUserAttention() + if not self.IsShown(): + self.Show() ### events ###