Wanted: A python icon for X11

Harald Hanche-Olsen hanche at math.ntnu.no
Fri Jan 28 00:36:03 EST 2000


+ Laurence Tratt <tratt at dcs.kcl.ac.uk>:

| Harald Hanche-Olsen wrote:
| 
| > Would anybody perhaps have some pixmap lying about that might be
| > (or become) a suitable icon for IDLE windows under X11?  [...]
| 
| When I ported Python to RISC OS, I got Mark Hammonds permission and
| pinched the bitmap from the Windows port [...]

Ah, of course.  After a bit of digging around it turned out quite easy
to do:  Since I have a dual-boot Windows/FreeBSD machine (where I
never use the Windows bit, but nevertheless I have installed python
there too), all I needed to do is mount the Windows disk and do

; convert '/win98/c/Program Files/Python/py.ico' py.xpm

(Ain't Imagemagick great?)  The resulting 32x32 X icon is short enough
to include right here:
/* XPM */
static char *magick[] = {
/* columns rows colors chars-per-pixel */
"32 32 7 1",
"  c Gray0",
". c Blue",
"X c Green",
"o c Red",
"O c #808000",
"+ c Yellow",
"@ c None",
/* pixels */
"@@@@@@@  @   @@@@@@@@@@@@@@@@@@@",
"@@@@@@ OO OOO @@@@@@@@@@@@@@@@@@",
"@@@@@       OO @@@@@@@@@@@@@@@@@",
"@@@@@ ++ +++ O @@@@@@@@@@@@@@@@@",
"@@@@@ +. +.. O @@@@@@@@@@@@@@@@@",
"@@@@@ +. +.. O @@@@@@@@@@@@@@@@@",
"@@@@@ ++ +++ O  @@@@@@@@@@@@@@@@",
"@@@@    O   OOO    @@@@@@@@@@@@@",
"@@  OOOOOOOOOOO OOO  @@@@@@@@@@@",
"@ OOOOOOOOOOOOOX OOOO @@@@@@@@@@",
" OOOOOOOOOOOXOXXX OOOO @@@@@@@@@",
" O OO OOOOXOXXXXX OOOO @@@@@@@@@",
" OOOOOOOXOXX  XXX OOOOO @@@@@@@@",
" XXOXOXOXXX  XOX XOOOOO @@@@@@@@",
" XXXXXXXX   OXX XXXOOOO @@@@@@@@",
"@ XOXOXO   XOX  OOXOOOO @@@@@@@@",
"@@   oo   OXX @ XXXOOOO @@@@@@@@",
"@@  oo  OXXX @@ OXOOOO @@@@@@@@@",
"@@ ooXOXXX  @@ XXOOOOO @@@@@@@@@",
"@@ooXXXX  @@ OOXOOOOO @@@@@@@@@@",
"@oo     @@@ XXXOOOOO @@@@@@@@@@@",
"o at o@@@@@@ OOXXOOOOO @@@@@@@@@@@ ",
"@@o@@@@  XXXOOOOOO @@@@@@@@@@@  ",
"@@@@@@ OOOXOOOOOO    @@@   @@ O ",
"@@@@@@ XXXOOOOOO OOOO @ OOO  OO ",
"@@@@@ XXXXOOOOO OOOOOO OOOOOOOO ",
"@@@@@ OOOXOOOOOOOOOOOOOOOOOOOO @",
"@@@@@ XXXXOOOOOOOOOOOOOOO  XX @@",
"@@@@@ XXXXXOOOOOXOOOOOOO @@  @@@",
"@@@@@@ OOOXXXXX  XXXXX  @@@@@@@@",
"@@@@@@@ XXXOX  @@     @@@@@@@@@@",
"@@@@@@@@     @@@@@@@@@@@@@@@@@@@"
};

I can do the others too (there is pyc, where the snake has closed its
eyes, and three identical looking icons with the snake framed inside a
window), if there is any interest.

but-this-is-just-what-I-wanted-ly y'rs,
-- 
* Harald Hanche-Olsen     <URL:http://www.math.ntnu.no/~hanche/>
- "There arises from a bad and unapt formation of words
   a wonderful obstruction to the mind."  - Francis Bacon



More information about the Python-list mailing list