switch -- [tk windowingsystem] {
aqua { set thisPlatform "macosx" }
classic { set thisPlatform "macintosh" }
win32 { set thisPlatform "windows" }
x11 { set thisPlatform "unix" }
}
转载于:https://www.cnblogs.com/greencolor/archive/2011/09/17/2179932.html