xxxxxxxxxx
mefiz.com
# Note
# Make Sure you image png and remove the corners white space in image
from tkinter import *
from PIL import ImageTk
root = Tk()
def move_app(e):
print(e.x_root)
print(e.y_root)
root.geometry(f'+{e.x_root}+{e.y_root}')
bg_image_2=ImageTk.PhotoImage(file="frame.png")
root.wm_attributes('-transparentcolor','grey')
label=Label(image=bg_image_2,bd=0,bg='grey')
label.pack()
label.bind('<B1-Motion>',move_app)
root.overrideredirect(True)
root.mainloop()
xxxxxxxxxx
self.loadimage = tk.PhotoImage(file="rounded_button.png")
self.roundedbutton = tk.Button(self, image=self.loadimage)
self.roundedbutton["bg"] = "white"
self.roundedbutton["border"] = "0"
self.roundedbutton.pack(side="top")