Mercurial > libervia-backend
view frontends/wix/constants.py @ 192:879beacb8e16
Primitivus: major changes in SelectableText, menu can now be used with mouse, TabsContainer show wich tab is selected
- SelectableText is a WidgetWrap of urwid.Text, and manage attributes and complexe combination like urwid.Text (list of tuples (attribute,text))
- Menu now use a ColumnsRoller, and can't anymore be displayed on 2 rows, avoiding potential bug when display MenuBox
- Mouse can be used in menu. Right click on MenuBox make it disappear
- Tab container now display which tab is selected by putting a 'title' attribute on the corresponding button
/!\ as SelectableText is heavily used, there can be regressions
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 19 Aug 2010 21:11:22 +0800 |
parents | 1438a1337732 |
children |
line wrap: on
line source
import sys import __builtin__ __builtin__.__dict__['APP_NAME'] = "Wix" __builtin__.__dict__['LICENCE_PATH'] = "../../COPYING" __builtin__.__dict__['IMAGE_DIR'] = sys.path[0]+'/images' __builtin__.__dict__['msgOFFLINE'] = _("offline") __builtin__.__dict__['msgONLINE'] = _("online") __builtin__.__dict__['const_DEFAULT_GROUP'] = "Unclassed" __builtin__.__dict__['const_STATUS'] = [("", _("Online"), None), ("chat", _("Free for chat"), "green"), ("away", _("AFK"), "brown"), ("dnd", _("DND"), "red"), ("xa", _("Away"), "red")]