Guest User

Untitled

a guest
Feb 28th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 1.18 KB | None | 0 0
  1. ttk::entry .filename
  2. grid [ttk::button .prev -text "Previous" -command {prevframe}] -column 0 -row 0 -sticky news
  3. grid [ttk::button .next -text "Next" -command {nextframe}] -column 1 -row 0 -sticky nwes
  4.  
  5. grid [ttk::entry .path -textvariable path] -column 0 -row 1 -sticky nwes
  6. grid [ttk::button .addpaths -text "Add frames" -command {loadframes}] -column 1 -row 1
  7.  
  8. grid [ttk::entry .calibrate -textvariable calpath] -column 0 -row 2 -sticky nwes
  9. grid [ttk::spinbox .distance -from 0 -to 900 -textvariable distance] -column 1 -row 2 -sticky news
  10. grid [ttk::spinbox .width -from 0 -to 900 -textvariable width] -column 0 -row 3 -sticky news
  11. grid [ttk::button .docalibrate -text "Calibrate" -command {calibrate}] -column 1 -row 3
  12.  
  13. grid [ttk::button .findcircle -text "Find circle" -command {findcircle}] -column 0 -row 4
  14. grid [ttk::button .findall -text "Find all circles" -command {findall}] -column 1 -row 4
  15.  
  16. grid [canvas .canvas] -columnspan 2 -column 0 -row 5 -sticky news
  17. .canvas create image 0 0 -anchor nw -image screen
  18.  
  19. grid [ttk::label .framecounter -textvariable framecounter] -columnspan 2 -column 0 -row 6 -sticky news
  20.  
  21. bind . <Left> { prevframe }
  22. bind . <Right> { nextframe }
Add Comment
Please, Sign In to add comment