Bitmaps in Tkinter

John Grayson johngrayson at home.com
Thu Aug 10 06:48:21 EDT 2000


In article <3991837C.5D281039 at rma.edu>,
  Robert <rhicks at rma.edu> wrote:
> Did you check the errata page at Manning?
>
> Hans Kristian Ruud wrote:
>
> > I am teaching myself Tkinter programming from the book
> > 'Python and Tkinter programming' by John  E. Grayson.
> >
> > I have a problem with bitmaps: e.g.when I try to run the example on
p.
> > 59:
> >


Well, you'd almost got it! The example uses a 'bitmaps' directory
in the Chapter04 example directory.

You added the line:

bitmap_path = 'D:\\usr\\X11R6.4\\include\\X11\\bitmaps\\'

but then never used it!

Try:

menuBar.addmenuitem('Buttons', 'command',
                     bitmap="@bitmap_path\\RotateLeft",
                     foreground='Yellow')


John Grayson


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list