[pygtk] Working only

Festila Catalin catalinfest at gmail.com
Sun Mar 9 20:56:16 WST 2008


Hello !
I try to learn pygtk and i use some example from
http://www.pygtk.org/pygtktutorial/sec-arrows.html
The problems is :
If i try execute the example in Wing IDE on Debug I/O i have :
Gtk-Message: Failed to load module "atk-bridge": libatk-bridge.so: cannot
open shared object file: No such file or directory
and on tab Exceptions i have :
File "/home/th/arrow.py", line 57, in ?
  Arrows()
File "/home/th/arrow.py", line 20, in __init__
  window =3D gtk.GtkWindow(gtk.WINDOW_TOPLEVEL)

(example is arrow.py )

But if i change
  window =3D gtk.GtkWindow(gtk.WINDOW_TOPLEVEL)
with
  window =3D gtk.Window(gtk.WINDOW_TOPLEVEL)
and cut Gtk from each widgets the scripts work but i have in Debug I/O:
Gtk-Message: Failed to load module "atk-bridge": libatk-bridge.so: cannot
open shared object file: No such file or directory
/home/thor/arrow.py:31: GtkDeprecationWarning: gtk.FALSE is deprecated, use
False instead
  box =3D gtk.HBox(gtk.FALSE, 0)
/home/thor/arrow.py:39: GtkDeprecationWarning: gtk.FALSE is deprecated, use
False instead
  box.pack_start(button, gtk.FALSE, gtk.FALSE, 3)
/home/thor/arrow.py:42: GtkDeprecationWarning: gtk.FALSE is deprecated, use
False instead
  box.pack_start(button, gtk.FALSE, gtk.FALSE, 3)
/home/thor/arrow.py:45: GtkDeprecationWarning: gtk.FALSE is deprecated, use
False instead
  box.pack_start(button, gtk.FALSE, gtk.FALSE, 3)
/home/thor/arrow.py:48: GtkDeprecationWarning: gtk.FALSE is deprecated, use
False instead
  box.pack_start(button, gtk.FALSE, gtk.FALSE, 3)
/home/thor/arrow.py:53: GtkDeprecationWarning: gtk.mainloop is deprecated,
use gtk.main instead
  gtk.mainloop()

What is correct code ? Thanks !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20080309/357b37e8/at=
tachment.htm


More information about the pygtk mailing list