[Tutor] X11 Bitmaps in windows...
Glen Wheeler
wheelege@tsn.cc
Sat, 28 Apr 2001 00:23:02 +1000
This is a multi-part message in MIME format.
------=_NextPart_000_04DE_01C0CF79.63290900
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all,
I'm looking for some way to make a bitmap in windows. I have been =
looking on the 'net for any tool - but all I find are =
unix/linux/not-windows utilities.
The reason I'd like an X11 bitmap is so I can use it for my icon in a =
tkinter program I'm making. I am sure that I can make a normal bitmap =
with colours as my icon - because I have seen other tcl/tk programs do =
it. However, I cannot find any mention of it in the docs or the book =
'Python and Tkinter Programming'.
Specifically, this is what I'm trying to do...
from tkinter import *
root =3D TK()
myicon =3D BitmapImage(file=3Dr'C:\icon.bmp')
root.iconbitmap(icon)
Seems it only wants a monochrome bitmap in that case.
Thanks for any help,
Glen.
------=_NextPart_000_04DE_01C0CF79.63290900
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV> Hi all,</DIV>
<DIV> </DIV>
<DIV> I'm looking for some way to make a bitmap in windows. =
I have=20
been looking on the 'net for any tool - but all I find are=20
unix/linux/not-windows utilities.</DIV>
<DIV> The reason I'd like an X11 bitmap is so I can use it for my =
icon in=20
a tkinter program I'm making. I am sure that I can make a normal =
bitmap=20
with colours as my icon - because I have seen other tcl/tk programs do =
it. =20
However, I cannot find any mention of it in the docs or the book 'Python =
and=20
Tkinter Programming'.</DIV>
<DIV> Specifically, this is what I'm trying to do...</DIV>
<DIV> </DIV>
<DIV>from tkinter import *</DIV>
<DIV>root =3D TK()</DIV>
<DIV>myicon =3D BitmapImage(file=3Dr'C:\icon.bmp')</DIV>
<DIV>root.iconbitmap(icon)</DIV>
<DIV> </DIV>
<DIV> Seems it only wants a monochrome bitmap in that case.</DIV>
<DIV> </DIV>
<DIV> Thanks for any help,</DIV>
<DIV> Glen.</DIV></BODY></HTML>
------=_NextPart_000_04DE_01C0CF79.63290900--