I created the exe from the python GUI program that I put together, it all works fine as the function goes, but whenever someone starts it, their screen turns black for a second and then goes back to the windows and starts the program.
Is this a common problem? or it could be something specific to the code (it's very simple, just a weight calculator for a rectangular plate). The code is as follows (I used cxfreeze to package it). Note that I'm not a python programmer, it just seemed like this is the easiest way to do this using the GUI (I used easyGUI to create it):
import easygui as eg msg = "Enter Plate Information eg 9600 2400 6" title = "Plate dimensions" fieldNames = ["Width", "Length", "thickness"] fieldValues = [] fieldValues = eg.multenterbox(msg, title, fieldNames) width = float(fieldValues[0]) length= float(fieldValues[1]) thick= float(fieldValues[2])
(I forgot some error checking because it is just an if-else statement)
fieldValues = eg.multenterbox(errmsg, title, fieldNames, fieldValues) total = (width * length * thick * 7.85) eg.msgbox(total / 1000000, "Kilograms")
This happens with the code I put together and the code I downloaded for other things. All that was done through cxfreeze.
This is only a blank screen, which I see as a problem, I can clarify the code as soon as I recognize Python.
source share