G'day john.tm,
I was unable to reproduce the problem you describe.
I'm using Perl 5.22.0 and Tk 804.033 on Mac OS X 10.10.3
I stored your freeze script in pm_1148798_freeze.pl.
I changed the shebang line from #!/usr/bin/perl to #!/usr/bin/env perl.
Otherwise, the code is unaltered.
I stored your main script in pm_1148798_main.pl.
I added the shebang line #!/usr/bin/env perl.
I changed G:\\opscripts\freeze.pl to pm_1148798_freeze.pl.
Otherwise, the code is unaltered.
I tried this a few times without being able to freeze anything.
Here's a sample run:
-
$ pm_1148798_main.pl
-
Main GUI appeared. I clicked on "button 1" and Freeze GUI appeared.
I clicked in Main GUI: it came to the front.
I clicked in Freeze GUI: it came to the front.
No freezing at this point.
-
I selected year 2016.
I brought Main to the fore; then Freeze to the fore.
No freezing.
Year still showing as 2016.
-
I selected Month May.
I brought Main to the fore; then Freeze to the fore.
No freezing.
Year still showing as 2016 and Month as May.
-
I selected Day 25.
"Enter" button now enabled.
I brought Main to the fore; then Freeze to the fore.
No freezing.
Year still showing as 2016, Month as May and Day as 25.
-
I clicked on Enter.
Freeze GUI gone; Main GUI now showing:
processing freeze ........
selected Year = 2016
selected Month = May
selected Day = 25
-
I clicked Exit.
Main GUI gone.
Command line prompt returns.
No error or warning messages were displayed.
If you require further help, please provide a similar step-by-step description.
This should include exactly what you mean by "freezing":
unresponsive buttons; drop-down lists not displaying; window stuck in the background; etc.
It should also include how what you see deviates from what you expect.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.