Commit 8a0c2d8
committed
v1.1.318a25 MacOS test
* Fixed bug with the `Rectangle` class's `copy()` function not creating a copy of the position lists and just creating a
new reference
* Fixed bug with the `Colour` class's `__eq__()` and `__nq__()` functions raising an `AttributeError` when comparing
against a non-`Colour` object
* Fixed the `hex_to_rgb()` and `_hex_to_rgb()` functions to return a tuple, not generator
* Fixed bug with the `hex_to_hsl()` and `hex_to_hsv()` functions both returning CMYK values
* Created new colour converter testing functions
* Changed `Window` `__repr__()` function to use `"Window"` and not `"GraphWin"`
* Renamed the `Window` `is_resizable()`, `is_width_resizable()`, and `is_height_resizable()` to use `get` instead
* The `Window` `get_resizable()` function now returns a `tuple` not a `list`
* Removed the `Window` `__str__()` function since `__repr__()` defined the same thing
* Added `Window` getter function testing functions
* Fixed bugs with all the CMYK colour conversion functions
* Changed the `GraphicsError` in the `Window`'s `__check_open()` function to include the string `"GraphicsError"` at the
start and return `True` if the window is open
* Added `_check__check_open()` and `_check__autoflush()` methods to the `Window` class to check the functionality of
private methods
* Removed the `Window` `start_move()` and `stop_move()` methods until I can figure out what they do
* Removed the `Window` `draw_bounds()` function because it wasn't required.
* Fixed the `Window` `get_pos()`, `get_x_pos()`, and `get_y_pos()` functions to return the value relative to 0, 0
* Replaced all instances of the deprecated `Point` class usages with lists in `Window.py`
* The `Window` `set_background()` method no longer uses styles
* Changed `Window` `get_bk_colour()` method to `get_background()` to be consistent with the setter
* `Window` background colours can not be inputted as hex strings
* Removed all auto-flush checks in the `Window` methods because its private method `__autoflush()` also does that
* Renamed the variable `RELIEF` to `BORDER_RELIEFS`
* The `Window` `set_icon()` method now accepts icons in the local folder too
* Added 3 getter methods to the `Window` class: `get_draggable()`, `get_x_draggable_x()`, `get_y_draggable()`
* Added 5 getter methods to the `Window` class: `get_top_right()`, `get_top_left()`, `get_bottom_right()`,
`get_bottom_left()`, and `get_center()`
* Fixed bug with the `GraphicsObject` get animation time left functions raising a `TypeError`
* Fixed error with the `Text` `clone()` method trying to clone a `None` type bounds object
* Added 5 getter methods to the `_BBox` classes: `get_top_right()`, `get_top_left()`, `get_bottom_right()`,
`get_bottom_left()`, `get_left()`, `get_right()`, `get_bottom()`, `get_top()`
* Fixed the colour definition of `DARKISH_TURQUOISE` from a purple colour to a turquoise colour
* Internally changed how the button `Button` class keeps a track of its current state (normal, hover, or clicked)
* Redefined the `_update_lasttime` variable which was removed for an unknown reason
* Renamed the base colour conversion functions, like `_rgb_to_hex()` to `rgb_to_hex_nocheck()`
* Added a `__version__` variable that keeps track of the goopyplib version, and an `__all__` variable
* Added American (spelled with color) colour conversion tests to `goopylib_tests.py`
* Renamed the goopylib `math` subpackage to `maths` to avoid conflicts with Python's standard library
* Removed `'x_cursor'` from `CURSORS` and moved it to `CURSORS_WINDOWS` since it isn't available on MacOS1 parent 64ba9f2 commit 8a0c2d8
File tree
29 files changed
+66
-62
lines changed- Examples
- SnakeGame
- goopylib
- maths
- math
- objects
29 files changed
+66
-62
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
860 | | - | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
861 | 864 | | |
862 | 865 | | |
863 | 866 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
This file was deleted.
0 commit comments