| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
The native print dialog (the "tk print" command, Tk 8.7/9.0+) only supports canvas and text widgets, so expose it as a method of Canvas and Text rather than of Misc. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Documentation build overview28 files changed · + 1 added · ± 27 modified + Added ± Modified |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Add a tk_print() method to tkinter.Canvas and tkinter.Text wrapping the tk print command (Tk 8.7/9.0 and newer), which opens the native platform print dialog to print the contents of the widget.
Since tk print only supports canvas and text widgets, the method is added to those two classes rather than to the common Misc base class.
Calling the method opens the native print dialog, so it cannot be exercised in the test suite; the test only checks that the method is present on Canvas and Text and absent elsewhere.