File: embed-tk

package info (click to toggle)
rxvt-unicode 9.31-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,720 kB
  • sloc: ansic: 46,693; cpp: 17,560; perl: 3,532; makefile: 407; sh: 381
file content (16 lines) | stat: -rwxr-xr-x 318 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;