From 743c6290f028bd954d7351c66014e187287c52ed Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 31 Jan 2021 18:28:03 +0800 Subject: [PATCH] bugfix --- kivyblocks/date_picker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivyblocks/date_picker.py b/kivyblocks/date_picker.py index 4249f6f..4a0bb5c 100644 --- a/kivyblocks/date_picker.py +++ b/kivyblocks/date_picker.py @@ -324,7 +324,7 @@ class MDDatePicker(FloatLayout, ThemableBehavior, RectangularElevationBehavior, self.cal_list = cal_list def change_month(self, operation): - op = 1 if operation is 'next' else -1 + op = 1 if operation == 'next' else -1 sl, sy = self.month, self.year m = 12 if sl + op == 0 else 1 if sl + op == 13 else sl + op y = sy - 1 if sl + op == 0 else sy + 1 if sl + op == 13 else sy