i have a basic window using tkinter with a button
that opens hello message
but before the hello message i want it to run a basic python script the exit the script then show the message
the script is in the same dir and is called on.py
that opens hello message
but before the hello message i want it to run a basic python script the exit the script then show the message
Code:
import Tkinter import tkMessageBox top = Tkinter.Tk() def FstartCallBack(): tkMessageBox.showinfo( "Action Complete", "Activated") B = Tkinter.Button(top, text ="Activate", command = FstartCallBack) B.pack() top.mainloop()
Comment