Hello,
It seems very simple, but I can't open a File object:
Code:
>>> from gi.repository import Gio
>>> f = Gio.File('foo.txt')
Traceback (most recent call last):
File "/usr/lib/gedit/plugins/pythonconsole/console.py", line 387, in __run
exec(command, self.namespace)
File "<string>", line 1, in <module>
TypeError: GInterface.__init__() takes exactly 0 arguments (1 given)
>>> f = Gio.File()
Traceback (most recent call last):
File "/usr/lib/gedit/plugins/pythonconsole/console.py", line 387, in __run
exec(command, self.namespace)
File "<string>", line 1, in <module>
NotImplementedError: File can not be constructed
>>>
??? Sorry, but I looke around a lot for documentation/examples, and couldn't find any that work for the pygobject version. I'd appreciate some help.
Thanks & Bye,
Ami