Edgar Denny wrote:

>I can't figure out how to set stock items in pygtk-1.99.7. I'm attaching
>a small test code, but it crashes with the error:
>
>Traceback (most recent call last):
>  File "./test.py", line 37, in ?
>    if __name__ == "__main__": main()
>  File "./test.py", line 34, in main
>    app = run_app()
>  File "./test.py", line 15, in run_app
>    gtk.stock_add( ("cake", "Cake", gtk.gdk.CONTROL_MASK, ord( "c"),
>"uk"))
>TypeError: items sequence members must be of form (stock_id, label,
>modifiers, keyval, domain)
>
>Can someone tell me what I'm doing wrong?
>
I believe the function takes a list of such tuples.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to