From 86cacfdf0cdf36802364db6ba017fd04e0b6fc37 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 14 Nov 2020 07:49:44 +0800 Subject: [PATCH] bugfix --- kivyblocks/doubleface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivyblocks/doubleface.py b/kivyblocks/doubleface.py index d11b93a..6d6bdea 100644 --- a/kivyblocks/doubleface.py +++ b/kivyblocks/doubleface.py @@ -45,7 +45,7 @@ class DoubleFace(WidgetReady, BoxLayout): if not self.landscape_built or not self.portrait_built: if not self.on_size_task is None: self.on_size_task.cancel() - self.on_size_task.schedule_once(self.on_size,0.2) + self.on_size_task = Clock.schedule_once(self.on_size,0.2) return if self.width >= self.height: if not self.landscape_widget in self.children: