From 103da5c1d754194adaacc62ba319af1ef4c02853 Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Sun, 15 Dec 2024 17:00:44 +0100 Subject: [PATCH] Restructured folder structure again. --- wobbl_tools/pygame_tools/pgui/__init__.py | 1 + wobbl_tools/pygame_tools/pgui/widgets/__init__.py | 2 ++ wobbl_tools/pygame_tools/{ => pgui}/widgets/button.py | 2 +- wobbl_tools/pygame_tools/{ => pgui}/widgets/hover.py | 0 .../pygame_tools/{ => pgui}/widgets/multiline_text.py | 0 wobbl_tools/pygame_tools/{ => pgui}/widgets/text_button.py | 2 +- wobbl_tools/pygame_tools/{ => pgui}/widgets/text_input.py | 0 wobbl_tools/pygame_tools/widgets/__init__.py | 7 ------- 8 files changed, 5 insertions(+), 9 deletions(-) create mode 100644 wobbl_tools/pygame_tools/pgui/__init__.py create mode 100644 wobbl_tools/pygame_tools/pgui/widgets/__init__.py rename wobbl_tools/pygame_tools/{ => pgui}/widgets/button.py (92%) rename wobbl_tools/pygame_tools/{ => pgui}/widgets/hover.py (100%) rename wobbl_tools/pygame_tools/{ => pgui}/widgets/multiline_text.py (100%) rename wobbl_tools/pygame_tools/{ => pgui}/widgets/text_button.py (97%) rename wobbl_tools/pygame_tools/{ => pgui}/widgets/text_input.py (100%) delete mode 100644 wobbl_tools/pygame_tools/widgets/__init__.py diff --git a/wobbl_tools/pygame_tools/pgui/__init__.py b/wobbl_tools/pygame_tools/pgui/__init__.py new file mode 100644 index 0000000..a93a4bf --- /dev/null +++ b/wobbl_tools/pygame_tools/pgui/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/python3 diff --git a/wobbl_tools/pygame_tools/pgui/widgets/__init__.py b/wobbl_tools/pygame_tools/pgui/widgets/__init__.py new file mode 100644 index 0000000..ecf7241 --- /dev/null +++ b/wobbl_tools/pygame_tools/pgui/widgets/__init__.py @@ -0,0 +1,2 @@ +#!/usr/bin/python3 + diff --git a/wobbl_tools/pygame_tools/widgets/button.py b/wobbl_tools/pygame_tools/pgui/widgets/button.py similarity index 92% rename from wobbl_tools/pygame_tools/widgets/button.py rename to wobbl_tools/pygame_tools/pgui/widgets/button.py index fff8bf8..dbd071b 100644 --- a/wobbl_tools/pygame_tools/widgets/button.py +++ b/wobbl_tools/pygame_tools/pgui/widgets/button.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 from wobbl_tools.pygame_tools.utils import * -from wobbl_tools.pygame_tools.widgets import Hover +from wobbl_tools.pygame_tools.pgui.widgets import Hover class Button: diff --git a/wobbl_tools/pygame_tools/widgets/hover.py b/wobbl_tools/pygame_tools/pgui/widgets/hover.py similarity index 100% rename from wobbl_tools/pygame_tools/widgets/hover.py rename to wobbl_tools/pygame_tools/pgui/widgets/hover.py diff --git a/wobbl_tools/pygame_tools/widgets/multiline_text.py b/wobbl_tools/pygame_tools/pgui/widgets/multiline_text.py similarity index 100% rename from wobbl_tools/pygame_tools/widgets/multiline_text.py rename to wobbl_tools/pygame_tools/pgui/widgets/multiline_text.py diff --git a/wobbl_tools/pygame_tools/widgets/text_button.py b/wobbl_tools/pygame_tools/pgui/widgets/text_button.py similarity index 97% rename from wobbl_tools/pygame_tools/widgets/text_button.py rename to wobbl_tools/pygame_tools/pgui/widgets/text_button.py index d1491d5..15f2891 100644 --- a/wobbl_tools/pygame_tools/widgets/text_button.py +++ b/wobbl_tools/pygame_tools/pgui/widgets/text_button.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 from wobbl_tools.pygame_tools.utils import * -from wobbl_tools.pygame_tools.widgets import Button +from wobbl_tools.pygame_tools.pgui.widgets import Button class TextButton(pygame.sprite.Sprite): diff --git a/wobbl_tools/pygame_tools/widgets/text_input.py b/wobbl_tools/pygame_tools/pgui/widgets/text_input.py similarity index 100% rename from wobbl_tools/pygame_tools/widgets/text_input.py rename to wobbl_tools/pygame_tools/pgui/widgets/text_input.py diff --git a/wobbl_tools/pygame_tools/widgets/__init__.py b/wobbl_tools/pygame_tools/widgets/__init__.py deleted file mode 100644 index e778ec5..0000000 --- a/wobbl_tools/pygame_tools/widgets/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/python3 - -from wobbl_tools.pygame_tools.widgets.hover import Hover -from wobbl_tools.pygame_tools.widgets.button import Button -from wobbl_tools.pygame_tools.widgets.text_button import TextButton -from wobbl_tools.pygame_tools.widgets.text_input import TextInput -from wobbl_tools.pygame_tools.widgets.multiline_text import MultilineText