StoryMaker-karjakak 1.0.4__py3-none-any.whl → 1.0.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -180,25 +180,27 @@ class Bless:
180
180
  with chdir(self.combo.path):
181
181
  self.docr.extend(StoryFilesLoads(self.combo.path).data_extract(story))
182
182
 
183
+ def _choices(self, begin: bool = True):
184
+ return [
185
+ f"{k}. {v}" for k, v in self.docr[1]["choices"]["first" if begin else "second"].items()
186
+ ]
187
+
183
188
  # Starting first part of a story
184
189
  def s_story1(self):
185
190
  self.stbox.insert("1.0", f"{self.docr[0]["stories"]["begin"]}\n\n")
186
- for i in [
187
- f"{k}. {v}" for k, v in self.docr[1]["choices"]["first"].items()
188
- ]:
191
+ for i in self._choices():
189
192
  self.stbox.insert(END, i+'\n')
190
193
 
191
194
  # 2nd part of a story
192
195
  def s_story2(self):
193
196
  self.stbox.insert(END, '\n')
194
- for i in [
195
- f"{k}. {v}" for k, v in self.docr[1]["choices"]["second"].items()
196
- ]:
197
+ for i in self._choices(False):
197
198
  self.stbox.insert(END, '\n' + i )
198
199
  self.st1.set(1)
199
200
 
200
201
  # 3rd of a story
201
202
  def s_story3(self):
203
+
202
204
  stc = self.docr[2]["scriptures"].get(self.asw)
203
205
  if stc:
204
206
  self.stbox.insert(END, f"\n\n{stc.upper()}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: StoryMaker-karjakak
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: Story Maker for devotion and blessing for others.
5
5
  Author-email: karjakak <kakkarja.github@gmail.com>
6
6
  License-Expression: BSD-3-Clause
@@ -1,5 +1,5 @@
1
1
  story_maker/__init__.py,sha256=4avG-PmZlHHRmaGC9t24J6_168oxQV1OVUZ_brCwmJY,66
2
- story_maker/blessing_pro.py,sha256=3F8Nyo2lltf6kzHHV2xTK-0p1_PLp-dRNxkDLRfkfq0,11332
2
+ story_maker/blessing_pro.py,sha256=muomJOyHv5Klcf13HzmPr7n1tbXjK3J3NmjNI1OKCio,11366
3
3
  story_maker/main_frame.py,sha256=crtQFQFYw1ZLmXms6yraw1tNtj6NRdnEcaTJPqa5ofc,7675
4
4
  story_maker/story_archive/__init__.py,sha256=0min7viIAejeqImuZkXoRnOiW_GyADI0eMD05wJAWe0,152
5
5
  story_maker/story_archive/choices.py,sha256=Se0Na-atlLtM1Kdwp2AiraM0G4C32XzjbzM_G6NtQVc,210
@@ -12,9 +12,9 @@ story_maker/story_structure/story_multiple_choices.py,sha256=wl7Cs5UBZk3lQOc-wmO
12
12
  story_maker/story_structure/story_multiple_stories.py,sha256=yI2uKeuHk-AiUq2yEqqVWHlMFAuOGvETX-_PA8H-eUY,2954
13
13
  story_maker/story_structure/story_save_delete_button.py,sha256=3zicQ99sH9L1fV0yfqxaRj0lFuHwNf9uRmuZFGgttDQ,989
14
14
  story_maker/story_structure/story_selection.py,sha256=0Dh8tG1ewIkMZqN_UDZ7NWfl9QLHMh9mc2cp4Xvv1e4,3482
15
- storymaker_karjakak-1.0.4.dist-info/licenses/LICENSE,sha256=gRQhGpfGCte8hnqWfQ9X2uX0eDN7vcJQGQTpcir1CDE,1495
16
- storymaker_karjakak-1.0.4.dist-info/METADATA,sha256=pES1AJzUxxUUR5xYJltaMn4boFm07D_ieaMCk9gvk8o,1571
17
- storymaker_karjakak-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- storymaker_karjakak-1.0.4.dist-info/entry_points.txt,sha256=6RyZj0Dzcj0c6n0suj0f4v6n60dnA05EliC0FboTNnM,37
19
- storymaker_karjakak-1.0.4.dist-info/top_level.txt,sha256=IhfKMWKBfFdCPYLZSpNIYkbbOua0jHMZwxEZ96Y8ntI,12
20
- storymaker_karjakak-1.0.4.dist-info/RECORD,,
15
+ storymaker_karjakak-1.0.5.dist-info/licenses/LICENSE,sha256=gRQhGpfGCte8hnqWfQ9X2uX0eDN7vcJQGQTpcir1CDE,1495
16
+ storymaker_karjakak-1.0.5.dist-info/METADATA,sha256=IN6W1prjAEd9SjZqBMa4og7elGqEQYjan6KLcuqQMY8,1571
17
+ storymaker_karjakak-1.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ storymaker_karjakak-1.0.5.dist-info/entry_points.txt,sha256=6RyZj0Dzcj0c6n0suj0f4v6n60dnA05EliC0FboTNnM,37
19
+ storymaker_karjakak-1.0.5.dist-info/top_level.txt,sha256=IhfKMWKBfFdCPYLZSpNIYkbbOua0jHMZwxEZ96Y8ntI,12
20
+ storymaker_karjakak-1.0.5.dist-info/RECORD,,