On Fri, 2005-25-03 at 09:46 +0100, Marcus Habermehl wrote: > Fernando San MartÃn Woerner schrieb: > > >El miÃ, 23-03-2005 a las 21:27 +0100, Marcus Habermehl escribiÃ: > >> Hi. > >> > >> I want to write the output of os.popen('command') to a gtk.TextView. > > > >there's the example > > > >http://cvs.gnome.org/viewcvs/gnome-python/pygtk/examples/ide/gtkcons.py?view=markup > > > That could be what I'm searching for. But I think that I doesn't > understand the script realy. :( > > I think the class gtkoutfile in this script is interesting for me. But > there are so many token like __w, __b, __fn, a, etc. That makes me > perplexes. :( > > Sorry. > > Marcus > >
def __init__(self, w, fn, font): self.__fn = fn self.__w = w self.__b = w.get_buffer() self.__ins = self.__b.get_mark('insert') self.__font = font you can simply rename them. def __init__(self, w, fn, font): self.passed_fn = fn self.use_this_window = w self.the_textbuffer = w.get_buffer() self.insert_mark = self.__b.get_mark('insert') self.__font = font If you want full terminal capability you can use the vte terminal widget. It is the library widget that gnome-terminal uses. It has a python interface, not as complete as the 'c' interface, but does work. It will give you a full speed fully working terminal in a pygtk app. http://developer.gnome.org/arch/gnome/widgets/vte.html -- Brian <[EMAIL PROTECTED]> _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/