Update README.md

This commit is contained in:
Taiko2k
2023-04-10 13:54:35 +12:00
committed by GitHub
parent c626634b73
commit 3708533d2b

View File

@@ -294,7 +294,7 @@ Then, we need to load the CSS file in our application; to achieve this, we need
from gi.repository import Gtk, Gdk
css_provider = Gtk.CssProvider()
css_provider.load_from_file('style.css')
css_provider.load_from_path('style.css')
Gtk.StyleContext.add_provider_for_display(Gdk.Display.get_default(), css_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
```