iwidgets::canvasprintdialog(1)
π iwidgets::canvasprintdialog β the manual page, but make it make sense π
okay bestie, so this is iwidgets::canvasprintdialog(1) from the [incr Widgets] collection β it's a Tk manual page, section 1. Yes, the section number is real, no I'm not joking, section 1 is for user commands. Anyway. Sit down, grab a boba, we're printing canvases. π
β¨ NAME β¨
iwidgets::canvasprintdialog β creates and manipulates a canvas print dialog widget. That's it, that's the whole vibe: it makes a dialog, and you can poke at it. π
πΈ SYNOPSIS πΈ
iwidgets::canvasprintdialog pathName ?options?
π¦ INHERITANCE π¦
the family tree, and yes it's giving royal lineage:
itk::Toplevel β iwidgets::Dialogshell β iwidgets::Dialog β iwidgets::Canvasprintdialog
so like, everything at the top of that chain? it's literally inside this widget too. it's giving nepo baby but make it legitimate. π
β STANDARD OPTIONS β
these are the standard ones, all lowercase, all iconic:
activeBackgroundbackgroundborderWidthcursorforegroundhighlightBackgroundhighlightColorhighlightThicknessinsertBackgroundinsertBorderWidthinsertOffTimeinsertOnTimeinsertWidthreliefrepeatDelayrepeatIntervalselectBackgroundselectBorderWidthselectForeground
the "options" manual entry has the deets on all of these, iykyk. go read it, bestie. π
π ASSOCIATED OPTIONS π
these ones come from its canvasprintbox bestie:
filenamehpagecntorientoutputpagesizeposterizeprintcmdprintregionvpagecnt
the "canvasprintbox" widget manual entry explains all of the above. not me outsourcing the lore, but also yes. π«Ά
π§ INHERITED OPTIONS π§
from dialogshell:
buttonBoxPadXbuttonBoxPadYbuttonBoxPospadXpadYseparatorthickness
see the "dialogshell" widget manual entry for these, fr fr.
from shell:
mastermodality
see the "shell" widget manual entry for those two. π«
from Toplevel:
title
see the "Toplevel" widget manual entry for that one. π
π WIDGET-SPECIFIC OPTIONS π
...nothing here. it's empty. this section is the quiet friend in the group chat. π like it exists but it has nothing to say. iconic behaviour honestly.
π₯ DESCRIPTION π₯
The iwidgets::canvasprintdialog command creates a print dialog β for printing the contents of a canvas widget to a printer or to a file. π¨οΈβ¨
and you get to control the whole situation: you can specify page orientation, you can specify how many pages to print the image on, and you can decide whether the output should be stretched to fit the page. so many choices, and every one of them is yours. main character energy. π
π©· METHODS π©·
The iwidgets::canvasprintdialog command creates a new Tcl command whose name is pathName. you can use that command to invoke various operations on the widget. general form goes like this:
pathName option ?arg arg ...?
option and the args decide the exact behavior of the command. and these are the commands that are possible for canvasprintdialog widgets: π
πΌ ASSOCIATED METHODS πΌ
getoutputsetcanvasrefreshprint
see the "canvasprintbox" class manual entry for the details on all of these. π
π INHERITED METHODS π
from buttonbox:
addbuttonconfiguredefaulthideinsertinvokeshow
see the "buttonbox" widget manual entry for the details, bestie.
from dialogshell:
activatedeactivate
see the "dialogshell" widget manual entry for those two. β
π« WIDGET-SPECIFIC METHODS π«
pathName cget optionβ returns the current value of the configuration option given by option. and option may have any of the values accepted by theiwidgets::canvasprintdialogcommand. literally any of them, no gatekeeping. πpathName configure ?option? ?value option value ...?β query or modify the configuration options of the widget. here's the tea, in order:- if no option is specified, it returns a list describing all of the available options for
pathName(peepTk_ConfigureInfofor info on the format of this list). - if option is specified with no value, then the command returns a list describing that one named option (and this list will be identical to the corresponding sublist of the value you'd get if no option was specified β yes, same info, smaller portion).
- if one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. nothing. silence. π«₯
- and option may have any of the values accepted by the
iwidgets::canvasprintdialogcommand.
- if no option is specified, it returns a list describing all of the available options for
π COMPONENTS π
- Name:
cpb - Class:
Canvasprintbox
The cpb component is the canvas print box for the canvas print dialog. see the "canvasprintbox" widget manual entry for the details on the cpb component item. π§Ί
π EXAMPLE π
steal this, it works:
package require Iwidgets 4.0
iwidgets::canvasprintdialog .cpb
.cpb activate
π AUTHOR π
Tako Schotanus
Tako.Schotanus@bouw.tno.nl
we stan. thank you for your service. π«‘π
π KEYWORDS π
canvasprintdialog, canvasprintbox, dialog, widget
so yeah, that's the whole page. the footer says it's a Tk manual page, from iwidgets::canvasprintdialog(1) β the [incr Widgets] corner of the Tk universe. that's your source and your version, bestie, and there's genuinely no date on this one so I'm not gonna invent one. πβ¨
go print something, you absolute legend. periodt. π
π¦ where this page comes from
- debian bookworm: iwidgets4-doc 4.1.1-2.1
- debian trixie: iwidgets4-doc 4.1.1-4
- ubuntu jammy: iwidgets4-doc 4.1.1-2.1
- ubuntu noble: iwidgets4-doc 4.1.1-2.1
- ubuntu resolute: iwidgets4-doc 4.1.1-4
- ubuntu stonking: iwidgets4-doc 4.1.1-4
- (c) 1995 Mark L. Ulferts
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms