MCPcopy Create free account
hub / github.com/QuantFans/quantdigger / showMenu

Method showMenu

quantdigger/backup/backtest/mainwindow.py:125–131  ·  view source on GitHub ↗
(self, position)

Source from the content-addressed store, hash-verified

123 self.ui_controller.matplotlibWidget.setxlim(size)
124
125 def showMenu(self, position):
126 indexes = self.ui_controller.strategyListWidget.selectedIndexes()
127 if len(indexes) > 0:
128 menu = QtGui.QMenu()
129 menu.addAction(self.ui_controller.actionRunStrategy)
130 menu.addAction(self.ui_controller.actionEditStrategy)
131 menu.exec_(self.ui_controller.strategyListWidget.viewport().mapToGlobal(position))
132
133 def on_runStrategy(self, check):
134 indexes = self.ui_controller.strategyListWidget.selectedIndexes()

Callers 1

tinymce.min.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected