Re: Wrap Tk widget using a class

2008-01-10 Thread Fredrik Lundh
Kevin Walzer wrote: > Here is an example of how I'm calling this in my code: > > from Macnotebook import Macnotebook > > self.prefbook = Macnotebook.notebook(self.prefframe) > self.prefbook.pack(fill=BOTH, expand=YES, side=TOP) you're attempting to call the method in a class

Wrap Tk widget using a class

2008-01-10 Thread Kevin Walzer
I'm trying to wrap a subset of a Tcl/Tk widget set called tclmacbag (see http://tclmacbag.autons.net/) for use in my Tkinter application, using a "macnotebook" class. I'm having some difficulty getting things configured correctly. Here is my class code: from Tkinter import * class Macnoteboo