Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. from fltk import *
  2.  
  3. class window(Fl_Window):
  4. a = [] #5
  5. b = [] #8
  6. c = []
  7. d = [] #9
  8. e = []
  9. f = []
  10. g = []
  11. h = []
  12. i = []
  13. one = []
  14. two = []
  15. three = []
  16. four = []
  17. five = []
  18. six = []
  19. seven = []
  20. eight = []
  21. nine = []
  22. un = []
  23. de = []
  24. trois = []
  25. quatre = []
  26. cinq = []
  27. six = []
  28. sept = []
  29. huit = []
  30. neuf = []
  31. sq = [a,b,c,d,e,f,g,h,i]
  32. column = [un,de,trois,quatre,cinq,six,sept,huit,neuf]
  33. box = []
  34. def __init__(self):
  35. loc = -1
  36. Fl_Window.__init__(self, (1000)+60, (1000)+60, 'elmo')
  37. self.begin()
  38. for xpos in range(3):
  39.  
  40. for ypos in range(3):
  41. loc += 1
  42.  
  43. for x in range(3):
  44. for y in range(3):
  45. self.sq[loc].append(Fl_Input(xpos*160 + 50*x, ypos*160 + 50*y,50,50))
  46. but = Fl_Button(500,100,50,50)
  47.  
  48. but.callback(self.check)
  49.  
  50. def check(self,host):
  51. row:
  52.  
  53. def row(self,r):
  54. for x in range(9):
  55.  
  56.  
  57. w = window()
  58. w.show()
  59. Fl.run()
  60. Fl_Input
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement