Lines Matching refs:y1
52 def multicellvalue(self, x1, y1, x2, y2):
55 if y1 > y2:
56 y1, y2 = y2, y1
58 for y in range(y1, y2+1):
77 def clearcells(self, x1, y1, x2, y2):
78 for xy in self.selectcells(x1, y1, x2, y2):
81 def clearrows(self, y1, y2):
82 self.clearcells(0, y1, sys.maxsize, y2)
87 def selectcells(self, x1, y1, x2, y2):
90 if y1 > y2:
91 y1, y2 = y2, y1
93 if x1 <= x <= x2 and y1 <= y <= y2]
95 def movecells(self, x1, y1, x2, y2, dx, dy):
100 if y1 > y2:
101 y1, y2 = y2, y1
102 assert x1+dx > 0 and y1+dy > 0
107 cell = cell.renumber(x1, y1, x2, y2, dx, dy)
108 if x1 <= x <= x2 and y1 <= y <= y2:
118 def deleterows(self, y1, y2):
119 if y1 > y2:
120 y1, y2 = y2, y1
121 self.clearrows(y1, y2)
122 self.movecells(0, y2+1, sys.maxsize, sys.maxsize, 0, y1-y2-1)
414 def renumber(self, x1, y1, x2, y2, dx, dy):
422 if x1 <= x <= x2 and y1 <= y <= y2:
440 x1, y1, x2, y2 = m.groups()
443 s = "cell(%s, %s)" % (x1, y1)
446 s = "cells(%s, %s, %s, %s)" % (x1, y1, x2, y2)
681 x1, y1 = self.currentxy
685 if y1 > y2:
686 y1, y2 = y2, y1
688 if x1 <= x <= x2 and y1 <= y <= y2:
693 self.setbeacon(x1, y1, x2, y2)
695 def setbeacon(self, x1, y1, x2, y2):
696 if x1 == y1 == 1 and x2 == y2 == sys.maxsize:
699 if y1 == y2:
700 name = "%d" % y1
702 name = "%d:%d" % (y1, y2)
703 elif (y1, y2) == (1, sys.maxsize):
717 x1, y1 = self.currentxy
721 if y1 > y2:
722 y1, y2 = y2, y1
724 if x1 <= x <= x2 and y1 <= y <= y2: