Hi guys.
I'm trying to access some User interface files (.glade) which are in a subdirectory.
from gi.repository import Gtk
import os
path=os.getcwd+'/ui/main.glade'
def hurr():
builder=Gtk.Builder()
builder.add_from_file(path) # get UI file
window=builder.get_object('winlet')
window.show()
hurr()
Gtk.main()
This works if i use only 1 glade file, but i have multiple .glade files that i will need to use.
Is there away to include the UI directory(ui) into the python path, so that i'll not have to add the path for each glade file?