Custom Frame in TkinterCustomButton
acksyndude opened this issue · 0 comments
acksyndude commented
Hey!
Here's a sample of my code:
CloseBtn = TkinterCustomButton(titleBarCus
,text="YouTube",
corner_radius=1, fg_color="red", command=root.destroy)
CloseBtn.pack(side=RIGHT, anchor="ne")
When I'm adding a frame name in first parameter it shows me this error:
Traceback (most recent call last):
File "E:\Programming\Python Projects\ShareDocs\main.py", line 39, in <module>
shareDocsCloseBtn = TkinterCustomButton(titleBarCus
File "E:\Programming\Python Projects\ShareDocs\tkinter_custom_button.py", line 89, in __init__
self.canvas = tkinter.Canvas(master=self,
File "C:\Users\SimpleSmartTech\AppData\Local\Programs\Python\Python39\lib\tkinter\__init__.py", line 2684, in __init__
Widget.__init__(self, master, 'canvas', cnf, kw)
File "C:\Users\SimpleSmartTech\AppData\Local\Programs\Python\Python39\lib\tkinter\__init__.py", line 2568, in __init__
self.tk.call(
_tkinter.TclError: unknown color name ".!frame"
Too much Thanks For your Effort and providing it for free...
I got the solution from your code...