1

Builder.add_from_file takes 2 arguments?

view story
linux-howto

https://bbs.archlinux.org – #!/usr/bin/python from gi.repository import Gtk def get_builder(path): builder = Gtk.Builder builder.add_from_file(path) return builder some_builder = get_builder('test.ui')results in the errorTraceback (most recent call last): File "./test.py", line 10, in <module> some_builder = get_builder('test.ui') File "./test.py", line 7, in get_builder builder.add_from_file(path) File "/usr/lib/python3.2/site-packages/gi/types.py", line 43, in function return info.invoke(*args, **kwargs) TypeError: add_from_file() takes exa (HowTos)