On 1 Nov 1999, Hrvoje Niksic wrote:

> 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!

Educated guess after doing lots of C Gtk stuff:
I believe it needs to be either a GtkHRuler or a GtkVRuler rather than
just a GtkRuler. See:

class GtkRuler(GtkWidget):
class GtkHRuler(GtkRuler):
class GtkVRuler(GtkRuler):

<#include rant on C code not being able to have abstract \
non-instantiable classes>

-- 
_Deirdre   *   http://www.linuxcabal.net   *   http://www.deirdre.net
"Mars has been a tough target" -- Peter G. Neumann, Risks Digest Moderator
"That's because the Martians keep shooting things down." -- Harlan Rosenthal
<[EMAIL PROTECTED]>, retorting in Risks Digest 20.60

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to