Re: Gtk2::Dialog ... adding a label
- From: "A. Pagaltzis" <pagaltzis gmx de>
- To: gtk-perl list <gtk-perl-list gnome org>
- Subject: Re: Gtk2::Dialog ... adding a label
- Date: Wed, 26 May 2004 02:10:16 +0200
* Daniel Kasak <dkasak nusconsulting com au> [2004-05-26 01:56]:
sub msgbox {
my ($parent, $title, $message) = @_;
my $dialog = Gtk2::Dialog->new ($title,
$parent,
'destroy-with-parent',
'gtk-ok' => 'accept',
'gtk-cancel' => 'reject');
my $label = Gtk2::Label->new ($message);
$dialog->vbox->add ($label);
$label->show();
return $dialog;
}
--
Regards,
Aristotle
"If you can't laugh at yourself, you don't take life seriously enough."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]