From 3a20081f39731b9e5be916b647dee32aeb1870a5 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 14 Nov 2020 07:59:16 +0800 Subject: [PATCH] bugfix --- kivyblocks/doubleface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kivyblocks/doubleface.py b/kivyblocks/doubleface.py index 49b100e..cb97b9a 100644 --- a/kivyblocks/doubleface.py +++ b/kivyblocks/doubleface.py @@ -49,11 +49,11 @@ class DoubleFace(WidgetReady, BoxLayout): return if self.width >= self.height: if not self.landscape_widget in self.children: - self.clear_widget() + self.clear_widgets() self.add_widget(self.landscape_widget) else: if not self.portrait_widget in self.children: - self.clear_widget() + self.clear_widgets() self.add_widget(self.portrait_widget)