We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The button widget is throwing an error when placed inside of a ttk.frame or any ttk widget as a parent to the tkmacosx Button.
ttk.frame
ttk
To Reproduce
import tkinter as tk import tkinter.ttk as ttk import tkmacosx as tkm root = tk.Tk() frame = ttk.Frame(root) frame.pack() button = tkm.Button(frame) button.pack() root.mainloop()
Expected behavior
Traceback (most recent call last): . . . File "/Users/saad/anaconda3/envs/base3.9/lib/python3.9/site-packages/tkmacosx/basewidgets/button_base.py", line 143, in borderless if self.cnf.get('bordercolor') == self.master['bg']: File "/Users/saad/anaconda3/envs/base3.9/lib/python3.9/tkinter/__init__.py", line 1644, in cget return self.tk.call(self._w, 'cget', '-' + key) _tkinter.TclError: unknown option "-bg"
The text was updated successfully, but these errors were encountered:
Fix Button not working with ttk widgets. (#19)
832fb92
Add partial "borderless" support to ttk (#19)
af2c0d4
Saadmairaj
Successfully merging a pull request may close this issue.
Describe the bug
The button widget is throwing an error when placed inside of a
ttk.frame
or anyttk
widget as a parent to the tkmacosx Button.To Reproduce
Expected behavior
The text was updated successfully, but these errors were encountered: