mirror of
https://github.com/Taiko2k/GTK4PythonTutorial.git
synced 2025-07-21 12:41:10 +02:00
Small Change in Docs
Great Guide! I noticed there was a small error while reading this. Here is the docs showing this is the proper function name https://lazka.github.io/pgi-docs/#Graphene-1.0/classes/Rect.html#Graphene.Rect.init.
This commit is contained in:
@@ -881,7 +881,7 @@ Here we use:
|
|||||||
colour = Gdk.RGBA()
|
colour = Gdk.RGBA()
|
||||||
colour.parse("#e80e0e")
|
colour.parse("#e80e0e")
|
||||||
|
|
||||||
rect = Graphene.Rect().__init__(10, 10, 40, 60) # Add Graphene to your imports. i.e. from gi.repository import Graphene
|
rect = Graphene.Rect().init(10, 10, 40, 60) # Add Graphene to your imports. i.e. from gi.repository import Graphene
|
||||||
|
|
||||||
s.append_color(colour, rect)
|
s.append_color(colour, rect)
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user