Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

easygui text adventure in python 3

import easygui

choices = ['opt 1', 'opt2']
answer = easygui.choicebox('text', 'title', choices=choices)
if answer == 'opt 1':
  easygui.msgbox('text', 'title', ok_button="ok button")
elif answer == 'opt2':
  choices = ['opt1', 'opt 2']
  easygui.choicebox('text', 'title', choices=choices)
 
PREVIOUS NEXT
Tagged: #easygui #text #adventure #python
ADD COMMENT
Topic
Name
4+2 =