Python 2.7
from Tkinter import *
import os
class App:
def __init__(self, master):
self.frame = Frame(master)
self.b = Button(self.frame, text = 'Open', command = self.openFile)
self.b.grid(row = 1)
self.frame.grid()
def openFile(self):
os.startfile("C:\Users\David\Desktop\minecraft.jar")
root = Tk()
app = App(root)
root.mainloop()
using py2exe it shows this error and its not compiling: SyntaxError: 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape