How to create a Tk bitmap?
Grant Edwards
nobody at nowhere.nohow
Sat Jun 17 12:56:29 EDT 2000
On Sat, 17 Jun 2000 09:25:10 -0700, Bob van der Poel <bvdpoel at uniserve.com> wrote:
>> Yes, I know. The call to BitmapImage() works fine, the error occurs when I
>> try to use the bitmap in a button like:
>>
>> Button(root, bitmap='queen')
>>
>> This is where the error occurs -- it doesn't matter if I use the name I
>> specified in the call to BitmapImage or let Tk generate one and retrieve it
>> with str(). What I can't figure out is how to use bobpic as the bitmap for
>> a Button.
>>
>
>More from my snippet:
>
> l = Label(w, image=bobpic, borderwidth=4, relief='sunken')
Yes, using it as the widget's image works, but I'm trying to
use it as the bitmap for the widget.
--
Grant Edwards grante Yow! My CODE of ETHICS
at is vacationing at famed
visi.com SCHROON LAKE in upstate
New York!!
More information about the Python-list
mailing list