Demo entry 6344425

dddd

   

Submitted by Alek(andr on Jan 13, 2017 at 09:01
Language: Python 3. Code size: 654 Bytes.

# -*- coding: utf-8 -*-
from cx_Freeze import setup, Executable
import os
import sys

base = None
includes      = []
include_files = [r"D:\Python35-32\DLLs\tcl86t.dll", r"D:\Python35-32\DLLs\tk86t.dll"]

build_exe_options = {"includes": includes, "include_files": include_files}

if sys.platform == "win32":
    base = "Win32GUI"

os.environ['TCL_LIBRARY'] = r"d:\Python35-32\tcl\tcl8.6"
os.environ['TK_LIBRARY'] = r"d:\Python35-32\tcl\tk8.6"

setup(
    name = "py_cmd",
    options = {"build_exe": build_exe_options},
    version = "0.1",
    description = "py_cmd",
    executables = [Executable("test_tkinter.py", base=base)]
)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).