Hello all !

I am using Python 3.6 and all the latest module updates under Windows10 on a 64 bit machine /*but */*/I really do not understand what happens/* !.

After receiving the following message when trying to execute an CX_FREEZE generated program (that works perfectly as a script ! )

I made the following test :

Hereafter I copied 3 images (in black) showing that I can't start the */same python script from a directory generated by CX_FREEZE. /*The message says that tkinter can't be imported (same as the one in the case of starting the EXE program) ! For those who would like to help, find the tk1.py script attached to this mail.

/1. Starting *tk1.py from the exe.win-amd64-3.6* *directory *(generated by the build procedure) :/

/2. Starting *tk1.py from the build* *directory *(generated by the build procedure - same session as the previous one) :/

/3. Starting *tk1.py from a manually created directory*, same level as //exe.win-amd64-3.6 :/

Please give me a hint if you know the explanation... Thanks,

Pierre

import tkinter as tk
from tkinter import *
import math as mt
from math import *

canvas=tk.Canvas(width=800,height=600,bg="white")
canvas.pack(expand=True)
canvas.create_oval(100,100,500,500)
angle=0
xc,yc=300,300
while angle < 2*pi:
    xh,yh=300+200*cos(angle),300+200*sin(angle)
    canvas.create_line(xc,yc,xh,yh,fill="red")
    angle += 2*pi/256.
    print (angle)


tk.mainloop()
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to