Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a Perl program that creates several windows with TK. The main window (Main) will spawn various windows with the command
$window1=MainWindow -> new(); ..... $window2=MainWindow -> new(); .... $window3=MainWindow -> new(); ....
Eventually I iconify the windows, but they all have the same icon (one which reads Main) so if I want to bring up window1 I have to guess which icon to bring up, and I usually guess wrong. Is there a way to tell Tk to have the icon associated with window1 read win1, and the icon associated with window2 read win2, and so on.
Thanks in advance for any tips
klee12
Edit: g0n - code tags and formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: naming Icons in TK
by BrowserUk (Patriarch) on Dec 15, 2007 at 07:00 UTC | |
|
Re: naming Icons in TK
by Anonymous Monk on Dec 15, 2007 at 10:24 UTC | |
|
Re: naming Icons in TK
by Anonymous Monk on Dec 15, 2007 at 22:37 UTC |