python - Hiding the console window -


problem

i started designing gui applications using python , tkinter. when freeze script using cxfreeze when run exe file on machine. first console window (a black dos shell in case of windows xp) opens , main window(tk() instance) gets initialized.

goal

the console window must not appear. tk() instance should appear.

code

root = tk()  label(root,text="hey").pack()  root.mainloop() 

specs

windows xp sp 3

python 2.7

tkinter 8.5

when using py2exe use windows=['main.py'] instead of console=['main.py'] when creating setup.py

for cx_freeze answer might you: https://stackoverflow.com/a/11374527/2256700


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -