How to take out the Title Bar and adjust the screen size in Python Tkinter?

Asked

Viewed 876 times

-1

Hello! I would like to know how to put the screen in a smaller size on Python Tkinter. The program below leaves in full screen. So far I can not change the size.

from tkinter import *
janela = Tk()

janela.title(" >>> Janela menor sem a Barra de Título <<< ")

janela.wm_attributes('-fullscreen','true')   # retira a barra de título

janela.mainloop()

2 answers

0

Have you tried using the method geometry to resize your screen. Something like janela.geometry('500x500').

You can see some variations of this here.

  • Hello! Until yesterday I had not found the answer but after your tip I decided to do another search on the internet and right here on the site I found the answer using overrideredirect(True) instead of wm_attributes('-fullscreen','true'). I’ll put the code further down. Thank you.

0


Browser other questions tagged

You are not signed in. Login or sign up in order to post.