[issue46117] tk could not refresh auto in mac os

2021-12-27 Thread asper


asper  added the comment:

It looks like that Python3.10.1 has solved this question.
Now use grid_remove() and grid() to switch two widgets smoother than before on 
my mac system. 
Ronald Oussoren, Thank you for your time and advice, I could close this issue.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue46117>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46117] tk could not refresh auto in mac os

2021-12-23 Thread asper


asper  added the comment:

tkinter.TCL_VERSION: 8.6
tkinter.TK_VERSION: 8.6
tkinter.info_patchlevel: 8.6.11
zlib.ZLIB_RUNTIME_VERSION: 1.2.11
zlib.ZLIB_VERSION: 1.2.11
On my system, it shows like that.
It works well if not change the widnow's size of program, but once change the 
window's size manually, press "change" button, it shows a little delay.

--

___
Python tracker 
<https://bugs.python.org/issue46117>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46117] tk could not refresh auto in mac os

2021-12-17 Thread asper


asper  added the comment:

Thank you for your reply. The phenomenon is still exist on mac os, when I add 
'root.update_idletasks()'. The version of tk on mac os is 8.5.9, the version of 
tk is show 8.6.12 from the enviroment of python3.10.
Now, I use lower() and lift() to switch two frame in tkinter, it works well.

--

___
Python tracker 
<https://bugs.python.org/issue46117>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46117] tk could not refresh auto in mac os

2021-12-17 Thread asper


asper  added the comment:

sorry, I update mac os to 12.1, when press "change" button, this simple sample 
can refresh the label'text, but have a delay. when I use grid_remove() and 
grid() to switch two frame, it cannot refresh auto, must move the mouse can 
refresh.

--
status: open -> pending

___
Python tracker 
<https://bugs.python.org/issue46117>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46117] tk could not refresh auto in mac os

2021-12-17 Thread asper


New submission from asper :

from tkinter import *
from tkinter import ttk


def change():
global flag
if flag == 1:
namelbl.grid_remove()
namelbl2.grid(column=0, row=0)
entry2.grid(column=1, row=0, sticky=(W, E))
flag = 2
elif flag == 2:
namelbl2.grid_remove()
namelbl.grid()
flag = 1


root = Tk()
root.columnconfigure(1, weight=1)

namelbl = ttk.Label(root, text="Name")
namelbl2 = ttk.Label(root, text="Name2")
entry1 = ttk.Entry(root)
entry2 = ttk.Entry(root)

ok = ttk.Button(root, text="change", command=change)
ok.grid(column=1, row=1)
namelbl.grid(column=0, row=0)
entry1.grid(column=1, row=0, sticky=(W, E))
flag = 1

root.mainloop()

I run the script in mac os 12.1, use python3.10 download from python.org. when 
the main window show, I change it's size, and press the   "change" button, the 
script change the label'text from "Name" to "Name2".When press the button 
again, the label'text from "Name2" to "Name". but the label cannot refresh the 
text, it show nothing. when I move the mouse, the text showed immediately. 
The script run normally on windows system.
I use the grid_remove() and grid() to switch frame.

--
assignee: terry.reedy
components: IDLE
messages: 408780
nosy: asper, terry.reedy
priority: normal
severity: normal
status: open
title: tk could not refresh auto in mac os
type: behavior
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue46117>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com