I'm trying to write a code that prints a Frame to the screen with a Button and 
Canvas in it 
import tkinter as tk
class SampleApp(tk.Tk):
    def __init__(self):
        tk.Tk.__init__(self)
        self.entry = tk.Entry(self)
        self.button = tk.Button(self, text="Get", command=self.on_button)
        self.button.pack()
        self.entry.pack()
        self.text =tk.Text(height=20,width=10)
        self.text.pack()
        self.canvas=tk.Canvas(fill='Black')
        self.canvas.pack()
    def on_button(self):
        print(self.entry.get())
app = SampleApp()
app.mainloop()
As soon as I run it, I get an error:
_tkinter.TclError: unknown option "-fill"
I have no idea why.


tk.Canvas(fill='Black')has an option,fill, that isn't known (see e.g. effbot.org/tkinterbook/canvas.htm#Tkinter.Canvas.config-method).