Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. class test_button:
  2. def __init__(self, master):
  3. self.master = master
  4. self.next_button = None
  5.  
  6. if not (self.next_button):
  7. self.next_button = Button(root, background="orange red", activebackground="orangered3", text="Next Test Config", command=self.next_button_code).grid(row=1, column=1)
  8.  
  9. def next_button_code(self):
  10. if self.next_button:
  11. self.next_button.destroy(); self.next_button = None
  12.  
  13. # Top Local Variables
  14. root = Tk()
  15.  
  16. # Top Level Default Codes
  17. my_gui = test_button(root)
  18.  
  19. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement