Example #1
0
class MeasureCountContextMenuState(DbState):
    def initialize(self):
        self.menu = QCountContextMenu(self.qscore, self.event.note,
                                      self.event.measure)
        self.qscore.clearDragSelection()
        QtCore.QTimer.singleShot(0,
                                 lambda: self.menu.exec_(self.event.screenPos))

    def close(self, event_):
        self.menu.close()
Example #2
0
class MeasureCountContextMenuState(DbState):
    def initialize(self):
        self.menu = QCountContextMenu(self.qscore, self.event.note,
                                      self.event.measure)
        self.qscore.clearDragSelection()
        QtCore.QTimer.singleShot(0,
                                 lambda: self.menu.exec_(self.event.screenPos))

    def close(self, event_):
        self.menu.close()
Example #3
0
 def initialize(self):
     self.menu = QCountContextMenu(self.qscore, self.event.note,
                                   self.event.measure)
     self.qscore.clearDragSelection()
     QtCore.QTimer.singleShot(0,
                              lambda: self.menu.exec_(self.event.screenPos))
Example #4
0
 def initialize(self):
     self.menu = QCountContextMenu(self.qscore, self.event.note,
                                   self.event.measure)
     self.qscore.clearDragSelection()
     QtCore.QTimer.singleShot(0,
                              lambda: self.menu.exec_(self.event.screenPos))