diff options
author | Johan Dahlin <johan@src.gnome.org> | 2004-12-23 12:48:57 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2004-12-23 12:48:57 +0000 |
commit | fb01e8a922cdbabeecaf7213e969e43424274214 (patch) | |
tree | d35f82b95f3cf074f4ec4be3af113015a7faf9b8 /examples/atk | |
parent | 442bd540bc875da1b46d72f505774462801200da (diff) | |
download | pygtk-fb01e8a922cdbabeecaf7213e969e43424274214.tar.gz |
Use stock items and other fixes for examples.
Fixes #156402 (Alan Horkan)
Diffstat (limited to 'examples/atk')
-rw-r--r-- | examples/atk/atk-demo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/atk/atk-demo.py b/examples/atk/atk-demo.py index 4048a7ae..238a00e6 100644 --- a/examples/atk/atk-demo.py +++ b/examples/atk/atk-demo.py @@ -6,7 +6,7 @@ import atk win = gtk.Window() win.connect('destroy', lambda win: gtk.main_quit()) -button = gtk.Button('Quit') +button = gtk.Button(stock=gtk.STOCK_QUIT) button.connect('pressed', lambda button: gtk.main_quit()) atk_button = button.get_accessible() atk_button.set_description('Be careful, clicking this button will exit') |