I don't know for sure, but just an off-the-cuff hunch: The ttk widgets have different signatures than the Tk widgets. I think that these arguments that you are setting are (if I recall correctly) some of the arguments that are different. I am wondering if somehow you have an import * clobbering a value.
Perhaps printing the value of LabelFrame to make sure that it is the class that you think that it is. On Tue, Feb 28, 2012 at 11:22 AM, Lynn Oliver <rayco...@gmail.com> wrote: > I have a main module that includes this statement correctly: > > self.fc_inFrame = LabelFrame(self.fc_Frame, height=150, width=300, > text="Input File Type", labelanchor=NW, relief="groove", bd=4, > font=self.boldfont) > > When I move that statement to another module, I get: > _tkinter.TclError: unknown option "-bd" > > If I change '-bd' to 'borderwidth' the error does not occur, but next I > get: > _tkinter.TclError: unknown option "-font" > > I've discovered that 'bd=4' and 'font=...' both work if I import: > from tkFileDialog import askopenfilename, asksaveasfilename, askdirectory > from Tkinter import * > import tkFont > from ttk import * > > And they both fail if I import only: > from Tkinter import * > import tkFont > from ttk import * > > Can anyone explain what is going on here? > > > > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss@python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss > >
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss