npyscreen-adventure-game #8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue