in reply to User Interface
Try using ppm to install Tk:
C:\Documents and Settings\myself> ppm install Tk
If that's successful, you'll get DialogBox for free (but you'll still have to use Tk::DialogBox in your program).
For example:
#!/usr/bin/perl -w use strict; use warnings; use Tk; use Tk::DialogBox; my $mw = new MainWindow(); my $a_btn = [ "Of course!", "No way" ]; my $dbox = $mw->DialogBox(-buttons => $a_btn); my $lbl = $dbox->add("Label", -text => "Isn't this a great program?" +); $lbl->pack; $dbox->Show(); # Do something with the answer, etc. ... MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: User Interface
by kingjamesid (Acolyte) on Sep 14, 2009 at 23:17 UTC | |
by ww (Archbishop) on Sep 14, 2009 at 23:48 UTC | |
by kingjamesid (Acolyte) on Sep 15, 2009 at 00:35 UTC | |
by ww (Archbishop) on Sep 15, 2009 at 02:06 UTC | |
by kingjamesid (Acolyte) on Sep 15, 2009 at 00:39 UTC | |
by syphilis (Archbishop) on Sep 15, 2009 at 01:09 UTC | |
by Marshall (Canon) on Sep 15, 2009 at 07:06 UTC |