I suppose i made a mistake for not giving more details about what i wanted to do; sorry for that. What i wanted to know is which perl modules for graphical user interface are the best ones (or the most easy to use).
I think, you have convinced me, with the Gtk2 :) ...
I want my app (i should say part of my app) to get an Ip address using dhcp (worse case, this process takes about a minute). For mataining the user informed, i wanted to show a progress bar for avoiding the user desperation.
... $w = CreateWindow(...); # full screen window DrawBackgroundPicture($w,'file.jpg'); $p = CreateProgressBar($w, \&timer); RenderAndPrint("Waiting for a new Ip address", 'verdana'); $p -> Start(); $_ = `dhclient -e eth0 2>&1`; ($ip) = /bound to (\d+\.\d+\.\d+\.\d+)/; $p -> Stop (); unless ( $? ) { NextScreen(...); #we must introduce manual config } else { MsgBox("Configured correctly ..."); } NextScreen(...); #Next Task ... ...
I will re-read your code, and put my hands-on the Gtk2 stuff. Thanks a lot.
turo
In reply to Re^2: Graphical User Interface && Perl
by turo
in thread Graphical User Interface && Perl
by turo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |