Skip to content

Commit

Permalink
GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
fmhall committed Apr 16, 2019
1 parent bb5007d commit 966b104
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RaspberryPi-master/GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def init_window(self):
# command it runs on event is client_exit
file.add_command(label="Exit", command=self.client_exit)
file.add_command(label="Connect", command=self.getArduinos)
file.add_command(label="Stop All", command=self.stopAllMotors)
#added "file" to our menu
menu.add_cascade(label="File", menu=file)

Expand All @@ -48,7 +49,9 @@ def init_window(self):
#self.getArduinos()
def client_exit(self):
exit()

def stopAllMotors(self):
if self.ard_list:
stopAll(self.ard_list)
def showText(self):
for ard in self.ard_list:
text = Label(self, text=str(ard))
Expand Down

0 comments on commit 966b104

Please sign in to comment.