Hello,
Before, this application was working fine ! I am in Fedora 10 last update (before means ~ 2 weeks !!) Now, the file name is not anymore transfered and it never live the widget ! I am also experiencing problem with JFileDialog
#!/usr/bin/perl -w
use Tk ; use strict ;
my $types = [ ['Text Files', ['.txt', '.text']], ['TCL Scripts', '.tcl' ], ['C Source Files', '.c', 'TEXT'], ['GIF Files', '.gif', ], ['GIF Files', '', 'GIFF'], ['All Files', '*', ], ];
my $main = MainWindow -> new () ;
my $filename = $main -> getOpenFile (-filetypes => $types) ;
if ($filename ne "") { # Open the file ... print $filename ; }
Patrick Dupre wrote:
Hello,
Before, this application was working fine ! I am in Fedora 10 last update (before means ~ 2 weeks !!) Now, the file name is not anymore transfered and it never live the widget ! I am also experiencing problem with JFileDialog
The code you posted works OK for me.
This is with perl-Tk-804.028-5.fc9.x86_64 on F10, which seems to be the latest version available (last updated Feb 24th).
However these is a problem with Tk if you use -multiple in your getOpenFile call. I reported this a while back:
https://bugzilla.redhat.com/487122
..but noone has looked at it.
Simon.
Patrick Dupre wrote:
Hello,
Before, this application was working fine ! I am in Fedora 10 last update (before means ~ 2 weeks !!) Now, the file name is not anymore transfered and it never live the widget ! I am also experiencing problem with JFileDialog
The code you posted works OK for me.
This is with perl-Tk-804.028-5.fc9.x86_64 on F10, which seems to be the latest version available (last updated Feb 24th).
I am using perl-Tk-804.028-5.fc10.i386 I do not use multiple
With JFileDialog and Tk::FileSelect, I get: no event type or button # or keysym at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Tk/Widget.pm line 1105. at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Tk/Derived.pm line 502
or:
Tk::Error: no event type or button # or keysym at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Tk/Widget.pm line 1105. at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Tk/Widget.pm line 203
Should I submit it as a bug ? It seems to be a graphics problem, maybe with another graphics card, it may be OK !!
However these is a problem with Tk if you use -multiple in your getOpenFile call. I reported this a while back:
https://bugzilla.redhat.com/487122
..but noone has looked at it.
Simon.
I too got the error
"Tk::Error: no event type or button # or keysym at /usr/local/lib/perl/5.10.0/Tk/Widget.pm"
Interestingly enough, I got it on an application that's been working for years, and only on _one_ of two different Kubuntu 9.10 systems. The difference I tracked down is that on the working system, I installed "Tk" by using the debian package manager:
"sudo apt-get install perl-tk".
On the _non_ working system, I installed Tk using Perl and CPAN - as root:
"perl -MCPAN -e shell" then "install Tk".
The primary difference which I see is that Perl's CPAN install puts Tk in /usr/local/lib/perl/5.10.0/Tk, and the native debian installer puts it in /usr/lib/perl5/Tk. I haven't yet dug around to see if there are any differences in the installed files, but if you've installed Tk using CPAN, you may want to rename your existing Tk subdirectory to Tk-Hold and then use yum to install Fedora's perl-Tk package.
If I find any more info, I'll post it here.
On Tuesday 21 April 2009 10:37:49 Patrick Dupre wrote:
Now, the file name is not anymore transfered and it never live the widget !
Works for me:
$ perl try.pl /home/garry/CMakeLists.txt $ perl -MTk -le 'print $Tk::VERSION' 804.028 $ uname -r 2.6.29.1-30.fc10.i686 $
I am also experiencing problem with JFileDialog
No clue.