Gtk2::E...::YesNo(3)

πŸ“¦
version 0.67 Β· 2 versions
, in fedora 43

πŸ’– Gtk2::Ex::FormFactory::YesNo β€” the manual, but make it make sense πŸ’–

okay bestie, welcome to the Gtk2::Ex::FormFactory::YesNo page, straight out of the User Contributed Perl Documentation, section 3. yes it's a Perl module manual and yes we're gonna have fun with it. pull up a chair 🫢


✨ NAME ✨

Gtk2::Ex::FormFactory::YesNo β€” literally just Yes/No radio buttons, but living their best life inside a FormFactory framework. that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

here's how you summon one, no cap:

Gtk2::Ex::FormFactory::YesNo->new (
  true_label  => Label of the "Yes" button,
  false_label => Label of the "No" button,
  ...
  Gtk2::Ex::FormFactory::Widget attributes
);

πŸ¦‹ DESCRIPTION πŸ¦‹

so this class is giving "two RadioButtons in a trench coat" β€” they're grouped together as a Yes button and a No button. iconic duo behavior honestly.

and here's the cute part: the state of both RadioButtons is controlled by one associated application object attribute. just one. and that attribute should has a boolean value. yes, "should has". the original said it like that and I am not about to lie to you about the grammar, we keep the facts fr fr 😭


πŸ‘‘ OBJECT HIERARCHY πŸ‘‘

the family tree, look at her:

Gtk2::Ex::FormFactory::Intro

Gtk2::Ex::FormFactory::Widget
+--- Gtk2::Ex::FormFactory::YesNo

Gtk2::Ex::FormFactory::Layout
Gtk2::Ex::FormFactory::Rules
Gtk2::Ex::FormFactory::Context
Gtk2::Ex::FormFactory::Proxy

πŸ’… ATTRIBUTES πŸ’…

so attributes get handled through the classic get_ATTR(), set_ATTR() style accessors β€” very normal, very demure. but (and this is the important bit, bestie) they're mostly passed once to the object constructor, and they must not be altered after the associated FormFactory was built. that's a hard rule, not a suggestion 🚫

  • true_label = SCALAR [optional] β€” this is the label on the button that gets activated when the associated application object attribute is TRUE. defaults to "Yes". slay ✨
  • false_label = SCALAR [optional] β€” this is the label on the button that gets activated when the associated application object attribute is FALSE. defaults to "No". also slay ✨
wanna know about more attributes? go read Gtk2::Ex::FormFactory::Widget, that's where the rest of the lore lives πŸ“š

πŸŽ€ AUTHORS πŸŽ€

JΓΆrn Reder <joern at zyn dot de> β€” thank you for your service, king πŸ‘‘


Copyright 2004-2006 by JΓΆrn Reder.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details.

You should have received a copy of the GNU Library 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.

not me highlighting that ALL CAPS warranty disclaimer but it's important okay 😭 NO WARRANTY is a real thing, don't skip it

πŸ’€ POD ERRORS πŸ’€

hey! the document above had some coding errors, which are explained below:

Around line 158: Non-ASCII character seen before =encoding in 'JΓΆrn'. Assuming UTF-8

yeah so the umlaut in JΓΆrn showed up before an =encoding declaration and the parser just shrugged and assumed UTF-8. it ate, but with a warning πŸ™ˆ


and that's the whole page bestie, no notes πŸ’– this was perl v5.42.0, dated 2025-07-25, and it's the Gtk2::E...::YesNo(3) page β€” go build something cute with your radio buttons. mwah 🫢✨

πŸ“¦ where this page comes from