From fa0c2cac9e982e82dd7332567c52d1edf01efc92 Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Sun, 21 Feb 2021 17:07:20 -0500 Subject: [PATCH] handle a redraw! --- Adventure Game/adventure_game/GameNavigator.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Adventure Game/adventure_game/GameNavigator.py b/Adventure Game/adventure_game/GameNavigator.py index 81fd744..7e90d40 100644 --- a/Adventure Game/adventure_game/GameNavigator.py +++ b/Adventure Game/adventure_game/GameNavigator.py @@ -8,12 +8,17 @@ class QuitButton(npyscreen.ButtonPress): class SendButton(npyscreen.ButtonPress): def whenPressed(self): - self.parent.parentApp.switchForm('GAME') + self.parent.artContent.value = 'Undraw!' + #self.parent.parentApp.switchForm('GAME') + self.parent.artContent.display() class GameNavigator(npyscreen.FormBaseNew): # def afterEditing(self): #it self.parentApp.setNextForm('GAME') + def render(self): + self.artContent.value = 'Undraw!' + def create(self): top_division_height = 20 inventory_width = 20