Hi everyone!
I am new to py2exe. I tried to make one big exe file, but unfotunately it did not work.
It makes exe file, but when I try to run it, it crashes with "has encountered a problem and needs to close" error.
Wierd is, that if I switch bundle_files option off, it works without problem. Maybe I am doing something wrong?


_Source file:_

from Tkinter import *

def changeLabel(i):
        label.configure (text = str(i))

root = Tk()

label = Label(root, text = "0", font = "Courier 30 bold")
label.grid(row = 0, column = 0, columnspan=3)

for i in range(9):
        func = lambda arg=i : changeLabel(arg)
        button = Button(root, text = "\n  " + str(i) + "  \n", command = func, font = "Courier 15 bold")       
    button.grid(row = i / 3 + 1, column = i % 3)

mainloop()


_Setup file:_

from distutils.core import setup
import py2exe

options = {
    "bundle_files": 1,
    "compressed": 1,
    }

setup(
    options = {"py2exe": options},
    windows=["gui.pyw"],
    zipfile = None,
    )