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 = gtk.GtkWindow(gtk.WINDOW_TOPLEVEL)

(example is arrow.py )

But if i change
  window = gtk.GtkWindow(gtk.WINDOW_TOPLEVEL)
with
  window = 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 = 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 !
_______________________________________________
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