Thank you for such a rapid response, are the asterisk similar to a C pointer ?
I put a sample into my own code and it worked perfectly but I feel because I am not fully understanding I am just hard coding the values.
Below worked great
Jeff
I put a sample into my own code and it worked perfectly but I feel because I am not fully understanding I am just hard coding the values.
Below worked great
class ClassName(Tk.Frame): def __init__( self, parent, **options ): Tk.Frame.__init__( self, parent, **options ) options = {'bg': 'tan'} self.parent=parent self.canvas=Canvas(self,width=300,height=300,**options) self.canvas.grid(row=0,column=0)In my main class I would like to pass the options when I create the instance of widget_1 and widget_2 from ClassName
class Master_Gui(): def __init__(self): self.root=Tk() self.root.title("Widget Control") self.root.resizable(False,False) self.display_widgets(self.root) def display_widgets(self,root): self.widget_1=ClassName(self.root) #pass in the bg color ?? self.widget_1.grid(row=0,column=0) self.widget_2=ClassName(self.root) #pass in the bg color ?? self.widget_2.grid(row=0,column=1)Sorry if I am slow to catch on but once I see it then it will be there forever.
Jeff