Lines Matching +full:python3 +full:- +full:paste
1 #!/usr/bin/env python3
4 SS1 -- a spreadsheet-like application.
122 self.movecells(0, y2+1, sys.maxsize, sys.maxsize, 0, y1-y2-1)
132 self.movecells(x2+1, 0, sys.maxsize, sys.maxsize, x1-x2-1, 0)
188 sep += "-"*colwidth[x]
216 with open(filename, "w", encoding='utf-8') as f:
310 cell.reset() -- prepare for recalculation
311 cell.recalc(ns) -> value -- recalculate formula
312 cell.format() -> (value, alignment) -- return formatted value
313 cell.xml() -> string -- return XML
343 if -2**31 <= self.value < 2**31:
417 m = re.match('^([A-Z]+)([1-9][0-9]*)$', part)
431 B4 -> cell(2, 4)
432 B4:Z100 -> cells(2, 4, 26, 100)
436 m = re.match(r"^([A-Z]+)([1-9][0-9]*)(?::([A-Z]+)([1-9][0-9]*))?$", part)
451 "Translate a cell coordinate to a fancy cell name (e.g. (1, 1)->'A1')."
456 "Translate a column name to number (e.g. 'A'->1, 'Z'->26, 'AA'->27)."
461 n = n*26 + ord(c) - ord('A') + 1
465 "Translate a column number to name (e.g. 1->'A', etc.)."
469 n, m = divmod(n-1, 26)
480 - clear multiple cells
481 - Insert, clear, remove rows or columns
482 - Show new contents while typing
483 - Scroll bars
484 - Grow grid when window is grown
485 - Proper menus
486 - Undo, redo
487 - Cut, copy and paste
488 - Formatting and alignment
515 # Configure the widget lay-out
522 self.entry.bind("<Shift-Return>", self.shift_return_event)
524 self.entry.bind("<Shift-Tab>", self.shift_tab_event)
529 # Select the top-left cell
572 cell.bind("<ButtonPress-1>", self.selectall)
581 cell.bind("<ButtonPress-1>", self.selectcolumn)
582 cell.bind("<B1-Motion>", self.extendcolumn)
583 cell.bind("<ButtonRelease-1>", self.extendcolumn)
584 cell.bind("<Shift-Button-1>", self.extendcolumn)
592 cell.bind("<ButtonPress-1>", self.selectrow)
593 cell.bind("<B1-Motion>", self.extendrow)
594 cell.bind("<ButtonRelease-1>", self.extendrow)
595 cell.bind("<Shift-Button-1>", self.extendrow)
606 cell.bind("<ButtonPress-1>", self.press)
607 cell.bind("<B1-Motion>", self.motion)
608 cell.bind("<ButtonRelease-1>", self.release)
609 cell.bind("<Shift-Button-1>", self.release)
738 self.setcurrent(x, max(1, y-1))
752 self.setcurrent(max(1, x-1), y)
798 "Basic non-gui self-test."