Thanks to visit codestin.com
Credit goes to github.com

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-tkintertype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions