Is there an explanation why this trivial program doesn't work?
#!/usr/bin/python
import gtk
w = gtk.GtkWindow()
vbox = gtk.GtkVBox()
vbox.add(gtk.GtkRuler()) # Error here!
w.add(vbox)
w.show_all()
gtk.quit_add_destroy(1, w)
gtk.mainloop()
The reported error is:
--- working directory: /home/hniksic/python/
% ./x.py
Traceback (innermost last):
File "./x.py", line 7, in ?
vbox.add(gtk.GtkRuler()) # Error here!
File "/usr/lib/python1.5/site-packages/gtk.py", line 494, in add
_gtk.gtk_container_add(self._o, child._o)
File "/usr/lib/python1.5/site-packages/gtk.py", line 70, in __getattr__
raise AttributeError, attr
AttributeError: _o
Exit 1 04:39:54
When I comment out the "error here" line, or use a widget other than
GtkRuler(), things work.
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]