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.
This commit is contained in:
Goffi 2020-02-09 23:50:21 +01:00
commit 5ef5f4aabf

View file

@ -17,12 +17,12 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from sat.core.i18n import _
from sat.core import log as logging
log = logging.getLogger(__name__)
from functools import total_ordering
import bisect
import urwid
from urwid_satext import sat_widgets
from sat.core.i18n import _
from sat.core import log as logging
from sat_frontends.quick_frontend import quick_widgets
from sat_frontends.quick_frontend import quick_chat
from sat_frontends.quick_frontend import quick_games
@ -31,8 +31,9 @@ from sat_frontends.primitivus.constants import Const as C
from sat_frontends.primitivus.keys import action_key_map as a_key
from sat_frontends.primitivus.widget import PrimitivusWidget
from sat_frontends.primitivus.contact_list import ContactList
from functools import total_ordering
import bisect
log = logging.getLogger(__name__)
OCCUPANTS_FOOTER = _("{} occupants")