Re: Reading from a GFile

2012-06-12 Thread Holger Berndt
Hello Abderrahim, On Sa, 09.06.2012 21:48, Abderrahim Kitouni wrote: >Hi, > > في س، 09-06-2012 عند 14:52 +0200 ، كتب Holger Berndt: >> Hello, >> >> I'm trying to read from a GFile, but can't figure out how to do it. >> I neither found an answer in the tutorial, nor in PyGObject

Re: Reading from a GFile

2012-06-09 Thread Abderrahim Kitouni
Hi, في س، 09-06-2012 عند 14:52 +0200 ، كتب Holger Berndt: > Hello, > > I'm trying to read from a GFile, but can't figure out how to do it. > I neither found an answer in the tutorial, nor in PyGObject's tests or > examples. I think it's better to use load_contents (or load_con

Re: Reading from a GFile

2012-06-09 Thread Holger Berndt
On Sa, 09.06.2012 11:05, Adam Tauno Williams wrote: >On Sat, 2012-06-09 at 14:52 +0200, Holger Berndt wrote: >> Here is what I'm trying: >> $ echo "Test" > /tmp/tst >> $ python3 >> Python 3.2.1 (default, Jul 11 2011, 18:54:42) >> [GCC 4.6.1 20110627 (Red Hat 4.6.1-1)] on linux2 >> Type "help", "

Re: Reading from a GFile

2012-06-09 Thread Adam Tauno Williams
On Sat, 2012-06-09 at 14:52 +0200, Holger Berndt wrote: > I'm trying to read from a GFile, but can't figure out how to do it. > I neither found an answer in the tutorial, nor in PyGObject's tests or > examples. > Here is what I'm trying: > $ echo "Test" > /tmp/tst > $ python3 > Python 3.2.1 (defau