So, I feel like this should be kind of a simple thing to do. Yet, I am having so much troubel with it. I have tinkered around with the after method, but it either doesn't ork, or runs VERY slow. It also doesn't let me graph work (I am graphing serial data with my GUI).
Then, sys.exit() only works in IDLE3. Otherwise, the "system" that exits is the whole GUI.
I am new. Not sure how to post code.... So, here is a bit of code:
****indents only messed up because of paste
This code is my "closing" function to "close" the other functions.....
def restart (self):
self.running = False
self.ani = None
os.system("sudo mkdir " + str(subfolder))
os.system("sudo mv /home/pi/Documents/* " + str(subfolder))
print("stopthisnow")
root.after_cancel (self.get_data)
root.after_cancel(self.update_graph)
#root.update_idletasks()
#self.after_cancel(self.after_id)
#self.after_cancel(self.after_id2)
#return None
Then, sys.exit() only works in IDLE3. Otherwise, the "system" that exits is the whole GUI.
I am new. Not sure how to post code.... So, here is a bit of code:
****indents only messed up because of paste
This code is my "closing" function to "close" the other functions.....
def restart (self):
self.running = False
self.ani = None
os.system("sudo mkdir " + str(subfolder))
os.system("sudo mv /home/pi/Documents/* " + str(subfolder))
print("stopthisnow")
root.after_cancel (self.get_data)
root.after_cancel(self.update_graph)
#root.update_idletasks()
#self.after_cancel(self.after_id)
#self.after_cancel(self.after_id2)
#return None