-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.py
31 lines (24 loc) · 836 Bytes
/
model.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class Script(object):
def __init__(self, story, scene, line, character, text_color) -> None:
super().__init__()
self.story = story
self.scene = scene
self.line = line
self.character = character
self.text_color = text_color
def __str__(self) -> str:
return self.story
def return_scene(self):
return self.scene
def return_line(self):
return self.line
def return_character(self):
return self.character
def return_text_color(self):
return self.text_color
def file(self):
line = self.story + ', ' + self.scene + ', ' + self.character + ', ' + self.line
return line
def show_script(self):
text = self.story + '\n' + self.scene + ' - ' + self.character + ': ' + self.line
return text