Re: message dialog?



# create the dialog, you can pass more pairs on the end for
# more buttons, 'gtk-cancel' => 'cancel', ...
my $dlg = Gtk2::Dialog->new('About', $mainwin, ['modal'],
                                'gtk-ok' => 'ok' );

# insert whatever widgets you want to be on the dialog here
$dialog->vbox->add(Gtk2::Label->new('About info etc. etc.);

# see the dialog api for other functions you can call here

my $response = $dlg->run;
# if you had more than one button, then you'd look at response
# to see which one the user clicked.


incidentally, i don't know if it was on your end, the mailing list's, or
mine, but i didn't get this message until about an hour ago and it's
saying that you sent it on the 10th.

-rm

On Thu, 2003-07-10 at 09:29, Bruno Boettcher wrote:
Hello,

i am trying ot get onto the ML but so far i didn't get the ticket, so
please add a CC to me directly please.

i am running on a linux debian unstable box if that changes anything...

i have to say that i am new to perl-gtk and new to gtk also....

i am trying to double my curses shell with a graphical frontend,
  comparing perl tk and perl gtk, i took perl-gtk...
in case you are wondering what i am trying to do:
https://savannah.nongnu.org/projects/goanseech

so far for the introduction....

up to now i somehow managed to build up that thing, but now i am
blocking at the creation of a simple about box....

looking up the gtk docu (which BTW could take some serious lessons from,
    e.g. the java-docu..) i found a thing called GtkMessageDialog due to
the lack of perl-gtk docu i wasn't able to build this up....

i tryed several ways and namings but this thing seems unknown in
perl-gtk? does someone has an example script of that type of popup box?

looking through the (scarce) docu i found, there's an example script
using a Gnome::MessageBox to achieve this... first time i stumbled
accross this gnome:: stuff, what's that exactly? where do i find docus?
should i use that instead of gtk? what are the advantages/shortcomings?


and whilst i am at it.... my app builds up a gtk table. Each line has
several active fields (attached signal handlers...). On refreshes i
would like eventually to remove lines and shift up the rest... but as i
looked at it, it will be much simpler to destroy the whole thing, and
rebuild it, unless i overlooked something?

for another program i have i thought of doing too a GUI, but there a
tabbed pane would be nice, does there such a widget allready exist ?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]