Re: How to eliminate flickers when swapping frames?
Nam Nguyen via Tkinter-discuss <[email protected]> Wed, 28 Mar 2018 01:18:50 +0000
| Newsgroups | gmane.comp.python.tkinter |
|---|---|
| Message-ID | <CA+YNSmW_nbvOquD3WWEhoJTA8v-=O=DcZirVjjHDLBf557rFqg@mail.gmail.com> |
Is my code out of whack or is it "standard" enough to your seasoned eyes? Is there any guess as to a fix to this flickering, be it with my code, or Tk itself? Thanks! Nam On Tue, Mar 27, 2018, 2:24 PM Michael Lange <[email protected]> wrote: > Hi, > > On Tue, 27 Mar 2018 13:27:06 -0700 > Nam Nguyen via Tkinter-discuss <[email protected]> wrote: > > > I'm running i3-wm on Debian and this code tends to flicks more when I > > have my mouse over the buttons. > > Nam > > I see some flicker here, too. The additional flicker when the mouse > hovers over the window is apparently due to the <Enter> event that occurs > after the widget was packed, which switches the button's background to > the activebackground color. The (here rather tiny) flicker with the mouse > outside the window is maybe only due to the time Tk needs to redraw the > window. > This effect can be observed more closely when you set the background > color of one button for example to "red" and to "green" for the other. > You will get much more flicker all of a sudden. > > Best regards > > Michael > > .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. > > Witch! Witch! They'll burn ya! > -- Hag, "Tomorrow is Yesterday", stardate unknown > _______________________________________________ Tkinter-discuss mailing list [email protected] https://mail.python.org/mailman/listinfo/tkinter-discuss
smime.p7s
(application/pkcs7-signature, 4.7 KB) - not displayed