コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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)
コード例 #4
0
 def icon(cls):
     return load_icon(':/icons/segment.png')
コード例 #5
0
 def icon(cls):
     return load_icon(':/icons/barcode.png')
コード例 #6
0
 def icon(cls):
     return load_icon(':/icons/subsegment.png')
コード例 #7
0
 def icon(cls):
     return load_icon(':/icons/barcode.png')