How do you make a button out of xpm(pxmap)?



Somebody please help me on this:

I'm writing an app which requires an xpm (pixmap) as
image for button ( I hope you got this.. )
 and when that image is clicked.. 

I need to replace that image with another xpm of same
size with my function executed meanwhile... 
( hope I'm clear on this too.. )

(The pixmap has not been inserted in a button widget)


Now I've drawn the pixmap, but all my attempts to
connect it to a signal handler went in vain... I tried
button_press_event, button_release_event etc.
Nothing worked..


Is there anything else I can do to achieve this?

Thank you.

________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]