Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tkinter call action to py file

#!/usr/bin/python
import sys
import os
import Tkinter
import tkMessageBox
top=Tkinter.Tk()

def helloCallBack():
    os.system('SendEmail.py')

B=Tkinter.Button(top,text="hello",command= helloCallBack)
B.pack()
top.mainloop()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #tkinter #call #action #py #file
ADD COMMENT
Topic
Name
9+8 =