Home > Software engineering >  Bring up macos print file dialog
Bring up macos print file dialog

Time:05-25

I found this(::tk::mac::PrintDocument) when going through the Tcl/Tk Man pages and a question I had a few months ago: "How can I print out a document with tkinter on mac or other systems?". If any of y'all know how to do that I would greatly appreciate the help

CodePudding user response:

I don't think this does what you think it does. It's not a function you can call in order to print a document. Rather, if your script defines a tcl procedure with that name (::tk::mac::PrintDocument), that procedure will be called via applescript and passed a filename. You will then be responsible for actually printing the file somehow.

For slightly more information see Platform Menus on tkdocs.com.

  • Related