StoryMaker-karjakak 1.0.3__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.3
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
@@ -11,6 +11,8 @@ Classifier: Intended Audience :: End Users/Desktop
11
11
  Classifier: Programming Language :: Python :: 3.10
12
12
  Requires-Python: >=3.10
13
13
  Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Dynamic: license-file
14
16
 
15
17
  # Create your devotion story and share to others as blessing ❤️
16
18
 
@@ -30,7 +32,17 @@ Description-Content-Type: text/markdown
30
32
  * You can edit existing story by click it, and it will loads to the story fields.
31
33
 
32
34
  **NOTE:**
33
- In the folders area, if press **save** button, will create another folder.
35
+ In the folders area, if press **save** button, will create another folder.
36
+
37
+ **To start Story Maker:**
38
+
39
+ ```Terminal
40
+ # Mac-OS
41
+ % SMD
42
+
43
+ # Windows
44
+ > SMD
45
+ ```
34
46
 
35
47
  ![starter](pictures/starter.png)
36
48
 
@@ -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,8 +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.3.dist-info/METADATA,sha256=8wyvaviDaytjNa7kO5aNqateEdpVynbYIT3CexJ0gWg,1440
16
- storymaker_karjakak-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- storymaker_karjakak-1.0.3.dist-info/entry_points.txt,sha256=6RyZj0Dzcj0c6n0suj0f4v6n60dnA05EliC0FboTNnM,37
18
- storymaker_karjakak-1.0.3.dist-info/top_level.txt,sha256=IhfKMWKBfFdCPYLZSpNIYkbbOua0jHMZwxEZ96Y8ntI,12
19
- storymaker_karjakak-1.0.3.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,,
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2025, KarjaKAK
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.