annotate 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 |
|
rev |
line source |
72
|
1 import sys |
|
2 import __builtin__ |
|
3 |
191
|
4 __builtin__.__dict__['APP_NAME'] = "Wix" |
|
5 __builtin__.__dict__['LICENCE_PATH'] = "../../COPYING" |
72
|
6 __builtin__.__dict__['IMAGE_DIR'] = sys.path[0]+'/images' |
|
7 |
|
8 __builtin__.__dict__['msgOFFLINE'] = _("offline") |
|
9 __builtin__.__dict__['msgONLINE'] = _("online") |
|
10 __builtin__.__dict__['const_DEFAULT_GROUP'] = "Unclassed" |
|
11 __builtin__.__dict__['const_STATUS'] = [("", _("Online"), None), |
|
12 ("chat", _("Free for chat"), "green"), |
|
13 ("away", _("AFK"), "brown"), |
|
14 ("dnd", _("DND"), "red"), |
|
15 ("xa", _("Away"), "red")] |