(self)
| 1430 | return count |
| 1431 | |
| 1432 | def rmenu_check_cut(self): |
| 1433 | try: |
| 1434 | if self.text.compare('sel.first', '<', 'iomark'): |
| 1435 | return 'disabled' |
| 1436 | except TclError: # no selection, so the index 'sel.first' doesn't exist |
| 1437 | return 'disabled' |
| 1438 | return super().rmenu_check_cut() |
| 1439 | |
| 1440 | def rmenu_check_paste(self): |
| 1441 | if self.text.compare('insert','<','iomark'): |