neelthee-mansion 3.23.17__py3-none-any.whl → 3.24.2__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.
- neelthee_mansion/utils.py +27 -8
- {neelthee_mansion-3.23.17.dist-info → neelthee_mansion-3.24.2.dist-info}/METADATA +3 -13
- {neelthee_mansion-3.23.17.dist-info → neelthee_mansion-3.24.2.dist-info}/RECORD +7 -7
- {neelthee_mansion-3.23.17.dist-info → neelthee_mansion-3.24.2.dist-info}/WHEEL +1 -1
- {neelthee_mansion-3.23.17.dist-info → neelthee_mansion-3.24.2.dist-info}/LICENSE.md +0 -0
- {neelthee_mansion-3.23.17.dist-info → neelthee_mansion-3.24.2.dist-info}/entry_points.txt +0 -0
- {neelthee_mansion-3.23.17.dist-info → neelthee_mansion-3.24.2.dist-info}/top_level.txt +0 -0
neelthee_mansion/utils.py
CHANGED
@@ -531,14 +531,33 @@ def loop_til_valid_input(
|
|
531
531
|
input_text: str,
|
532
532
|
bad_text: str,
|
533
533
|
Class: classmethod,
|
534
|
-
delay: int = 0.075,
|
535
|
-
input_method: str = ">",
|
536
534
|
):
|
537
|
-
|
535
|
+
def on_submit():
|
536
|
+
nonlocal input_value, valid_input
|
538
537
|
try:
|
539
|
-
|
540
|
-
|
541
|
-
|
538
|
+
input_value = Class(entry.get())
|
539
|
+
valid_input = True
|
540
|
+
input_window.destroy()
|
542
541
|
except ValueError:
|
543
|
-
|
544
|
-
|
542
|
+
error_label.config(text=bad_text)
|
543
|
+
|
544
|
+
input_value = None
|
545
|
+
valid_input = False
|
546
|
+
|
547
|
+
while not valid_input:
|
548
|
+
input_window = tk.Tk()
|
549
|
+
input_window.title("Input Window")
|
550
|
+
|
551
|
+
tk.Label(input_window, text=input_text).pack(padx=10, pady=5)
|
552
|
+
entry = tk.Entry(input_window)
|
553
|
+
entry.pack(padx=10, pady=5)
|
554
|
+
|
555
|
+
submit_button = tk.Button(input_window, text="Submit", command=on_submit)
|
556
|
+
submit_button.pack(padx=10, pady=10)
|
557
|
+
|
558
|
+
error_label = tk.Label(input_window, text="", fg="red")
|
559
|
+
error_label.pack(padx=10, pady=5)
|
560
|
+
|
561
|
+
input_window.mainloop()
|
562
|
+
|
563
|
+
return input_value
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
2
|
-
Name:
|
3
|
-
Version: 3.
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: neelthee-mansion
|
3
|
+
Version: 3.24.2
|
4
4
|
Summary: A text-based adventure game set in Neel-thee’s mansion.
|
5
5
|
Home-page: https://github.com/Flameblade375/neelthee_mansion
|
6
6
|
Author: Alexander.E.F
|
@@ -27,16 +27,6 @@ Requires-Dist: pandas
|
|
27
27
|
Requires-Dist: validators
|
28
28
|
Requires-Dist: dicttoxml
|
29
29
|
Requires-Dist: pytz
|
30
|
-
Dynamic: author
|
31
|
-
Dynamic: author-email
|
32
|
-
Dynamic: classifier
|
33
|
-
Dynamic: description
|
34
|
-
Dynamic: description-content-type
|
35
|
-
Dynamic: home-page
|
36
|
-
Dynamic: license
|
37
|
-
Dynamic: requires-dist
|
38
|
-
Dynamic: requires-python
|
39
|
-
Dynamic: summary
|
40
30
|
|
41
31
|
# Neel-thee's Mansion of Amnesia
|
42
32
|
|
@@ -7,10 +7,10 @@ neelthee_mansion/__main__.py,sha256=OIAWZ04le70DyjtR4hlmK9csHej7EHxeUrMoNnM-Vjc,
|
|
7
7
|
neelthee_mansion/all_game_utils.py,sha256=AnDB5LOawpk0tpnda801r2hAVMFJRq5gbHWkcMjLU3k,349
|
8
8
|
neelthee_mansion/creatures.py,sha256=XdRM5DJSnjAKXn4QskXKBf_YGvov26fX3XU1E2ww0zg,19722
|
9
9
|
neelthee_mansion/items.py,sha256=aGEkNUROf4WuLdsmoFYD-0BbJ984SODt73-8-_F1Z9Y,6672
|
10
|
-
neelthee_mansion/utils.py,sha256=
|
11
|
-
neelthee_mansion-3.
|
12
|
-
neelthee_mansion-3.
|
13
|
-
neelthee_mansion-3.
|
14
|
-
neelthee_mansion-3.
|
15
|
-
neelthee_mansion-3.
|
16
|
-
neelthee_mansion-3.
|
10
|
+
neelthee_mansion/utils.py,sha256=tHrXoTOU4_rXSPM48yKJuqotMFMoeEoWdanE5OgJvX4,14880
|
11
|
+
neelthee_mansion-3.24.2.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
|
12
|
+
neelthee_mansion-3.24.2.dist-info/METADATA,sha256=5jBMod6GVvuAfoK1wOVinUdzTTmv4Ewxopt3QZU4XQk,1756
|
13
|
+
neelthee_mansion-3.24.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
14
|
+
neelthee_mansion-3.24.2.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
|
15
|
+
neelthee_mansion-3.24.2.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
|
16
|
+
neelthee_mansion-3.24.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|