Prima::...tDialog(3)
π 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 π
PrimaPrima::WindowPrima::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
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms