Scrollbar needed to get attached to Canvas
Shah, Navneet
ns566645 at swt.edu
Sun Apr 23 23:06:47 EDT 2000
I am using Pmw Mega widget. I already have canvas with buttons in it.
How can I attached scrollbar to the canvas. Any help will be
appreciated.
Shah
My code goes as follows:
class Demo:
def __int__(self,parent)
#Create the canvas
self.sc=Pmw.ScrolledCanvas(parent,
borderframe=1,
labelpos ='n',
usehullsize = 1,
hull_width = 400,
hull_height = 300,
)
self.sc.pack()
button=Tkinter.Button(self.sc.interior(), text='Hello')
button.pack(side='left')
More information about the Python-list
mailing list