crystalwindow 5.0__tar.gz → 5.1__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.
- {crystalwindow-5.0/crystalwindow.egg-info → crystalwindow-5.1}/PKG-INFO +1 -1
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gui.py +7 -4
- {crystalwindow-5.0 → crystalwindow-5.1/crystalwindow.egg-info}/PKG-INFO +1 -1
- {crystalwindow-5.0 → crystalwindow-5.1}/setup.py +1 -1
- {crystalwindow-5.0 → crystalwindow-5.1}/LICENSE +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/MANIFEST.in +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/README.md +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/FileHelper.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/Icons/default_icon.png +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/Icons/file_icons.png +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/__init__.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/ai.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/animation.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/assets.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/camera.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/chatvpn.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/clock.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/collision.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/color_handler.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/crystal3d.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/docs/getting_started.md +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/docs/index.md +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/draw_helpers.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/draw_rects.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/draw_text_helper.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/draw_tool.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/fun_helpers.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gametests/3dsquare.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gametests/__init__.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gametests/__main__.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gametests/gravitytest.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gametests/guitesting.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gametests/sandbox.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gametests/squaremove.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gametests/testtttagain.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gametests/windowtesting.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gravity.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/gui_ext.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/math.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/messagebus.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/objects.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/sprites.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/tilemap.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/ver_warner.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/websearch.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow/window.py +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow.egg-info/SOURCES.txt +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow.egg-info/dependency_links.txt +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow.egg-info/requires.txt +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/crystalwindow.egg-info/top_level.txt +0 -0
- {crystalwindow-5.0 → crystalwindow-5.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: crystalwindow
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.1
|
|
4
4
|
Summary: A Tkinter powered window + GUI toolkit made by Crystal (ME)! Easier apps, smoother UI and all-in-one helpers!, Gui, Buttons, FileHelper, Sprites, Animations, Colors, Math, Gravity, Camera, 3D and more!
|
|
5
5
|
Home-page: https://pypi.org/project/crystalwindow/
|
|
6
6
|
Author: CrystalBallyHereXD
|
|
@@ -16,13 +16,14 @@ def lerp_color(c1, c2, t):
|
|
|
16
16
|
|
|
17
17
|
# ----------------- GUI Elements -----------------
|
|
18
18
|
class Button:
|
|
19
|
-
def __init__(self,
|
|
19
|
+
def __init__(self, pos, size, text,
|
|
20
20
|
color=(200,200,200),
|
|
21
21
|
hover_color=(255,255,255),
|
|
22
22
|
press_color=(180,180,180),
|
|
23
23
|
text_color=(0,0,0)):
|
|
24
24
|
|
|
25
|
-
self.
|
|
25
|
+
self.pos = pos
|
|
26
|
+
self.size = size
|
|
26
27
|
self.text = text
|
|
27
28
|
|
|
28
29
|
self.color = color
|
|
@@ -45,7 +46,8 @@ class Button:
|
|
|
45
46
|
# ======================================
|
|
46
47
|
def update(self, win):
|
|
47
48
|
mx, my = win.mouse_pos
|
|
48
|
-
x, y
|
|
49
|
+
x, y = self.pos
|
|
50
|
+
w, h = self.size
|
|
49
51
|
|
|
50
52
|
# Reset transient states
|
|
51
53
|
self._clicked = False
|
|
@@ -94,7 +96,8 @@ class Button:
|
|
|
94
96
|
# DRAW
|
|
95
97
|
# ======================================
|
|
96
98
|
def draw(self, win):
|
|
97
|
-
x, y
|
|
99
|
+
x, y = self.pos
|
|
100
|
+
w, h = self.size
|
|
98
101
|
|
|
99
102
|
# choose color by state
|
|
100
103
|
if self._held:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: crystalwindow
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.1
|
|
4
4
|
Summary: A Tkinter powered window + GUI toolkit made by Crystal (ME)! Easier apps, smoother UI and all-in-one helpers!, Gui, Buttons, FileHelper, Sprites, Animations, Colors, Math, Gravity, Camera, 3D and more!
|
|
5
5
|
Home-page: https://pypi.org/project/crystalwindow/
|
|
6
6
|
Author: CrystalBallyHereXD
|
|
@@ -7,7 +7,7 @@ with open("README.md", encoding="utf-8") as f:
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name="crystalwindow",
|
|
10
|
-
version="5.
|
|
10
|
+
version="5.1", # Force metadata refresh
|
|
11
11
|
packages=find_packages(include=["crystalwindow", "crystalwindow.*"]),
|
|
12
12
|
|
|
13
13
|
include_package_data=True, # include package_data files
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|