From d3d59febc7d29cf06572c583027b92497ff4a38d Mon Sep 17 00:00:00 2001 From: Brady James Garvin <bgarvin@cse.unl.edu> Date: Wed, 13 Feb 2019 08:44:05 -0600 Subject: [PATCH] Chose more interesting output strings. --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index bfb5197..27adcac 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,7 @@ class OneTimeButton(Button): def on_press(self): self.disabled = True - print(self.index) + print(f'One-time {self.index}') class GuessingButton(Button): @@ -36,7 +36,7 @@ class DemoApp(App): for i in range(5): self.root.add_widget(OneTimeButton()) for i in range(5): - self.root.add_widget(GuessingButton(str(i))) + self.root.add_widget(GuessingButton(f'Guess {i}')) if __name__ == '__main__': -- GitLab