StoryMaker-karjakak 1.0.7__tar.gz → 1.0.8__tar.gz

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.
Files changed (33) hide show
  1. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/LICENSE +1 -1
  2. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/PKG-INFO +8 -2
  3. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/README.md +6 -0
  4. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/StoryMaker_karjakak.egg-info/PKG-INFO +8 -2
  5. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/StoryMaker_karjakak.egg-info/SOURCES.txt +4 -8
  6. storymaker_karjakak-1.0.8/StoryMaker_karjakak.egg-info/top_level.txt +4 -0
  7. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/pyproject.toml +2 -2
  8. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/blessing_pro.py +12 -10
  9. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/main_frame.py +5 -11
  10. storymaker_karjakak-1.0.7/StoryMaker_karjakak.egg-info/top_level.txt +0 -5
  11. storymaker_karjakak-1.0.7/pictures/devotion.png +0 -0
  12. storymaker_karjakak-1.0.7/pictures/devotion_complete.png +0 -0
  13. storymaker_karjakak-1.0.7/pictures/starter.png +0 -0
  14. storymaker_karjakak-1.0.7/pictures/story_maker.png +0 -0
  15. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/StoryMaker_karjakak.egg-info/dependency_links.txt +0 -0
  16. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/StoryMaker_karjakak.egg-info/entry_points.txt +0 -0
  17. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/setup.cfg +0 -0
  18. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/__init__.py +0 -0
  19. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8/story_maker}/stories/BlessingPro/BlessingPro1.zip +0 -0
  20. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8/story_maker}/stories/BlessingPro/BlessingPro2.zip +0 -0
  21. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8/story_maker}/stories/BlessingPro/BlessingPro3.zip +0 -0
  22. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8/story_maker}/stories/BlessingPro/BlessingPro4.zip +0 -0
  23. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/story_archive/__init__.py +0 -0
  24. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/story_archive/choices.py +0 -0
  25. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/story_archive/story_archive.py +0 -0
  26. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/story_archive/story_data.py +0 -0
  27. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/story_archive/story_load.py +0 -0
  28. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/story_structure/__init__.py +0 -0
  29. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/story_structure/story_beginning.py +0 -0
  30. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/story_structure/story_multiple_choices.py +0 -0
  31. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/story_structure/story_multiple_stories.py +0 -0
  32. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/story_structure/story_save_delete_button.py +0 -0
  33. {storymaker_karjakak-1.0.7 → storymaker_karjakak-1.0.8}/story_maker/story_structure/story_selection.py +0 -0
@@ -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,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: StoryMaker-karjakak
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary: Story Maker for devotion and blessing for others.
5
5
  Author: karjakak
6
6
  Author-email: kakkarja.github@gmail.com
7
- License: BSD 3-Clause License
7
+ License: # BSD 3-Clause License
8
8
 
9
9
  Copyright (c) 2025, KarjaKAK
10
10
 
@@ -64,6 +64,12 @@ Dynamic: license-file
64
64
  **NOTE:**
65
65
  In the folders area, if press **save** button, will create another folder.
66
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
+
67
73
  **To start Story Maker:**
68
74
 
69
75
  ```Terminal
@@ -18,6 +18,12 @@
18
18
  **NOTE:**
19
19
  In the folders area, if press **save** button, will create another folder.
20
20
 
21
+ ## Free Stories to start reading
22
+
23
+ * BlessingPro → 4 stories
24
+ * In version 1.0.8
25
+ * **WARNING:** In case of firewall, please move it manually 🙏
26
+
21
27
  **To start Story Maker:**
22
28
 
23
29
  ```Terminal
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: StoryMaker-karjakak
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary: Story Maker for devotion and blessing for others.
5
5
  Author: karjakak
6
6
  Author-email: kakkarja.github@gmail.com
7
- License: BSD 3-Clause License
7
+ License: # BSD 3-Clause License
8
8
 
9
9
  Copyright (c) 2025, KarjaKAK
10
10
 
@@ -64,6 +64,12 @@ Dynamic: license-file
64
64
  **NOTE:**
65
65
  In the folders area, if press **save** button, will create another folder.
66
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
+
67
73
  **To start Story Maker:**
68
74
 
69
75
  ```Terminal
@@ -6,17 +6,13 @@ StoryMaker_karjakak.egg-info/SOURCES.txt
6
6
  StoryMaker_karjakak.egg-info/dependency_links.txt
7
7
  StoryMaker_karjakak.egg-info/entry_points.txt
8
8
  StoryMaker_karjakak.egg-info/top_level.txt
9
- pictures/devotion.png
10
- pictures/devotion_complete.png
11
- pictures/starter.png
12
- pictures/story_maker.png
13
- stories/BlessingPro/BlessingPro1.zip
14
- stories/BlessingPro/BlessingPro2.zip
15
- stories/BlessingPro/BlessingPro3.zip
16
- stories/BlessingPro/BlessingPro4.zip
17
9
  story_maker/__init__.py
18
10
  story_maker/blessing_pro.py
19
11
  story_maker/main_frame.py
12
+ story_maker/stories/BlessingPro/BlessingPro1.zip
13
+ story_maker/stories/BlessingPro/BlessingPro2.zip
14
+ story_maker/stories/BlessingPro/BlessingPro3.zip
15
+ story_maker/stories/BlessingPro/BlessingPro4.zip
20
16
  story_maker/story_archive/__init__.py
21
17
  story_maker/story_archive/choices.py
22
18
  story_maker/story_archive/story_archive.py
@@ -0,0 +1,4 @@
1
+ Archive_Story_Maker
2
+ dist
3
+ pictures
4
+ story_maker
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "StoryMaker-karjakak"
7
- version = "1.0.7"
7
+ version = "1.0.8"
8
8
  requires-python = ">=3.10"
9
9
  authors = [
10
10
  {name = "karjakak"},
@@ -37,4 +37,4 @@ SMD = "story_maker:main"
37
37
  where = ["."]
38
38
 
39
39
  [tool.setuptools.package-data]
40
- "*" = ["*.png", "*.zip"]
40
+ "*" = ["*.zip"]
@@ -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()}")
@@ -283,13 +283,15 @@ class Bless:
283
283
  pass
284
284
 
285
285
 
286
- def transfer_stories(path: Path):
287
- stories_path = Path(__file__).parent.parent.joinpath("stories")
288
- if not path.exists():
289
- path.mkdir()
290
- if stories_path.joinpath("BlessingPro").exists():
291
- with chdir(stories_path):
292
- stories_path.joinpath("BlessingPro").rename(path.joinpath("BlessingPro"))
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
+
293
295
 
294
296
  def main():
295
297
  pth = Path.home().joinpath("StoryMaker")
@@ -297,13 +299,13 @@ def main():
297
299
  begin.withdraw()
298
300
  try:
299
301
  transfer_stories(pth)
300
- except:
302
+ except Exception as e:
301
303
  mes.showinfo(
302
304
  "Stories",
303
305
  (
304
306
  f"Could not transfer folder of stories, please do it manually from {
305
307
  Path(__file__).parent.parent.joinpath("stories")
306
- } to {pth}!"
308
+ } to {pth}\n{e}!"
307
309
  )
308
310
  )
309
311
  ans = mes.askyesnocancel("Blessing Project", "Load story or Create story? (yes to load)")
@@ -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()
@@ -1,5 +0,0 @@
1
- Archive_story_maker
2
- dist
3
- pictures
4
- stories
5
- story_maker