Tcl/Tk: Maximize window / determine if window is maximized?
问题 Can I find out if my toplevel window is maximized, and can I maximize it programmatically? I am using R's tcltk package 8.5 on Windows XP. The reason for the question is: I want to enforce a <Visibility> event by calling first withdraw and then deiconify. However, if the window was maximized before these two function calls, it is not after these calls. Is there an easier way to enforce the event? 回答1: You can discover the whether the window is maximized with wm state $toplevel (look for