Hi,
i am using Pygtk to make GUI . I have a frame in which i have added a VBox..
I want to add scrollbar in that VBox.. but couldn't figure out how to add it.

vscrollbar = gtk.VSscrollbar(adjustment=None)
AttributeError: 'module' object has no attribute 'VSscrollbar'

it's giving me this error

what should i do?

thanks in advance

You have spelt VScrollbar incorrectly, only 1 s!

Regards

hi,
thank you, the error is resolved.
but i cant seem to put it in use.

i have a long list, which require more than a page to cover up.
i want the scrollbar, so that i can see the whole list.
how do i make it attach to the list.

this is the snippet of the code

def __init__(self):
        self.window=gtk.Window(gtk.WINDOW_TOPLEVEL)
        self.window.maximize()
        self.window.connect("delete_event",self.delete_event)
        self.window.connect("destroy",self.destroy)

        hbox=gtk.HBox(False,1)
        vbox=gtk.VBox(False,1)
        hbox.pack_start(vbox,False,False,0)
        vbox.show()
        for i in xrange(100):
            label=gtk.Label(str(i))
            vbox.pack_start(label,False,False,0)
            label.show()


        vbox=gtk.VBox(False,1)
        hbox.pack_start(vbox,False,False,0)
        vbox.show()
        vscrollbar = gtk.VScrollbar()
        vbox.pack_start(vscrollbar,True,True,0)
        vscrollbar.show()

        hbox.show()
        self.window.add(hbox)
        self.window.show()

thank you :)

thank you,
these links r really helpfull

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.