Taiko2k / GTK4PythonTutorial

GTK4 + Python tutorial with code examples
446 stars 33 forks source link

Wrong method used in newest css-addition? #15

Closed MarcusSchwarz closed 1 year ago

MarcusSchwarz commented 1 year ago

I might be wrong as I am literally only two hours into Python, but the line introduced here seems to be wrong: https://github.com/Taiko2k/GTK4PythonTutorial/commit/c626634b73dec4f08436758192540da13768b47d#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R297

This results in a compiler error: TypeError: argument file: Expected Gio.File, but got str

Changing it to css_provider.load_from_path('style.css') seems to do the trick.

Taiko2k commented 1 year ago

OK Ive committed your suggested change