I want the text of the button to move just like marquee text when the cursor is over the button. I'm using Marquee widget from tkmacosx library which has the functionality to move the text when the cursor is over the text but here i want the same with the button.
How can i move the text of the button or is there any alternative for this? Please help
Sample code
from tkinter import *
from tkmacosx import *
text = """Please hover over the text to move it. \
This text will move only if the cursor hovers over \
the text widget."""
root = Tk()
root['bg'] = '#333'
m = Marquee(root, fg='#FEE715', bg='#101820', text=text)
m.pack(pady=10, padx=10)
button = Button(root, borderless=1, bg='#101820', fg='#FEE715')
button.pack()
button.bind('<Enter>', lambda _: m.play())
button.bind('<Leave>', lambda _: m.stop(True))
root.mainloop()
I took the example from the documentation of Marquee widget. Thanks in advance.