Curses:...alendar(3)
π NAME π
okay so welcome to the Curses:...alendar(3) page from the User Contributed Perl Documentation, bestie β¨ this one is all about Curses::UI::Dialog::Calendar β Create and manipulate calendar dialogs. periodt.
π³ CLASS HIERARCHY π³
the family tree is giving very structured, very iconic:
Curses::UI::Widget
|
+----Curses::UI::Container
|
+----Curses::UI::Window
|
+----Curses::UI::Dialog::Calendar
π SYNOPSIS π
okay here's the code, copy it exactly because it's main character energy:
use Curses::UI;
my $cui = new Curses::UI;
my $win = $cui->add('window_id', 'Window');
# The hard way.
# -------------
my $dialog = $win->add(
'mydialog', 'Dialog::Calendar'
);
$dialog->modalfocus;
$win->delete('mydialog');
my $date = $dialog->get();
# The easy way (see Curses::UI documentation).
# --------------------------------------------
$date = $cui->calendardialog();
π¦ DESCRIPTION π¦
Curses::UI::Dialog::Calendar is a calendar dialog. This type of dialog can be used to select a date. π
want a short demo? see exampes/demo-widgets in the distribution. yes, that's the path, iykyk.
π OPTIONS π
-title < TEXT >β sets the title of the dialog window to TEXT. π-date < DATE >β sets the date to start with to DATE. if-dateis not defined, today will be used as the startdate. ποΈ
β¨ METHODS β¨
new ( OPTIONS )β standard method.layout ( )β standard method.draw ( BOOLEAN )β standard method.focus ( )β standard method.modalfocus ( )β standard method.
these are standard methods, bestie β Curses::UI::Container has the explanation of these.
get ( )β returns the date that was selected, orundefif no date was selected. π«Ά
π SPECIAL BINDINGS π
escapeβ invokes the cancel button, so the calendar dialog returns without selecting any date. π
π SEE ALSO π
Curses::UICurses::UI::ContainerCurses::UI::Buttonbox
π AUTHOR π
Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.
maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de) π«Ά
this package is free software and is provided "as is" without express or implied warranty. it may be used, redistributed and/or modified under the same terms as perl itself.
okay that's the whole page, bestie β source/version is perl v5.42.2, date is 2023-07-03, and you're gonna slay those calendar dialogs π
β¨
π¦ where this page comes from
- alpine 3.24: perl-curses-ui-doc 0.9609-r3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms