Reputation: 11640
Traceback (most recent call last):
File "/Users/me/Documents/dev/myui/myui.py", line 134, in <module>
myCanvas = ttk.Canvas(myFrame, width=root.winfo_width(), height=30, borderwidth=1, padding='0 1 0 1', style='myCanvas.TFrame')
AttributeError: 'module' object has no attribute 'Canvas'
This tells me there is no such a Canvas class with themed-TK. How do I use canvas with ttk then? Just the same old tk.Canvas?
I'm running native Python 2.7 on Mac OS X El Capitan.
Upvotes: 2
Views: 4784
Reputation: 386210
There is no ttk canvas. You can use the Canvas
widget that is part of Tkinter.
Upvotes: 3