npyscreen-adventure-game #8
|
@ -8,12 +8,17 @@ class QuitButton(npyscreen.ButtonPress):
|
||||||
|
|
||||||
class SendButton(npyscreen.ButtonPress):
|
class SendButton(npyscreen.ButtonPress):
|
||||||
def whenPressed(self):
|
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):
|
class GameNavigator(npyscreen.FormBaseNew):
|
||||||
# def afterEditing(self):
|
# def afterEditing(self):
|
||||||
#it self.parentApp.setNextForm('GAME')
|
#it self.parentApp.setNextForm('GAME')
|
||||||
|
|
||||||
|
def render(self):
|
||||||
|
self.artContent.value = 'Undraw!'
|
||||||
|
|
||||||
def create(self):
|
def create(self):
|
||||||
top_division_height = 20
|
top_division_height = 20
|
||||||
inventory_width = 20
|
inventory_width = 20
|
||||||
|
|
Loading…
Reference in New Issue