UI::Dialog::Gauged(3pm) | User Contributed Perl Documentation | UI::Dialog::Gauged(3pm) |
UI::Dialog::Gauged - wrapper support of gauge related functions.
use UI::Dialog::Gauged; my $d = new UI::Dialog::Gauged ( title => 'Default title', height => 20, width => 65 , listheight => 5, order => [ 'zenity', 'xdialog' ] ); # Either a Zenity or Xdialog msgbox widget should popup, # with a preference for Zenity. $d->msgbox( title => 'Welcome!', text => 'Welcome one and all!' );
UI::Dialog::Gauged is simply another meta-class for UI::Dialog. This class simply has a different order of priority than UI::Dialog and only uses backends that support a standard set of gauge related functions.
This class is simply a nice way to try and ensure a GNOME based widget set.
my $d = new( title => 'Default Title', backtitle => 'Backtitle', width => 65, height => 20, listheight => 5, order => [ 'zenity', 'xdialog' ] );
$d->gauge_start( text => 'gauge...', percentage => 1 );
$d->gauge_inc( 1 );
$d->gauge_set( 99 );
$d->gauge_text( 'string' );
$d->gauge_stop();
UI::Dialog UI::Dialog::Backend UI::Dialog::Backend::CDialog UI::Dialog::Backend::Nautilus UI::Dialog::Backend::Whiptail UI::Dialog::Backend::XDialog UI::Dialog::Backend::XOSD UI::Dialog::Backend::Zenity
zenity(1), Xdialog(1), dialog(1), whiptail(1), osd_cat(1) and nautilus(1)
Please email the author with any bug reports. Include the name of the module in the subject line.
Kevin C. Krinke, <kevin@krinke.ca>
Copyright (C) 2004-2016 Kevin C. Krinke <kevin@krinke.ca> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2018-10-27 | perl v5.26.2 |