Lines Matching refs:y2
49 def multicellvalue(self, x1, y1, x2, y2): argument
52 if y1 > y2:
53 y1, y2 = y2, y1
55 for y in range(y1, y2+1):
74 def clearcells(self, x1, y1, x2, y2): argument
75 for xy in self.selectcells(x1, y1, x2, y2):
78 def clearrows(self, y1, y2): argument
79 self.clearcells(0, y1, sys.maxint, y2)
84 def selectcells(self, x1, y1, x2, y2): argument
87 if y1 > y2:
88 y1, y2 = y2, y1
90 if x1 <= x <= x2 and y1 <= y <= y2]
92 def movecells(self, x1, y1, x2, y2, dx, dy): argument
97 if y1 > y2:
98 y1, y2 = y2, y1
104 cell = cell.renumber(x1, y1, x2, y2, dx, dy)
105 if x1 <= x <= x2 and y1 <= y <= y2:
115 def deleterows(self, y1, y2): argument
116 if y1 > y2:
117 y1, y2 = y2, y1
118 self.clearrows(y1, y2)
119 self.movecells(0, y2+1, sys.maxint, sys.maxint, 0, y1-y2-1)
429 def renumber(self, x1, y1, x2, y2, dx, dy): argument
437 if x1 <= x <= x2 and y1 <= y <= y2:
455 x1, y1, x2, y2 = m.groups()
461 s = "cells(%s, %s, %s, %s)" % (x1, y1, x2, y2)
697 x2, y2 = self.cornerxy or self.currentxy
700 if y1 > y2:
701 y1, y2 = y2, y1
703 if x1 <= x <= x2 and y1 <= y <= y2:
708 self.setbeacon(x1, y1, x2, y2)
710 def setbeacon(self, x1, y1, x2, y2): argument
711 if x1 == y1 == 1 and x2 == y2 == sys.maxint:
714 if y1 == y2:
717 name = "%d:%d" % (y1, y2)
718 elif (y1, y2) == (1, sys.maxint):
733 x2, y2 = self.cornerxy or self.currentxy
736 if y1 > y2:
737 y1, y2 = y2, y1
739 if x1 <= x <= x2 and y1 <= y <= y2: