[pygtk] Re: bash shell in some gtk widget
David Keogh
davekeogh at shaw.ca
Fri Nov 17 03:55:44 WST 2006
On 11/16/06, Fabian Braennstroem <f.braennstroem at gmx.de> wrote:
>
> Hi Gian,
>
> * On 14 Nov 2006 * Gian Mario Tagliaretti wrote:
>
> > 2006/11/14, Fabian Braennstroem <f.braennstroem at gmx.de>:
> >
> > >I just wonder, if there exists anything like a small bash or
> > >tcsh shell as a widget!? I would like to be able to display
> > >and run some linux shell programs, e.g. vim inside pygtk.
> > >Is that anyhow possible?
> >
> > of course, there are VTE python bindings available.
>
> Thanks, but somehow I am not able to find any example or
> even a good web site about vte!?
Here's the C API for VTE:
http://developer.gnome.org/doc/API/2.0/vte/vteterminal.html
Here's a link for the ruby binding:
http://ruby-gnome2.sourceforge.jp/hiki.cgi?Vte%3A%3ATerminal
It's unfortunate that there's no Python documentation, but it's still fairly
easy to translate.
You can also do something like this to at least get a look at what the
module contains:
import vte
print dir(vte.Terminal)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20061116/9102e87c/at=
tachment.htm
More information about the pygtk
mailing list