[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

[issue46117] tk could not refresh auto in mac os

2021-12-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't know why it doesn't work for you. The version of Tk looks recent enough. As I mentioned before I don't see this problem using the script in your initial message, it works fine both with and without changing the size of the window. You could try

[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

[issue46117] tk could not refresh auto in mac os

2021-12-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: The script seems to work fine for me, python 3.10.1 on macOS 12.1. I used the python.org installer. Did you install Python from source or using the installer? What's the output of ``python3 -m test.pythoninfo``, in particular the lines related to Tcl/Tk at

[issue46117] tk could not refresh auto in mac os

2021-12-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: The macOS system tk, 8.5.9, is over a decade old and buggy. python.org python now always uses the recent 8.6 version included with the installer. -- ___ Python tracker

[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

[issue46117] tk could not refresh auto in mac os

2021-12-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE is neither the Python it is written it, nor the tkinter module it depends on. For this tracker, this is at most a tkinter on macOS 12 issue. But I suspect that it is an issue of the 3rd party tcl/tk on the new macOS version. There have been others.

[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 ->

[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: