Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- def do():
- global top
- top = Toplevel(root)
- button=Button(top, text = "Click", command = pis).pack()
- def pis():
- global top
- label = Label(top, text="You clicked").pack()
- root = Tk()
- button=Button(root, text = "Click", command = do).pack()
- root.mainloop()
- import os
- os.environ['TCL_LIBRARY'] = "C:\Users\<username>\AppData\Local\Programs\Python\Python35-32\tcl\tcl8.6"
- os.environ['TK_LIBRARY'] = "C:\Users\<username>\AppData\Local\Programs\Python\Python35-32\tcl\tk8.6"
- base = None
- if sys.platform == 'win32':
- base = "Win32GUI"
- executables = [cx_Freeze.Executable("prog.py", base=base)]
- cx_Freeze.setup(
- name = "SeaofBTC-Client",
- options = {"build_exe": {"packages":["tkinter"], "include_files":[]}},
- version = "0.01",
- description = "Sea of BTC trading application",
- executables = executables
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement