I have a Tkinter button, and for some reason, it accepts width=xx, but not height=xx
I'm using Python 3.5, with Tkinter support by default, on ubuntu 16.04
Here's the code sample:
# works: button_enter = ttk.Button(self.frm, text='ok', width = 100)
# works: button_enter.config(width=25)
# fails: button_enter = ttk.Button(self.frm, text='ok', height=15, width = 25)
# fails: button_enter.config(width=25, height=15)
button_enter = ttk.Button(self.frm, text='ok')
button_enter.config(width=25)
button_enter['command'] = self.some_method
button_enter.grid(column=2, row = 0, sticky=W)
Here is the error I'm getting:
Traceback (most recent call last):
File "pygo.py", line 44, in <module>
app = App()
File "pygo.py", line 34, in __init__
button_enter.config(height=15, width=25)
File "/usr/lib/python3.5/tkinter/__init__.py", line 1333, in configure
return self._configure('configure', cnf, kw)
File "/usr/lib/python3.5/tkinter/__init__.py", line 1324, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: unknown option "-height"
Can it be made to work? Or if it's a bug, where should I report it?