[pygtk] Setting stock items
Sat, 16 Feb 2002 11:07:26 +0800
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"),
>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.