CWB-CQI
view release on metacpan or search on metacpan
examples/Tkwic.perl view on Meta::CPAN
my $main_window = $self->{main_window};
$main_window->Busy(-recurse => 1);
my @kids = $main_window->children();
foreach (@kids) {
if ($_->class() eq 'Toplevel') {
# Wenn man hier Busy() verwendet, kann es passieren, dass
# einige Fenster trotz Unbusy() gesperrt bleiben. Damit
# der Benutzer trotzdem ein Feedback bekommt, wird eine
# Uhr als Mauszeiger verwendet.
#$_->Busy(-recurse => 1);
$_->configure(-cursor => 'watch');
}
}
}
sub unbusy {
my ($self) = @_;
my $main_window = $self->{main_window};
my @kids = $main_window->children();
foreach (@kids) {
if ($_->class() eq 'Toplevel') {
#$_->Unbusy();
$_->configure(-cursor => 'left_ptr');
}
}
$main_window->Unbusy();
}
sub bell {
my ($self) = @_;
$self->{main_window}->bell();
}
examples/Tkwic.perl view on Meta::CPAN
$query_entry->tagConfigure('argument', -foreground => $ArgumentColor);
$query_entry->tagConfigure('info', -foreground => $InfoColor);
$query_entry->bind('Tk::Text', '<3>', '');
$scrolled->pack(-fill => 'x', -expand => 1);
} else {
$query_entry = $vbox->Entry();
$query_entry->pack(-fill => 'x', -expand => 1);
}
$query_entry->bind('<FocusIn>', [ \&query_focus_in, $self, $i ]);
$query_entry->bind('<Button-3>',
sub { $popup->Popup(-popover => 'cursor', -popanchor => 'nw'); });
$self->{query_entry}[$i] = $query_entry;
}
$self->{query_entry}[0]->focus();
my $hbox = $vbox->Frame();
my $history_button =
$hbox->Menubutton(-text => "History", -indicatoron => 1,
-relief => 'raised', -pady => 5);
$self->{history_menu} = $history_button->menu;
my $execute_query_button = $hbox->Button(-text => "Start query",
-command => [\&execute_query, $self]);
( run in 0.340 second using v1.01-cache-2.11-cpan-4d50c553e7e )