Prima::...tDialog(3)

πŸ“¦
version 1.74000 Β· 5 versions
, in opensuse-leap 16.0

πŸŽ€ NAME πŸŽ€

Prima::Dialog::PrintDialog β€” standard printer setup dialog.

This is the Prima::...tDialog(3) page, bestie, and it's giving β€œlet's pick a printer” energy. πŸ–¨οΈβœ¨


πŸ’… DESCRIPTION πŸ’…

Okay so Prima::Dialog::PrintDialog provides the standard dialog that lets the user select the printer and its options. πŸ’–

Real talk: the toolkit does not provide the in-depth management of the printer options. Nope, not here. That can only be accessed by executing the printer-specific setup window, which is called by the Prima::Printer::setup_dialog method. The class invokes this method when the user presses the 'Properties' button. πŸ‘‘ Otherwise, the class provides only selection from the printer list.

When the dialog finishes successfully, the selected printer is set as current by setting the Prima::Printer::printer property. This technique allows direct use of the user-selected printer and its properties without prior knowledge of the selection process. Slay β€” no cap, that's the whole vibe. 🌈

✨ SYNOPSIS ✨

               use Prima qw(Dialog::PrintDialog Application);

               my $dlg = Prima::Dialog::PrintDialog-> new;
               if ( $dlg-> execute) {
                       my $p = $dlg-> printer;
                       if ( $p-> begin_doc ) {
                               $p-> text_out( 'Hello world', 10, 10);
                               $p-> end_doc;
                       }
               }
               $dlg-> destroy;

Like, literally copy-paste this and you're in business. πŸ’…

🫢 AUTHOR 🫢

Dmitry Karasik, <dmitry@karasik.eu.org>. Big author energy. πŸ’Œ

πŸ‘€ SEE ALSO πŸ‘€

  • Prima
  • Prima::Window
  • Prima::Printer

These are the besties you should also check out. πŸ¦‹


Sign-off time: this page is from perl v5.42.0, dated 2024-08-20, and it's the Prima::...tDialog(3) manual. Mwah, ily, go print something iconic! πŸ’‹πŸŽ€

πŸ“¦ where this page comes from