Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tk Frame -tile option

Status
Not open for further replies.

vquick

IS-IT--Management
Jul 13, 2008
14
US
While using perl-tk on hp-ux i used the -tile options with a Frame. I am now using Red Hat Linux 5.1 and when i run the tk gui i get "unknown option "-tile" ". Any ideas why this does not work on Red Hat? Here is the code:
$image = $mw->Bitmap(-file => "bw.bm");
my $frame = $mw->Frame(-relief => "flat", -tile => $image,
)->pack(-fill => "both", -side => "left", -expand => "1",
-anchor => "w", -pady => "2");
 
That option doesn't work on Win32 either, and it isn't mentioned in the docs for Perl/Tk:
Are you sure you were using "Tk" before and not "pTk" or "Tkx"? Tk is a pure Perl and C remake of Tcl/Tk while the other ones do things differently. Or you might've had a custom build of Tk on hp-ux that supported this?

One widget I know of that supports the -tile option is Canvas.

-------------
Cuvou.com | My personal homepage
Code:
perl -e '$|=$i=1;print" oo\n<|>\n_|_";x:sleep$|;print"\b",$i++%2?"/":"_";goto x;'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top