StoryMaker-karjakak 1.0.6__py3-none-any.whl → 1.0.8__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.
@@ -13,6 +13,7 @@ from tkinter import (
13
13
  messagebox as mes
14
14
  )
15
15
  import webbrowser
16
+ import shutil
16
17
  from pathlib import Path
17
18
  from contextlib import chdir
18
19
  try:
@@ -200,7 +201,6 @@ class Bless:
200
201
 
201
202
  # 3rd of a story
202
203
  def s_story3(self):
203
-
204
204
  stc = self.docr[2]["scriptures"].get(self.asw)
205
205
  if stc:
206
206
  self.stbox.insert(END, f"\n\n{stc.upper()}")
@@ -282,10 +282,32 @@ class Bless:
282
282
  def trans(self, event = None):
283
283
  pass
284
284
 
285
+
286
+ def transfer_stories(path: Path, remove: bool = False):
287
+ stories_path = Path(__file__).parent.joinpath("stories")
288
+ if stories_path.exists():
289
+ if not path.exists():
290
+ path.mkdir()
291
+ if stories_path.joinpath("BlessingPro").exists() and not path.joinpath("BlessingPro").exists():
292
+ with chdir(stories_path):
293
+ shutil.copytree(stories_path.joinpath("BlessingPro"), path.joinpath("BlessingPro"))
294
+
295
+
285
296
  def main():
286
297
  pth = Path.home().joinpath("StoryMaker")
287
298
  begin = Tk()
288
299
  begin.withdraw()
300
+ try:
301
+ transfer_stories(pth)
302
+ except Exception as e:
303
+ mes.showinfo(
304
+ "Stories",
305
+ (
306
+ f"Could not transfer folder of stories, please do it manually from {
307
+ Path(__file__).parent.parent.joinpath("stories")
308
+ } to {pth}\n{e}!"
309
+ )
310
+ )
289
311
  ans = mes.askyesnocancel("Blessing Project", "Load story or Create story? (yes to load)")
290
312
  files = bool(list(pth.iterdir())) if pth.exists() else False
291
313
  if pth.exists() and files and ans:
story_maker/main_frame.py CHANGED
@@ -15,17 +15,16 @@ class MainFrame(Tk):
15
15
  super().__init__()
16
16
  self.stories = {"stories": {
17
17
  "begin": None,
18
- "first": "",
19
- "second": "",
18
+ "first": None,
19
+ "second": None,
20
20
  }}
21
21
  self.choices = {"choices":{
22
- "first": "",
23
- "second": "",
22
+ "first": None,
23
+ "second": None,
24
24
  }}
25
25
  self.title("Story Maker")
26
- self.scriptures = {"scriptures": ""}
26
+ self.scriptures = {"scriptures": None}
27
27
  self.path = Path("~").expanduser().joinpath("StoryMaker")
28
- self.checking_dir()
29
28
  self.combo_stories = StorySelection(self, self.path)
30
29
  self.combo_stories.combo_stories.bind("<<ComboboxSelected>>", self.load_formats, add=True)
31
30
  self.beginning = BeginningStory(self)
@@ -88,11 +87,6 @@ class MainFrame(Tk):
88
87
  self._scriptures()
89
88
  return isinstance(self.scriptures["scriptures"], dict)
90
89
 
91
- def checking_dir(self):
92
- if not self.path.exists():
93
- with chdir(self.path.parent):
94
- Path("StoryMaker").mkdir()
95
-
96
90
  def _reload_combo(self, load: bool = True):
97
91
  if load:
