(self, event)
| 297 | self._wrappers.append(SourceWrapper(item=item, colorID=colorID)) |
| 298 | |
| 299 | def spawnMenu(self, event): |
| 300 | clickedPos = self.getRowByAbs(event.Position) |
| 301 | self.ensureSelection(clickedPos) |
| 302 | |
| 303 | selection = self.getSelectedWrappers() |
| 304 | mainItem = self.getWrapper(clickedPos) |
| 305 | |
| 306 | itemContext = None if mainItem is None else _t('Fit') |
| 307 | menu = ContextMenu.getMenu(self, mainItem, selection, ('graphFitList', itemContext), ('graphFitListMisc', itemContext)) |
| 308 | if menu: |
| 309 | self.PopupMenu(menu) |
| 310 | |
| 311 | @property |
| 312 | def defaultTTText(self): |
nothing calls this directly
no test coverage detected