mdog has asked for the wisdom of the Perl Monks concerning the following question:
I am a total novice when it comes to TK. I want to display an image and can do so easily with the code below:
The rub is that I want to display JUST this image. I don't want the TK titlebar, menu, bars on either side of the image. I don't want to see any of TK. I've been combing the internets and super search and think I'm just not phrasing my search term right. If you were to do this in HTML so you wouldn't see any of the browser, it would called "chromeless" but I don't know the corresponding term for regular application windows. Or is doing this just not possible?use Tk; use Tk::Photo; use Tk::JPEG; my $mw=new MainWindow; my $foto=$mw->Photo(-file => 'C:\\temp\\itunesart\\702_-_702.jpg'); $mw->Button(-image => $foto)->pack(); $mw->MainLoop;
Many thanks,
mdog
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: TK without titlebar / Chromeless TK
by strat (Canon) on Feb 07, 2006 at 09:24 UTC | |
|
Re: TK without titlebar / Chromeless TK
by thundergnat (Deacon) on Feb 07, 2006 at 14:20 UTC | |
|
Re: TK without titlebar / Chromeless TK
by spiritway (Vicar) on Feb 07, 2006 at 02:54 UTC |