#!/usr/bin/python # Tkinter interface to the McMillan installer / PyInstaller # (c) 2003 Alan James Salmoni - yes, all this bad code is all mine!!! # (c) 2011 Hartmut Goebel: adopted to PyInstaller 1.6, use subprocess # released under the MIT license import os import sys import subprocess from Tkinter import * import tkFileDialog import FileDialog class PyInstallerGUI: def make_checkbutton(self, frame, text): var = IntVar() widget = Checkbutton(frame, text=text, variable=var) widget.grid(sticky="NW") return var def __init__(self): root = Tk() root.title("PyInstaller GUI") fr1 = Frame(root, width=300, height=100) fr1.pack(side="top") fr2 = Frame(root, width=300, height=300, borderwidth=2, relief="ridge") fr2.pack(ipadx=10, ipady=10) fr4 = Frame(root, width=300, height=100) fr4.pack(side="bottom", pady=10) getFileButton = Button(fr1, text="Script to bundle ...") getFileButton.bind("