comparison sat_frontends/primitivus/chat.py @ 3159:30e08d904208

quick_frontend (app, widget): CagouWidget.onSelected is called when the widget is selected: A property is now used to manage `selected_widget` in QuickApp, and widget's onSelected method is called when suitable.
author Goffi <goffi@goffi.org>
date Sun, 09 Feb 2020 23:50:21 +0100
parents 559a625a236b
children 1c6dacbfcf27
comparison
equal deleted inserted replaced
3158:6032245c927e 3159:30e08d904208
15 # GNU Affero General Public License for more details. 15 # GNU Affero General Public License for more details.
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 from functools import total_ordering
21 import bisect
22 import urwid
23 from urwid_satext import sat_widgets
20 from sat.core.i18n import _ 24 from sat.core.i18n import _
21 from sat.core import log as logging 25 from sat.core import log as logging
22
23 log = logging.getLogger(__name__)
24 import urwid
25 from urwid_satext import sat_widgets
26 from sat_frontends.quick_frontend import quick_widgets 26 from sat_frontends.quick_frontend import quick_widgets
27 from sat_frontends.quick_frontend import quick_chat 27 from sat_frontends.quick_frontend import quick_chat
28 from sat_frontends.quick_frontend import quick_games 28 from sat_frontends.quick_frontend import quick_games
29 from sat_frontends.primitivus import game_tarot 29 from sat_frontends.primitivus import game_tarot
30 from sat_frontends.primitivus.constants import Const as C 30 from sat_frontends.primitivus.constants import Const as C
31 from sat_frontends.primitivus.keys import action_key_map as a_key 31 from sat_frontends.primitivus.keys import action_key_map as a_key
32 from sat_frontends.primitivus.widget import PrimitivusWidget 32 from sat_frontends.primitivus.widget import PrimitivusWidget
33 from sat_frontends.primitivus.contact_list import ContactList 33 from sat_frontends.primitivus.contact_list import ContactList
34 from functools import total_ordering 34
35 import bisect 35
36 log = logging.getLogger(__name__)
36 37
37 38
38 OCCUPANTS_FOOTER = _("{} occupants") 39 OCCUPANTS_FOOTER = _("{} occupants")
39 40
40 41