Python Forum

Full Version: Standlone Tkinter cxFreeze
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I would like to make a standalone-exe with Cx-Freeze for a basic Tkinter-GUI ("Hello World"):

import tkinter as tk

class Window(tk.Tk):
    def __init__(self):
        super().__init__()
        self.title("Hello Tkinter")

        label = tk.Label(self, text="Hello World!")
        label.pack(fill=tk.BOTH, expand=1, padx=100, pady=50)


if __name__ == "__main__":
    window = Window()
    window.mainloop()


Could someone help with the setup.py to make a standaloneexe?