Skip to content

Commit e63923f

Browse files
committed
Version 1.1.135-142
* Fixed bug with the default Image Texture path being `textures_other/` instead of `textures/` * Fixed bug with every `GraphicsObject` entering an infinite loop when the user sets the objects' layer to not 0 * Added `animate_resize()` and `animate_resize_factor()` functions to the `GraphicsObject` class * Added a `get_state()` function to the `RadioButton` class * You can now specify custom bounds for a `Checkbox` instance * Fixed bug with the Text object's `is_clicked()` function not working properly when the text is not center-aligned * Fixed bug with the `GraphicsObject` class raising an error when you try to destroy an object twice * Added a `set_state()` function to the `RadioButton` class
1 parent 6e802c7 commit e63923f

File tree

91 files changed

+210
-38
lines changed

Some content is hidden

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

91 files changed

+210
-38
lines changed

Examples/ModernUI-LoginPage Example/ModernGUI-Example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from goopylib.imports import *
22

33
"""
4-
Textures have been designed by Freepik, https://www.freepik.com/free-vector/modern-web-design-button-collection-with-flat-design_3099377.htm
4+
textures have been designed by Freepik, https://www.freepik.com/free-vector/modern-web-design-button-collection-with-flat-design_3099377.htm
55
66
This is a very simple program that creates a modern, light, login page which demonstrates the
77
capabilities of using Checkboxes, Entries, and Buttons.
@@ -23,7 +23,7 @@
2323
password_entry = Entry(Point(360, 600), 24, fill=WHITE, font_face="century gothic", justify="left", font_colour=LIGHT_GREY,
2424
font_size=30, prompt_text="Password", password=True).draw()
2525

26-
# Creating the options tab. The Enter & Settings button are checkboxes too because we want to display different textures based on 2 states: register or signin
26+
# Creating the options tab. The Enter & Settings button are checkboxes too because we want to display different textures_other based on 2 states: register or signin
2727
# A checkbox takes 2 graphics: true & false
2828

2929
# Here, we specify the first graphic (true) to be a button. A button also takes in a graphic to display which can be any other Graphics Object.
@@ -61,7 +61,7 @@
6161
# The mainloop
6262
while True:
6363
background.set_state(options_tab.get_state())
64-
enter_button.set_state(options_tab.get_state()) # Updating the textures of these checkboxes to be that of the OptionsTab
64+
enter_button.set_state(options_tab.get_state()) # Updating the textures_other of these checkboxes to be that of the OptionsTab
6565
settings_button.set_state(options_tab.get_state())
6666

6767
mouse_pos = window.check_left_mouse_click() # Getting the position of a mouse click if there was one

README.md

Lines changed: 15 additions & 1 deletion
-13.8 KB
Binary file not shown.
-13.2 KB
Binary file not shown.
-50 KB
Binary file not shown.
-47 KB
Binary file not shown.
-244 Bytes
Binary file not shown.
-208 Bytes
Binary file not shown.
-1.89 KB
Binary file not shown.
-1.94 KB
Binary file not shown.

0 commit comments

Comments
 (0)