Ok so I'm trying to use menu bars to grey out different widgets in my gui
il show you all the lines that i think are important and the error messages for each command i have tried.
root = Tk()
input_text = Text(root, height = 10, width = 25).grid(row = 1, column = 1, sticky = N+S+E+W)
thats assigning the main window as root, and creating a text entry box assigned to input_text with root as its master. The rest of the options there are not important.
These are the commands i tried to get the menu button to grey out the input_text widget.
The first command and error
input_menu.add_radiobutton(label='Input From File', variable = input_option, command = root.input_text(state = DISABLED))
input_menu.add_radiobutton(label='Input From File', variable = input_option, command = root.input_text(state = DISABLED))
File "C:\Python25\lib\lib-tk\Tkinter.py", line 1721, in __getattr__
return getattr(self.tk, attr)
AttributeError: input_text
The next command and error was
input_menu.add_radiobutton(label='Input From File', variable = input_option, command = input_text(state = DISABLED))
input_menu.add_radiobutton(label='Input From File', variable = input_option, command = input_text(state = DISABLED))
TypeError: 'NoneType' object is not callable
Any help with this would be great, I'm sorry if the code isn't all on the right lines.