98
92
  self.combo_stories.reload()
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.4
2
+ Name: StoryMaker-karjakak
3
+ Version: 1.0.8
4
+ Summary: Story Maker for devotion and blessing for others.
5
+ Author: karjakak
6
+ Author-email: kakkarja.github@gmail.com
7
+ License: # BSD 3-Clause License
8
+
9
+ Copyright (c) 2025, KarjaKAK
10
+
11
+ Redistribution and use in source and binary forms, with or without
12
+ modification, are permitted provided that the following conditions are met:
13
+
14
+ 1. Redistributions of source code must retain the above copyright notice, this
15
+ list of conditions and the following disclaimer.
16
+
17
+ 2. Redistributions in binary form must reproduce the above copyright notice,
18
+ this list of conditions and the following disclaimer in the documentation
19
+ and/or other materials provided with the distribution.
20
+
21
+ 3. Neither the name of the copyright holder nor the names of its
22
+ contributors may be used to endorse or promote products derived from
23
+ this software without specific prior written permission.
24
+
25
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
29
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
+
36
+ Project-URL: Homepage, https://github.com/kakkarja/Story_Maker
37
+ Keywords: Story Maker,Interactive Story,Devotion,Story Reader,Stories
38
+ Classifier: Environment :: Win32 (MS Windows)
39
+ Classifier: Environment :: MacOS X
40
+ Classifier: Intended Audience :: End Users/Desktop
41
+ Classifier: Programming Language :: Python :: 3.10
42
+ Requires-Python: >=3.10
43
+ Description-Content-Type: text/markdown
44
+ License-File: LICENSE
45
+ Dynamic: license-file
46
+
47
+ # Create your devotion story and share to others as blessing ❤️
48
+
49
+ **Story Maker**
50
+
51
+ * Need to create a folder first by pressing the **save** button.
52
+ * Than click the folder.
53
+ * Inside the empty folder than start to make a story and **save**.
54
+ * The **'<'** button is going back to folders area.
55
+ * The **'>'** button is going back to files area.
56
+ * The **delete** button:
57
+ * Delete a file.
58
+ * Folder empty, wil delete the folder.
59
+ * Pressing ```Ctrl + D``` buttons will delete all contents of all fields.
60
+ > **WARNING!**
61
+ _Be careful not to delete everything before save it._
62
+ * You can edit existing story by click it, and it will loads to the story fields.
63
+
64
+ **NOTE:**
65
+ In the folders area, if press **save** button, will create another folder.
66
+
67
+ ## Free Stories to start reading
68
+
69
+ * BlessingPro → 4 stories
70
+ * In version 1.0.8
71
+ * **WARNING:** In case of firewall, please move it manually 🙏
72
+
73
+ **To start Story Maker:**
74
+
75
+ ```Terminal
76
+ # Mac-OS
77
+ % SMD
78
+
79
+ # Windows
80
+ > SMD
81
+ ```
82
+
83
+ ![starter](pictures/starter.png)
84
+
85
+ ![devotion](pictures/devotion.png)
86
+
87
+ ![devotion_complete](pictures/devotion_complete.png)
88
+
89
+ ![story_maker](pictures/story_maker.png)
@@ -1,6 +1,10 @@
1
1
  story_maker/__init__.py,sha256=4avG-PmZlHHRmaGC9t24J6_168oxQV1OVUZ_brCwmJY,66
2
- story_maker/blessing_pro.py,sha256=muomJOyHv5Klcf13HzmPr7n1tbXjK3J3NmjNI1OKCio,11366
3
- story_maker/main_frame.py,sha256=crtQFQFYw1ZLmXms6yraw1tNtj6NRdnEcaTJPqa5ofc,7675
2
+ story_maker/blessing_pro.py,sha256=mXDPuRW8yMrG50mo7Pr3-whS5yATMbIoPeoriBbV5NA,12164
3
+ story_maker/main_frame.py,sha256=KHeRPp7HSX6MVjmhuKLVym1UzWBWhLESFaCCDhPs5sM,7504
4
+ story_maker/stories/BlessingPro/BlessingPro1.zip,sha256=FfL7SwdvBcjvfhgwIcke88pu9ZL4zXsFdcRQIUtuw-Y,5042
5
+ story_maker/stories/BlessingPro/BlessingPro2.zip,sha256=YyC6XvyjqWyBYiaq-uPrDPK5qKL5NmYlbDs_6AyM3IU,4262
6
+ story_maker/stories/BlessingPro/BlessingPro3.zip,sha256=tJh7XKeIDIURD5Oglp25G9Sfn6GVkokn2A33HWel6v8,4906
7
+ story_maker/stories/BlessingPro/BlessingPro4.zip,sha256=x6bu5wj9xazTp7yknagtmupvo63RHsX30LiWkw5czFQ,5325
4
8
  story_maker/story_archive/__init__.py,sha256=0min7viIAejeqImuZkXoRnOiW_GyADI0eMD05wJAWe0,152
5
9
  story_maker/story_archive/choices.py,sha256=Se0Na-atlLtM1Kdwp2AiraM0G4C32XzjbzM_G6NtQVc,210
6
10
  story_maker/story_archive/story_archive.py,sha256=fEjRLPrQqgHtj-Hhi7vlAhkIYL_qHqOSABCj2FozGMw,3373
@@ -12,9 +16,9 @@ story_maker/story_structure/story_multiple_choices.py,sha256=wl7Cs5UBZk3lQOc-wmO
12
16
  story_maker/story_structure/story_multiple_stories.py,sha256=yI2uKeuHk-AiUq2yEqqVWHlMFAuOGvETX-_PA8H-eUY,2954
