how to minimize tkinter window code example
Example 1: how to minimize tkinter window
import Tkinter
w = Tkinter.Tk()
w.wm_state('iconic')
#or
w.iconify()
Example 2: how to manually close tkinter window
root = tk()
root.destroy()
import Tkinter
w = Tkinter.Tk()
w.wm_state('iconic')
#or
w.iconify()
root = tk()
root.destroy()