Correction pass using GPT5.4

This commit is contained in:
Taiko2k
2026-03-06 11:52:14 +13:00
parent 73e59593f7
commit cd0a720505
4 changed files with 47 additions and 42 deletions

View File

@@ -1,4 +1,5 @@
import sys
from pathlib import Path
import gi
gi.require_version('Gtk', '4.0')
gi.require_version('Adw', '1')
@@ -12,7 +13,7 @@ class MyApp(Adw.Application):
def on_activate(self, app):
# Create a Builder
builder = Gtk.Builder()
builder.add_from_file("test.ui")
builder.add_from_file(str(Path(__file__).with_name("test.ui")))
# Obtain the button widget and connect it to a function
button = builder.get_object("button1")
@@ -27,4 +28,4 @@ class MyApp(Adw.Application):
print("Hello")
app = MyApp(application_id="com.example.GtkApplication")
app.run(sys.argv)
app.run(sys.argv)