Re: Re: Is there an Editor widget available?
- From: Paolo Molaro <lupus debian org>
- To: gtk-perl-list gnome org
- Subject: Re: Re: Is there an Editor widget available?
- Date: Mon, 30 Oct 2000 14:39:19 +0100
On 10/27/00 jens irs-net com wrote:
You can use the Gtk::Text widget (or if the application is for
unix die hards you could run vi in a Gnome::ZvtTerm widget:-).
Is there a documantation/manual how to use those
specific Gnome:: Widgets ?
Look in http://projects.prosa.it/gtkperl/ for the
reference documentation (basically what functions are available
in the Perl binding and how to call them).
Also, take a look at the examples in the Gtk-Perl source.
On http://developer.gnome.org/doc/API/ you will find the
documentation for the C libraries: it has quite a bit more
descriptions. There are also some tutorials that are useful
for a perl programmer: mapping from C to perl is quite easy
(the Gtk-Perl tutorial has a section on it, I think).
For example, running vi in a Gnome::ZvtTerm widget is as easy as:
$term = new Gnome::ZvtTerm;
# pack the $term widget somewhere ...
if ($term->forkpty(0) == 0) {
exec "vi";
kill "KILL", $$;
}
lupus
--
-----------------------------------------------------------------
lupus debian org debian/rules
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]