in reply to Tk main window protocole maximize

No, maximizing a window is not a protocol thing. In fact, Inter-Client Communication Conventions Manual mentions only 3 protocols: WM_TAKE_FOCUS, WM_SAVE_YOURSELF, and WM_DELETE_WINDOW.

Rosetta Code mentions the zoomed state as a way of maximizing a window, it doesn't work on other platforms, though. It also doesn't provide a way to capture the event.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,