Tkinter scrolling

2009-10-27 Thread Felipe Ochoa
So I've been trying to put Frederik Lundh's ScrolledFrame ( http://effbot.org/zone/tkinter-autoscrollbar.htm ) into a class, and have the frame do more useful things. I tried switching out the references to root to a frame, and moving it into a class. It runs, until you try to make the frame/canvas

Inheriting and modifying lots of methods

2009-10-27 Thread Felipe Ochoa
I need to create a subclass from a parent class that has lots of methods, and need to decorate all of these. Is there pythonic way of doing this other than: def myDecorator (meth): @wraps(meth) def newMeth (*args, **kw): print("Changing some arguments here.") return meth(ne