Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. self.v = StringVar() #Stepper motor direction testing
  2. self.v.set("a")
  3. ttk.Label(self, text='Stepper Motor',font=SMALL_FONT).grid(row=3, column=1)
  4. Rad1 = ttk.Radiobutton(self, text="Clockwise",variable=self.v, value="a")
  5. Rad1.grid(row=9, column=1)
  6.  
  7. Rad2 = ttk.Radiobutton(self, text="Counterclockwise",variable=self.v, value="b")
  8. Rad2.grid(row=20, column=1)
  9.  
  10. button1 = ttk.Button(self, text="Test", command=self.validate_StepperMotor)
  11. button1.grid(row=55, column=1)
  12.  
  13. self.vv = StringVar() #Stepper motor speed testing
  14. self.vv.set("c")
  15. ttk.Label(self, text='Stepper Motor Acceleration', font=SMALL_FONT).grid(row=3, column=4)
  16. Rad3 = ttk.Radiobutton(self, text="Fast",variable=self.vv, value="c")
  17. Rad3.grid(row=9, column=4)
  18. Rad4 = ttk.Radiobutton(self, text="Slow",variable=self.vv, value="d")
  19. Rad4.grid(row=20, column=4)
  20.  
  21. button2 = ttk.Button(self, text="Test", command=self.validate_StepperAcc)
  22. button2.grid(row=55, column=4)
  23.  
  24. self.dc = StringVar() #DC motor direcion testing
  25. self.dc.set("e")
  26. ttk.Label(self, text='DC Motor', font=SMALL_FONT).grid(row=3, column=8)
  27. Rad5 = ttk.Radiobutton(self, text="Clockwise",variable=self.dc, value="e")
  28. Rad5.grid(row=9, column=8)
  29. Rad6 = ttk.Radiobutton(self, text="Counterclockwise",variable=self.dc, value="f")
  30. Rad6.grid(row=20, column=8)
  31. button3 = ttk.Button(self, text="Test", command=self.validate_DC)
  32. button3.grid(row=55, column=8)
  33.  
  34.  
  35. self.dca = StringVar() #DC motor speed testing
  36. self.dca.set("g")
  37. ttk.Label(self, text='DC Motor Acceleration', font=SMALL_FONT).grid(row=3, column=12)
  38. Rad5 = ttk.Radiobutton(self, text="Fast",variable=self.dca, value="g")
  39. Rad5.grid(row=9, column=12)
  40. Rad6 = ttk.Radiobutton(self, text="Slow",variable=self.dca, value="h")
  41. Rad6.grid(row=20, column=12)
  42. button4 = ttk.Button(self, text="Test", command=self.validate_DCAcc)
  43. button4.grid(row=55, column=12)
  44.  
  45.  
  46. button5 = ttk.Button(self, text='Return to HomePage', #A button to return to Homepage
  47. command=lambda: controller.show_frame(PageOne))
  48. button5.grid(row=360, column=6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement