(self)
| 1051 | text.yview(float(newtop)) |
| 1052 | |
| 1053 | def getwindowlines(self): |
| 1054 | text = self.text |
| 1055 | top = self.getlineno("@0,0") |
| 1056 | bot = self.getlineno("@0,65535") |
| 1057 | if top == bot and text.winfo_height() == 1: |
| 1058 | # Geometry manager hasn't run yet |
| 1059 | height = int(text['height']) |
| 1060 | bot = top + height - 1 |
| 1061 | return top, bot |
| 1062 | |
| 1063 | def getlineno(self, mark="insert"): |
| 1064 | text = self.text |
no test coverage detected