Commits

Anthony Tuininga committed 2333bbd

Added simple sample for Tk application.

  • Participants
  • Parent commits 1387567

Comments (0)

Files changed (2)

File samples/Tkinter/SimpleTkApp.py

+from Tkinter import *
+
+root = Tk()
+root.title('Button')
+Label(text='I am a button').pack(pady=15)
+Button( text='Button') .pack(side=BOTTOM)
+root.mainloop()
+

File samples/Tkinter/setup.py

+# A simple setup script to create an executable using Tkinter. This also
+# demonstrates the method for creating a Windows executable that does not have
+# an associated console.
+#
+# SimpleTkApp.py is a very simple type of Tkinter application
+#
+# Run the build process by running the command 'python setup.py build'
+#
+# If everything works well you should find a subdirectory in the build
+# subdirectory that contains the files needed to run the application
+
+import sys
+
+from cx_Freeze import setup, Executable
+
+base = None
+if sys.platform == "win32":
+    base = "Win32GUI"
+
+setup(
+        name = "simple_Tkinter",
+        version = "0.1",
+        description = "Sample cx_Freeze Tkinter script",
+        executables = [Executable("SimpleTkApp.py", base = base)])
+