I have an icon XPM from date (icon_xpm ) [...]) inside the code of the
application.

I want to use these icon in a gtk.Toolbar(), but the problem is:

------------------------------------------------------------------
icon_xpm = [ ... ]
...
toolbar.append_item('Reflejar','Reflejar imagen', None, icon_xpm,
callback, None)
------------------------------------------------------------------

And rise the error:

[EMAIL PROTECTED] ImageViewer]$ ./imageviewer.py
Traceback (most recent call last):
  File "./imageviewer.py", line 270, in ?
    herramientas = CreaBarraHerramientas(mainwindow)
  File "./imageviewer.py", line 151, in CreaBarraHerramientas
    toolbar.append_item( 'Reflejar -', 'Reflejar la imagen
horizontalmente', None, icon_xpm, gtk.mainquit, None)
TypeError: forth argument must be a GtkWidget or None
[EMAIL PROTECTED] ImageViewer]$



How I can to introduce the icon in my toolbar?

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to