Search code examples
pythontkinterinstallationexedeb

Clicking an icon will run or install my python Tkinter desktop app which can also be usable to any PC


I'm expecting suggestion or sample example to make a python tkinter desktop application installable to any environment like as anyone can install it and use it to his/her PC without any difficulties. I googled and got some example but couldn't reach to my goal. Actually i don't know where to start, what do i need. Below the sample project and i want to make this installable. The example from you may be .exe, .deb or something like this. Thanks in advance.

#!/usr/bin/python
from Tkinter import *
import time
root = Tk()
time1 = ''
clock = Label(root, font=('times', 20, 'bold'))
clock.pack(fill=BOTH, expand=1)


def tick():
    global time1
    time2 = time.strftime('%H:%M:%S')
    if time2 != time1:
        time1 = time2
        clock.config(text=time2)
    clock.after(200, tick)
tick()
root.mainloop(  )

Solution

  • It's very easy and so simple if you use Pyinstaller which workable for windows and linux both. I had also problem like you and got solution from here. you should try this. very easy example i had ever seen.

    go here and discover solution