UI::Di...::GNOME(3pm)
π UI::Dialog::GNOME β the perl manual page, but make it slay π
okay bestie, so this is UI::Dialog::GNOME(3pm), straight out of the User Contributed Perl Documentation β¨ it's a whole manpage and we're gonna read it together, no skipping π«Ά
πΈ NAME πΈ
UI::Dialog::GNOME β a GNOME GUI meta-class for UI::Dialog. it's giving "same energy, different priorities" π
β¨ SYNOPSIS β¨
here's the vibe, copy it exactly:
use UI::Dialog::GNOME;
my $d = new UI::Dialog::GNOME ( 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!' );
so either a Zenity widget or an Xdialog widget should pop up, and it lowkey prefers Zenity π
π¦ ABSTRACT π¦
UI::Dialog::GNOME is just another meta-class for UI::Dialog. literally the only glow-up is a different order of priority than UI::Dialog, plus no console support π that's the whole thing, periodt.
π DESCRIPTION π
this class is a cute way to try and guarantee a GNOME based widget set, bestie. and the editbox() widget? it's provided on top of the standard widgets, because both the XDialog and Zenity backends effectively support it being used π
β οΈ ok important: if you're still using GDialog and not Zenity (Zenity provides a very nice gdialog wrapper, fyi), then theeditbox()widget will make your application die with a"missing method editbox()"error π not a vibe. heads up.
π EXPORT π
None
nothing. zero. nada. iconic minimalism β¨
π INHERITS π
UI::Dialog
that's the parent, the blueprint, the ancestry π
π CONSTRUCTOR π
new( @options )
EXAMPLE
my $d = new( title => 'Default Title', backtitle => 'Backtitle',
width => 65, height => 20, listheight => 5,
order => [ 'zenity', 'xdialog', 'gdialog' ] );
DESCRIPTION
this is the Class Constructor method, bestie. it takes a list of key => value pairs and uses them as the defaults whenever you interact with the various widgets π«Ά
RETURNS
a blessed object reference of the UI::Dialog::GNOME class. yes ma'am, an object, a whole little guy π
OPTIONS
the (...) after each option tells you the default, iykyk:
debug = 0,1,2β (default0)order = [ zenity, xdialog, gdialog ]β (as indicated)PATH = [ /bin, /usr/bin, /usr/local/bin, /opt/bin ]β (as indicated)backtitle = "backtitle"β (default'')title = "title"β (default'')beepbefore = 0,1β (default0)beepafter = 0,1β (default0)height = \d+β (default20)width = \d+β (default65)listheight = \d+β (default5)
π₯ WIDGET METHODS π₯
editbox( )
EXAMPLE
$d->editbox( path => '/path/to/a/text/file' );
DESCRIPTION
presents your end user with an editable textbox stuffed with the contents of the given text file π main character energy fr fr.
RETURNS
a SCALAR containing the edited text if the response is OK β and FALSE (0) for anything else. that's it, that's the deal πΈ
π SEE ALSO π
PERLDOC
UI::DialogUI::Dialog::BackendUI::Dialog::Backend::GDialogUI::Dialog::Backend::NautilusUI::Dialog::Backend::XDialogUI::Dialog::Backend::XOSDUI::Dialog::Backend::Zenity
MAN FILES
zenity(1), gdialog(1), Xdialog(1), osd_cat(1) and nautilus(1) β go read those too bestie π
π BUGS π
please email the author with any bug reports! and put the name of the module in the subject line, or else it's chaos π
π§ AUTHOR π§
Kevin C. Krinke, <kevin@krinke.ca> β legend behavior, honestly π
π COPYRIGHT AND LICENSE π
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
β οΈ note the WITHOUT ANY WARRANTY line, bestie β it's free software, it's LGPL v2.1 or later, and there's no promise it'll do anything in particular. read it, respect it π
okay that's the whole page!! this one came from perl v5.28.0 and it's dated 2018-10-27 π thanks for reading the UI::Di...::GNOME(3pm) manpage with me, mwah πβ¨
π¦ where this page comes from
- ubuntu jammy: libui-dialog-perl 1.21-0.1 Β· LGPL-2.1-or-later
- ubuntu noble: libui-dialog-perl 1.21-0.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms