Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. from tkinter import *
  2.  
  3. def do():
  4. global top
  5. top = Toplevel(root)
  6. button=Button(top, text = "Click", command = pis).pack()
  7. def pis():
  8. global top
  9. label = Label(top, text="You clicked").pack()
  10. root = Tk()
  11.  
  12.  
  13. button=Button(root, text = "Click", command = do).pack()
  14.  
  15. root.mainloop()
  16.  
  17. import os
  18. os.environ['TCL_LIBRARY'] = "C:\Users\<username>\AppData\Local\Programs\Python\Python35-32\tcl\tcl8.6"
  19. os.environ['TK_LIBRARY'] = "C:\Users\<username>\AppData\Local\Programs\Python\Python35-32\tcl\tk8.6"
  20.  
  21. base = None
  22.  
  23. if sys.platform == 'win32':
  24. base = "Win32GUI"
  25.  
  26. executables = [cx_Freeze.Executable("prog.py", base=base)]
  27.  
  28. cx_Freeze.setup(
  29. name = "SeaofBTC-Client",
  30. options = {"build_exe": {"packages":["tkinter"], "include_files":[]}},
  31. version = "0.01",
  32. description = "Sea of BTC trading application",
  33. executables = executables
  34. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement