Running an exemple of pygtk causes some trouble. I wanted to try this tutorial http://www.linuxjournal.com/article.php?sid=6586, but have the following error : Traceback (most recent call last): File "./serverinfo.py", line 65, in button1_clicked self.logwindow.insert_at_cursor(data,len(data)) TypeError: GtkTextBuffer.insert_at_cursor() takes exactly 1 argument (2 given) In the pygtk API, insert_at_cursor takes 2 args. please see http://www.gnome.org/~james/pygtk-docs/class-gtktextbuffer.html#method-gtktextbuffer--insert-at-cursor Reproducible: Always Steps to Reproduce: 1. Try launch attached file 2. 3. Actual Results: Traceback (most recent call last): File "./serverinfo.py", line 65, in button1_clicked self.logwindow.insert_at_cursor(data,len(data)) TypeError: GtkTextBuffer.insert_at_cursor() takes exactly 1 argument (2 given) Expected Results: text output in TextView1 I don't know weather if it's a gentoo related bug. Maybe a pygtk version error.
you don't say which version of pygtk you are using and also which version of gtk.
The syntax has changed between versions of pyGTK If you look at the finished demo code here: ftp://ftp.ssc.com/pub/lj/listings/issue113/6586.tgz you'll see they use: try: #this changed in a revision of pyGTK2 self.logwindow.insert_at_cursor(data,len(data)) except: self.logwindow.insert_at_cursor(data)
Closing as it is a matter of syntax between GTK+1 and GTK+2. See my above comment.