Answers for "tkinter remove window border"

2

tkinter remove window border

from tkinter import *
#MAKE SURE TO PIP INSTALL TKINTER IN THE TERMINAL!
root = Tk()

#root.iconbitmap(r'C:\Users\Moon\Pictures\Python\MyIcon.png') #if we use this command the picture will move diagonally every run and then reset.
root.geometry("200x250")
#This is the size of the screen

img = PhotoImage(file=r'C:\Users\Moon\Pictures\Python\MyPicture.png')
#Replace the directory with your picture's directory 

Label(root,image=img).pack()

root.overrideredirect(True)
root.mainloop()
Posted by: Guest on October-19-2021
0

tkinter canvas remove border

<var_name> = tkinter.Canvas([YOUR PARAMS], bd=0, highlightthickness=0, relief='ridge')
Posted by: Guest on March-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language