its-a-date/user.py

22 lines
633 B
Python
Raw Normal View History

2024-11-14 23:26:28 +01:00
from Toolbox import *
from Texte import *
class User:
def __init__(self):
self.name = askUser(ask_name)
self.age = askUserInt(ask_age)
print(ask_sexual_preference)
self.preference = wähleAusListe([gender_male, gender_female, gender_other])
def __str__(self):
return self.name + str(self.age) + self.preference
def do_action(self, action):
if action == action_ask_age:
print(blue(ask_age))
elif action == action_throw_book:
print(blue(situation_throw_book))
elif action == action_introduce_self:
print(blue("Hallo"))