[Tutor] Qpixmaps

John Fabiani jfabiani at yolo.com
Thu Jun 3 13:30:11 EDT 2004


Hi,
I using PyQt as my GUI.  When I build a app from the QT designer and add 
menu's and toolbars the designer creates a bitmap of the icons for the 
app.  As follows
fileopen = [
    '16 13 5 1',
    '. c #040404',
    '# c #808304',
    'a c None',
    'b c #f3f704',
    'c c #f3f7f3',
    'aaaaaaaaa...aaaa',
    'aaaaaaaa.aaa.a.a',
    'aaaaaaaaaaaaa..a',
    'a...aaaaaaaa...a',
    '.bcb.......aaaaa',
    '.cbcbcbcbc.aaaaa',
    '.bcbcbcbcb.aaaaa',
    '.cbcb...........',
    '.bcb.#########.a',
    '.cb.#########.aa',
    '.b.#########.aaa',
    '..#########.aaaa',
    '...........aaaaa'
]

I think I understand that this a description of a bitmap and is painted 
(displayed) using QPixmap().  My question is how was the fileopen (a 
list) bitmap created.  Are there any tools that convert from a bmp file 
or some other file type to what is used by PyQt?   It seems that 
wxPython uses something similar. 

Thanks
John



More information about the Tutor mailing list