comparison cagou/core/constants.py @ 312:772c170b47a9

Python3 port: /!\ Cagou now runs with Python 3.6+ Port has been done in the same way as for backend (check backend commit b2d067339de3 message for details).
author Goffi <goffi@goffi.org>
date Tue, 13 Aug 2019 19:14:22 +0200
parents f55b60659ec1
children e2b51663d8b8
comparison
equal deleted inserted replaced
311:a0d978d3ce84 312:772c170b47a9
20 from sat_frontends.quick_frontend import constants 20 from sat_frontends.quick_frontend import constants
21 import cagou 21 import cagou
22 22
23 23
24 class Const(constants.Const): 24 class Const(constants.Const):
25 APP_NAME = u"Cagou" 25 APP_NAME = "Cagou"
26 APP_VERSION = cagou.__version__ 26 APP_VERSION = cagou.__version__
27 LOG_OPT_SECTION = APP_NAME.lower() 27 LOG_OPT_SECTION = APP_NAME.lower()
28 CONFIG_SECTION = APP_NAME.lower() 28 CONFIG_SECTION = APP_NAME.lower()
29 WID_SELECTOR = u'selector' 29 WID_SELECTOR = 'selector'
30 ICON_SIZES = (u'small', u'medium') # small = 32, medium = 44 30 ICON_SIZES = ('small', 'medium') # small = 32, medium = 44
31 DEFAULT_WIDGET_ICON = u'{media}/misc/black.png' 31 DEFAULT_WIDGET_ICON = '{media}/misc/black.png'
32 32
33 PLUG_TYPE_WID = u'wid' 33 PLUG_TYPE_WID = 'wid'
34 PLUG_TYPE_TRANSFER = u'transfer' 34 PLUG_TYPE_TRANSFER = 'transfer'
35 35
36 TRANSFER_UPLOAD = u"upload" 36 TRANSFER_UPLOAD = "upload"
37 TRANSFER_SEND = u"send" 37 TRANSFER_SEND = "send"
38 38
39 COLOR_PRIM = (0.98, 0.98, 0.98, 1) 39 COLOR_PRIM = (0.98, 0.98, 0.98, 1)
40 COLOR_PRIM_LIGHT = (1, 1, 1, 1) 40 COLOR_PRIM_LIGHT = (1, 1, 1, 1)
41 COLOR_PRIM_DARK = (0.78, 0.78, 0.78, 1) 41 COLOR_PRIM_DARK = (0.78, 0.78, 0.78, 1)
42 COLOR_SEC = (0.27, 0.54, 1.0, 1) 42 COLOR_SEC = (0.27, 0.54, 1.0, 1)