On Fri, 31 Aug 2007 18:10:50 -0500 "Judd Taylor" <[EMAIL PROTECTED]> wrote:
>I've hunted through the (wonderful) TriD source long enough for my head >to hurt. How can I set the window title when I'm using TriD/GL ? > >-Judd > >-- The window title is usually set by the window manager placing the script name in the title bar, but you probably are asking for putting text onto the TriD/GL canvas? The closest I've come is this: http://perlmonks.org?node_id=594002 Just in case you are looking for the title bar change, Tk or Gtk2 can do it. A plain script can be difficult to change dynamically, maybe the X11::WMCtrl module can do it. If you use PDL::Graphics::TriD::Tk , you can use the following #!/usr/bin/perl use warnings; use strict; use Tk; my $mw = tkinit; $mw->geometry('240x80+100+100'); $mw->configure(-title=>'foobar'); $mw->appname('foobar'); print $mw->appname,"\n"; $mw->Button(-text=>'change', -command=>sub{ $mw->configure(-title=>'bazbuzz'); $mw->appname('bazbuzz'); })->pack(); MainLoop; __END__ Someone else may know something better. :-) zentara -- I'm not really a human, but I play one on earth. http://zentara.net/japh.html _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
