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

Zachary Ware zachary.ware at gmail.com
Wed Apr 15 16:04:58 CEST 2015


On Apr 15, 2015 9:59 AM, "boB Stepp" <robertvstepp at gmail.com> wrote:
>
> 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!!

To almost quote Jacob Kaplan-Moss from his keynote talk at PyCon this year,
"Hi, I'm [Zach], and I'm a mediocre programmer" :)

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

I honestly have no idea.

--
Zach
On a phone


More information about the Tutor mailing list