Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from fltk import *
- class window(Fl_Window):
- a = [] #5
- b = [] #8
- c = []
- d = [] #9
- e = []
- f = []
- g = []
- h = []
- i = []
- one = []
- two = []
- three = []
- four = []
- five = []
- six = []
- seven = []
- eight = []
- nine = []
- un = []
- de = []
- trois = []
- quatre = []
- cinq = []
- six = []
- sept = []
- huit = []
- neuf = []
- sq = [a,b,c,d,e,f,g,h,i]
- column = [un,de,trois,quatre,cinq,six,sept,huit,neuf]
- box = []
- def __init__(self):
- loc = -1
- Fl_Window.__init__(self, (1000)+60, (1000)+60, 'elmo')
- self.begin()
- for xpos in range(3):
- for ypos in range(3):
- loc += 1
- for x in range(3):
- for y in range(3):
- self.sq[loc].append(Fl_Input(xpos*160 + 50*x, ypos*160 + 50*y,50,50))
- but = Fl_Button(500,100,50,50)
- but.callback(self.check)
- def check(self,host):
- row:
- def row(self,r):
- for x in range(9):
- w = window()
- w.show()
- Fl.run()
- Fl_Input
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement