def _create_actions(self): group = QActionGroup(self) self.grid_action = QAction( '&Grid', self, shortcut='ctrl+G', triggered=self.show_grid, checkable=True, icon=load_icon(':/icons/show_grid.png') ) self.grid_action.setChecked(True) group.addAction(self.grid_action) self.expanded_action = QAction( '&Expanded', self, shortcut='ctrl+E', triggered=self.show_expanded, checkable=True, icon=load_icon(':/icons/show_expanded.png') ) group.addAction(self.expanded_action)
def _create_actions(self): group = QActionGroup(self) self.grid_action = QAction('&Grid', self, shortcut='ctrl+G', triggered=self.show_grid, checkable=True, icon=load_icon(':/icons/show_grid.png')) self.grid_action.setChecked(True) group.addAction(self.grid_action) self.expanded_action = QAction( '&Expanded', self, shortcut='ctrl+E', triggered=self.show_expanded, checkable=True, icon=load_icon(':/icons/show_expanded.png')) group.addAction(self.expanded_action)
def _create_actions(self): group = QActionGroup(self) self.grid_action = QAction( "&Grid", self, shortcut="ctrl+G", triggered=self.show_grid, checkable=True, icon=load_icon(":/icons/show_grid.png"), ) self.grid_action.setChecked(True) group.addAction(self.grid_action) self.expanded_action = QAction( "&Expanded", self, shortcut="ctrl+E", triggered=self.show_expanded, checkable=True, icon=load_icon(":/icons/show_expanded.png"), ) group.addAction(self.expanded_action)
def icon(cls): return load_icon(':/icons/segment.png')
def icon(cls): return load_icon(':/icons/barcode.png')
def icon(cls): return load_icon(':/icons/subsegment.png')