summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorroot <root>2005-02-20 00:09:25 +0000
committerroot <root>2005-02-20 00:09:25 +0000
commitbe4350ca94914c887626512ecba858b46e658640 (patch)
treeab1f14fa36f948b4702ef3fe67a0b4e7004788ea /doc
parent3234802df86a281f484ea4dd870e5473b48c2379 (diff)
*** empty log message ***
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/embed-tk16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/embed-tk b/doc/embed-tk
new file mode 100755
index 0000000..e502314
--- /dev/null
+++ b/doc/embed-tk
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+
+# sample script to illustrate the -embed option
+# using Tk
+# resizes do not work yet.
+
+use Tk;
+
+my $mw = new MainWindow;
+
+my $frame = $mw->Frame (width => 700, height => 400, container => 1)
+ ->pack (fill => "both", expand => 1);
+
+system "rxvt -embed " . ($frame->id) . " &";
+
+MainLoop;