in reply to Re: Perl Tk, GUI / Window Manager freezes/blocks when creating new windows, dialogues or balloons
in thread Perl Tk, GUI / Window Manager freezes/blocks when creating new windows, dialogues or balloons
The second, major problem: The error only occurs on the environment of my customer. And i don't get too many chances, to try out this and that all the time on this system. I am expectet to provide my customer some code, which runs ... ;-) I know, stupid me selling scripts, not beeing evaluated on the environment which they're running on later ... ;-)#!/usr/bin/perl -w use strict; use warnings; use Tk; use Tk::Balloon; use Tk::Dialog; use Tk::DialogBox; #-------------------------------------------- my $mw = MainWindow->new( ); #-------------------------------------------- my $balloonbutt = $mw->Button( -text => 'Test Balloon MouseOver', ) ->grid( -column => 10, -row => 10, -padx => 10, -pady => 10, ); my $ball = $balloonbutt->Balloon( -state => "balloon", -cancelcommand => sub { return 1 }, ); $ball->attach( $balloonbutt, -balloonposition => 'mouse', -msg => "Balloon Test", -cancelcommand => sub { return 1 }, -initwait => 200, ); #-------------------------------------------- $mw->Button( -text => 'Browse', -command => sub { my $types = [ [ 'Modellfiles' , ' +*.fif *.nas *.bdf' ], [ 'All Files' , ' +*' ] ]; my $file = $mw->getOpenFile( -filetypes => $ty +pes, -title => "Te +st getOpenFile", ); }, ) ->grid( -column => 20, -row => 10, -padx => 10, -pady => 10, ); #-------------------------------------------- MainLoop();
|
|---|