Re: Toplevel background

"johnmc" <[email protected]>
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
On Tue, 6 Sep 2016 07:41:41 +0000, Vasilis Vlachoudis wrote
> Hi all,
> 
> I have a window which I make full screen with the option
> 
> tk = Tk()
> tk.attributes("-fullscreen", True)
> c = Canvas(tk, background="Black")
> c.pack(expand=YES, fill=BOTH, padx=0, pady=0)
> 
> and displays a full screen "Black" canvas. despite
> I h ave padx=pady=0 I always get 1 pixel White frame all around.
> I believe that it comes from the toplevel window. How can I remove this frame
> or change its color to black
> 
> Thanks in advance
> Vasilis


Hi Vasilis,

the 1 pixel white frame is coming from the canvas widget being in focus.

Simply change to :

c = Canvas(tk, background="Black", highlightthickness=0)

Regards,

John



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.