#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this software. #----------------------------------------------------------------------------- import Tix as tix root = tix.Tk() root.title("Test for TiX") tix.Label(text="Press to exit").pack() tix.DirList(root).pack() tix.Button(root, text="Close", command=root.destroy).pack() root.bind("", lambda x: root.destroy()) tix.mainloop()