13
17
  story_maker/story_structure/story_save_delete_button.py,sha256=3zicQ99sH9L1fV0yfqxaRj0lFuHwNf9uRmuZFGgttDQ,989
14
18
  story_maker/story_structure/story_selection.py,sha256=0Dh8tG1ewIkMZqN_UDZ7NWfl9QLHMh9mc2cp4Xvv1e4,3482
15
- storymaker_karjakak-1.0.6.dist-info/licenses/LICENSE,sha256=gRQhGpfGCte8hnqWfQ9X2uX0eDN7vcJQGQTpcir1CDE,1495
16
- storymaker_karjakak-1.0.6.dist-info/METADATA,sha256=rtwKDHNFxx7VTP99OZt9IXnGvU6es32XmybzT5goLA4,1577
17
- storymaker_karjakak-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- storymaker_karjakak-1.0.6.dist-info/entry_points.txt,sha256=6RyZj0Dzcj0c6n0suj0f4v6n60dnA05EliC0FboTNnM,37
19
- storymaker_karjakak-1.0.6.dist-info/top_level.txt,sha256=IhfKMWKBfFdCPYLZSpNIYkbbOua0jHMZwxEZ96Y8ntI,12
20
- storymaker_karjakak-1.0.6.dist-info/RECORD,,
19
+ storymaker_karjakak-1.0.8.dist-info/licenses/LICENSE,sha256=Tx_dY6THeMrxnJqlX_OBdQPuANSV2P8UPGilX69jj4w,1497
20
+ storymaker_karjakak-1.0.8.dist-info/METADATA,sha256=lg0Sz4X1ymY6MRh6nihmp1ny88JZf8VsP0PD8jzKDjs,3496
21
+ storymaker_karjakak-1.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
22
+ storymaker_karjakak-1.0.8.dist-info/entry_points.txt,sha256=6RyZj0Dzcj0c6n0suj0f4v6n60dnA05EliC0FboTNnM,37
23
+ storymaker_karjakak-1.0.8.dist-info/top_level.txt,sha256=IhfKMWKBfFdCPYLZSpNIYkbbOua0jHMZwxEZ96Y8ntI,12
24
+ storymaker_karjakak-1.0.8.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
- BSD 3-Clause License
1
+ # BSD 3-Clause License
2
2
 
3
3
  Copyright (c) 2025, KarjaKAK
4
4
 
@@ -1,54 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: StoryMaker-karjakak
3
- Version: 1.0.6
4
- Summary: Story Maker for devotion and blessing for others.
5
- Author: karjakak
6
- Author-email: kakkarja.github@gmail.com
7
- License-Expression: BSD-3-Clause
8
- Project-URL: Homepage, https://github.com/kakkarja/Story_Maker
9
- Classifier: Environment :: Win32 (MS Windows)
10
- Classifier: Environment :: MacOS X
11
- Classifier: Intended Audience :: End Users/Desktop
12
- Classifier: Programming Language :: Python :: 3.10
13
- Requires-Python: >=3.10
14
- Description-Content-Type: text/markdown
15
- License-File: LICENSE
16
- Dynamic: license-file
17
-
18
- # Create your devotion story and share to others as blessing ❤️
19
-
20
- **Story Maker**
21
-
22
- * Need to create a folder first by pressing the **save** button.
23
- * Than click the folder.
24
- * Inside the empty folder than start to make a story and **save**.
25
- * The **'<'** button is going back to folders area.
26
- * The **'>'** button is going back to files area.
27
- * The **delete** button:
28
- * Delete a file.
29
- * Folder empty, wil delete the folder.
30
- * Pressing ```Ctrl + D``` buttons will delete all contents of all fields.
31
- > **WARNING!**
32
- _Be careful not to delete everything before save it._
33
- * You can edit existing story by click it, and it will loads to the story fields.
34
-
35
- **NOTE:**
36
- In the folders area, if press **save** button, will create another folder.
37
-
38
- **To start Story Maker:**
39
-
40
- ```Terminal
41
- # Mac-OS
42
- % SMD
43
-
44
- # Windows
45
- > SMD
46
- ```
47
-
48
- ![starter](pictures/starter.png)
49
-
50
- ![devotion](pictures/devotion.png)
51
-
52
- ![devotion_complete](pictures/devotion_complete.png)
53
-
54
- ![story_maker](pictures/story_maker.png)