Hi,

Im using a tkinter scrollbars for horinzontal and vertical scrolling. Well
the problem is I'm unable to scroll if I click on the arrows buttons of
scrollbars ( with both types of scrollbars)


Please suggest if I m missing some configuration.


My code is as below:

self.hsb = Scrollbar(appGuiFrame, orient = HORIZONTAL)
self.hsb.grid(row = 2,column = 0, sticky = E+W)
#vertical scroll bar
self.vsb = Scrollbar(appGuiFrame)
self.vsb.grid(row = 1,column = 2, sticky = N+S)



self.txtLogger = Text(appGuiFrame, \
                         height = 20,\
                         width = 100, \
                         state = DISABLED, \
                         xscrollcommand = self.hsb.set, \
                         yscrollcommand = self.vsb.set, \
                         wrap = NONE, \
                         font = ("courier",12))
 self.hsb.config(command = self.txtLogger.xview())
 self.vsb.config(command = self.txtLogger.yview())


Please help.


Thanks and regards,
Rajat
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to