in reply to creating skinable Perl/Tk apps
The easiest way to implement a winamp type app is using Tk::Canvas. All you've got to do is load a bunch of pictures, determine their size (width/height), and place them at a certain location(x/y) on your canvas. You can also associate events with each canvas item, and once you do that, you're done.
One limitation is that you can't have a free-form window, or a transparent canvas, so whatever you create has to be square. update: I should say it may be possible using platform specific hacks and maybe some extensions (Tk::Zinc), but as a general rule, not portably.
update: See the overrideredirect docmentation in Tk::Wm.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: creating skinable Perl/Tk apps
by gri6507 (Deacon) on Feb 09, 2005 at 13:15 UTC | |
by PodMaster (Abbot) on Feb 09, 2005 at 13:37 UTC | |
by gri6507 (Deacon) on Feb 09, 2005 at 14:02 UTC | |
by PodMaster (Abbot) on Feb 09, 2005 at 14:46 UTC |