From 2038f0105dca615e24920bb945cf8ed77e088356 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 18 Jun 2021 12:25:58 +0800 Subject: [PATCH] bugfix --- kivyblocks/twosides.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kivyblocks/twosides.py b/kivyblocks/twosides.py index 1af288a..b454629 100644 --- a/kivyblocks/twosides.py +++ b/kivyblocks/twosides.py @@ -14,6 +14,7 @@ class TwoSides(WidgetReady, BoxLayout): self.portrait_widget = blocks.widgetBuild(portrait) self.on_size_task = None self.ready_task = None + self.register_event_type('on_interactive') def on_size(self,*args): if self.width >= self.height: @@ -24,4 +25,9 @@ class TwoSides(WidgetReady, BoxLayout): if not self.portrait_widget in self.children: self.clear_widgets() self.add_widget(self.portrait_widget) + self.dispatch('on_interactive') + + def on_interactive(self, *args): + pass +