Skip to content

Commit 373f5ba

Browse files
committed
Compiled C extensions on Mac
1 parent af2066e commit 373f5ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+15
-7
lines changed

Examples/HelloWorld.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
subtitle.glide(0, 0, time=5)
1616
subtitle.glide_to_y(300, time=10, easing=py_ease_circle_out())
1717

18-
while True: # The Mainloop
18+
while window.is_open(): # The Mainloop
1919
window.update() # Updating the Window

README.md

Lines changed: 3 additions & 1 deletion

goopylib/Window.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def __init__(self, title="New Goopylib Window", width=800, height=600, min_width
291291
master.lift() # No idea what this does, does anyone know?
292292
Window.instances.append(self)
293293

294+
_root.update_idletasks()
294295
self.set_coords(0, 0, width, height)
295296

296297
if remove_title_bar:
@@ -1037,8 +1038,10 @@ def set_coords(self, x1, y1, x2, y2):
10371038
if not ((isinstance(x1, int) or isinstance(x1, float)) and (isinstance(y1, int) or isinstance(y1, float)) and
10381039
(isinstance(x2, int) or isinstance(x2, float)) and (isinstance(y2, int) or isinstance(y2, float))):
10391040
raise GraphicsError("\n\nCoordinate Arguments must be numbers (integers or floats)")
1041+
print(self.get_width(), self.get_height())
10401042
self.trans = Transform(self.get_width(), self.get_height(), x1, y2, x2, y1)
10411043
self.center = [abs((x2 - x1) / 2), abs((y2 - y1) / 2)]
1044+
10421045
return self
10431046

10441047
# OTHER WINDOW FUNCTIONS
-11 Bytes
Binary file not shown.
31 Bytes
Binary file not shown.
-11 Bytes
Binary file not shown.
Binary file not shown.
-11 Bytes
Binary file not shown.
-11 Bytes
Binary file not shown.
-11 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)