Skip to content

Add tkinter.Canvas.tk_print() and tkinter.Text.tk_print() to expose the native print dialog #153256

Description

@serhiy-storchaka

Feature or enhancement

Tk 8.7/9.0 added the tk print command, which opens the native platform print dialog to print the contents of a canvas or text widget. tkinter currently has no interface to it.

I propose adding a tk_print() method to tkinter.Canvas and tkinter.Text (the only widgets tk print supports).

This complements the other native dialog wrappers in tkinter (tkinter.colorchooser, tkinter.filedialog, tkinter.fontchooser).

Tk manual: https://www.tcl-lang.org/man/tcl8.7/TkCmd/print.html

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions