Wow, ich habe es herausgefunden. Ich habe zwei Netze gemacht. Einer zum Import und der andere zum Auffrischen.
Bitte schön:
#name of file is python_script.py
class myapp()
def __init___(self,root):
self.root = root
main_menu = ttk.Frame(self.root)
ttk.Button(main_menu,text="REFRESH",command=lambda self=self:self._update())
def _update(self):
import python_script
python_script.main_refresh(self.root,python_script)
def main_refresh(root,python_script):
reload(python_script)
root.destroy()
python_script.main()
def main():
root = Tkinter.Tk()
myapp = myapp(root)
root.mainloop()
if __name__ == '__main__':
main()