Subject: | Problems with Radiobutton widgets |
Date: | Sun, 05 Sep 2010 18:58:43 +0200 |
To: | bug-Tk [...] rt.cpan.org |
From: | "K. Wittrock" <KWittrock [...] web.de> |
The attached program shows various problems with Radiobuttons.
Under Linux:
- The program initializes the Radiobutton labelled "Widget" as the active Radiobutton. However, the "Display" button is displayed as active.
- When the mouse cursor is moved to the "Widget" button (no click), it is marked as active. The "Display" button remains displayed as active. At the same time the following error message comes up:
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Tk/Button.pm line 56.
- When the mouse cursor is moved away from the "Widget" button, the same error comes up, with the line no. changed to 87.
- When clicking on the "Cursor" or "Widget" button, the following error message comes up:
Tk::Error: Cannot copy to HASH in entersub at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Tk.pm line 250.
<Button-1>
(command bound to event)
- When closing the program window,the following error message comes up:
Speicherzugriffsfehler (in English: memory access error).
Software versions:
Linux linux-hqz8 2.6.27.37-0.1-default #1 SMP 2009-10-15 14:56:58 +0200 x86_64 x86_64 x86_64 GNU/Linux
(in other words: OpenSuse 11.1)
perl, v5.10.0 built for x86_64-linux-thread-multi
Perl/Tk 804.028.
Under Windows:
- Initially active Radiobutton: same as under Linux.
- There is no problem when moving the mouse cursor across the "Widget" button.
- Clicking on the "Cursor" or "Widget" button: same as under Linux.
- When closing the program window, the following error message comes up:
Perl Command Line Interpreter has encountered a problem and must be terminated ...
Software versions:
Windows XP with SP3.
perl, v5.10.1 built for MSWin32-x86-multi-thread
Perl/Tk 804.028.
While playing around with the program under Linux, I also saw an error like "There is a memory leak ...". I think its of no use to try to reproduce this.
The program is an extract of program Pop2 in Mastering Perl/Tk, chapter 12, section Popup Menus. The screenshot there shows that the initially active Radiobutton was correctly shown somewhere in the past. Running the original program (which has the same errors) shows that in fact the "Widget" button is active. Only the display is wrong.
Kind regards
Klaus
Message body is not shown because sender requested not to inline it.