diff --git a/example/oink/__main__.py b/example/oink/__main__.py index f0ceb1b..662e833 100644 --- a/example/oink/__main__.py +++ b/example/oink/__main__.py @@ -2,14 +2,24 @@ import tkinter import desktop_app -desktop_app.set_process_appid('oink') +desktop_app.set_process_appid("oink") + def main(): root = tkinter.Tk(className=sys.argv[0]) - root.geometry("300x300") + root.geometry("500x300") w = tkinter.Label(root, text="Oink!") - w.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER) + w.place(relx=0.5, rely=0.3, anchor=tkinter.CENTER) + sys_info = ( + f"sys.prefix: {sys.prefix}\n" + f"sys.exec_prefix: {sys.exec_prefix}\n" + f"sys.executable: {sys.executable}" + ) + s = tkinter.Label(root, text=sys_info, justify=tkinter.LEFT) + s.place(relx=0.05, rely=0.5, anchor=tkinter.W) + print(sys_info) root.mainloop() -if __name__ == '__main__': - main() \ No newline at end of file + +if __name__ == "__main__": + main()