[Tutor] How to get a Tkinter window to print a color copy of itself as a .pdf file?

boB Stepp robertvstepp at gmail.com
Wed Apr 15 15:58:26 CEST 2015


On Wed, Apr 15, 2015 at 8:50 AM, Zachary Ware
<zachary.ware+pytut at gmail.com> wrote:
>
> On Apr 15, 2015 9:38 AM, "boB Stepp" <robertvstepp at gmail.com> wrote:
>> Perhaps I am being foolish! But I do have my reasons, which, in this
>> case, is I wanted to take advantage of the pack and grid geometry
>> managers. These two tools seem to make the positioning of the widgets
>> much easier. Unless I am missing something, in a Canvas container I
>> will have to assign pixel coordinates for everything, which sounds
>> like a lot more work!
>
> Couldn't you just map a single Frame widget on the canvas, and use the Frame
> as your "outer" container?

You are SMART, I am NOT! That sounds like a great idea!!

Is this the intent of the Tkinter design to provide print
functionality? To always start with a Canvas container?

-- 
boB


More information about the Tutor mailing list