Exemple #1
0
 def set_icons(self):
     self.actionBreak.setIcon(get_icon('pause-24px.svg'))
     self.actionBreak2.setIcon(get_icon('pause-24px.svg'))
     self.actionBreakCount.setIcon(get_icon('pause_red-24px.svg'))
     self.actionContinue.setIcon(get_icon('play_arrow-24px.svg'))
     self.actionEmergencyStop.setIcon(get_icon('cancel_red-24px.svg'))
     self.actionFinish.setIcon(get_icon('done-24px.svg'))
     self.actionFinishEarly.setIcon(get_icon('finish_early-24px.svg'))
     self.actionFinishEarlyAndStop.setIcon(get_icon('skip_next-24px.svg'))
     self.actionStop.setIcon(get_icon('stop-24px.svg'))
     self.actionStop2.setIcon(get_icon('stop-24px.svg'))
Exemple #2
0
 def on_client_disconnected(self):
     DefaultMainWindow.on_client_disconnected(self)
     self.remove_experiment_and_instrument()
     self.actionConnect.setIcon(get_icon("power-24px.svg"))
     self.actionExpert.setEnabled(False)
     self.actionExpert.setChecked(False)
     self.actionEmergencyStop.setEnabled(False)
Exemple #3
0
 def toggle_frame(self):
     self.frame_visible = not self.frame_visible
     self.frame.setVisible(self.frame_visible)
     self.cmdBtn.setText('Hide Cmd' if self.frame_visible else 'New Cmd')
     self.cmdBtn.setIcon(
         get_icon(
             'remove-24px.svg' if self.frame_visible else 'add-24px.svg'))
Exemple #4
0
 def set_icons(self):
     self.actionUser.setIcon(get_icon('settings_applications-24px.svg'))
     self.actionEmergencyStop.setIcon(
         get_icon('emergency_stop_cross-24px.svg'))
     self.actionConnect.setIcon(get_icon('power-24px.svg'))
     self.actionExit.setIcon(get_icon('exit_to_app-24px.svg'))
     self.actionViewOnly.setIcon(get_icon('lock-24px.svg'))
     self.actionPreferences.setIcon(get_icon('tune-24px.svg'))
     self.actionExpert.setIcon(get_icon('fingerprint-24px.svg'))
Exemple #5
0
 def set_icons(self):
     self.actionNew.setIcon(get_icon('add_circle_outline-24px.svg'))
     self.actionEditView.setIcon(get_icon('edit-24px.svg'))
     self.actionSavePlot.setIcon(get_icon('save-24px.svg'))
     self.actionPrint.setIcon(get_icon('print-24px.svg'))
     self.actionUnzoom.setIcon(get_icon('zoom_out-24px.svg'))
     self.actionSaveData.setIcon(get_icon('archive-24px.svg'))
Exemple #6
0
 def _createIcons(cls):
     # hack to make non-Qt usage as in checksetups work
     if not hasattr(cls, 'statusIcon'):
         cls.statusIcon = {
             OK: get_icon('check_circle_green-24px.svg'),
             WARN: get_icon('warning_orange-24px.svg'),
             BUSY: get_icon('sync_orange-24px.svg'),
             NOTREACHED: get_icon('error-24px.svg'),
             DISABLED: get_icon('not_interested-24px.svg'),
             ERROR: get_icon('error-24px.svg'),
             UNKNOWN: get_icon('device_unknown-24px.svg'),
         }
Exemple #7
0
    def _show_context_menu(self):
        menu = QMenu()

        copy_action = QAction("Copy", self)
        copy_action.triggered.connect(self._handle_copy_cells)
        copy_action.setIcon(get_icon("file_copy-24px.svg"))
        menu.addAction(copy_action)

        cut_action = QAction("Cut", self)
        cut_action.triggered.connect(self._handle_cut_cells)
        cut_action.setIcon(get_icon("cut_24px.svg"))
        menu.addAction(cut_action)

        paste_action = QAction("Paste", self)
        paste_action.triggered.connect(self._handle_table_paste)
        paste_action.setIcon(get_icon("paste_24px.svg"))
        menu.addAction(paste_action)

        delete_action = QAction("Delete", self)
        delete_action.triggered.connect(self._delete_rows)
        delete_action.setIcon(get_icon("remove-24px.svg"))
        menu.addAction(delete_action)

        menu.exec_(QCursor.pos())
Exemple #8
0
 def on_client_connected(self):
     DefaultMainWindow.on_client_connected(self)
     self.actionConnect.setIcon(get_icon("power_off-24px.svg"))
     self.actionExpert.setEnabled(True)
     self.actionEmergencyStop.setEnabled(not self.client.viewonly)
Exemple #9
0
 def set_icons(self):
     self.actionPrint.setIcon(get_icon('print-24px.svg'))
     self.actionSavePlot.setIcon(get_icon('save-24px.svg'))
     self.actionUnzoom.setIcon(get_icon('zoom_out-24px.svg'))
     self.actionOpen.setIcon(get_icon('folder_open-24px.svg'))
Exemple #10
0
 def set_icons(self):
     self.cmdBtn.setIcon(get_icon('add-24px.svg'))
     self.simBtn.setIcon(get_icon('play_arrow_outline-24px.svg'))
     self.simBtn.hide()
     self.runBtn.setIcon(get_icon('play_arrow-24px.svg'))
     self.frame.hide()
Exemple #11
0
 def set_icons(self):
     self.actionPrint.setIcon(get_icon('print-24px.svg'))
     self.actionSavePlot.setIcon(get_icon('save-24px.svg'))
     self.actionUnzoom.setIcon(get_icon('zoom_out-24px.svg'))
     self.actionClose.setIcon(get_icon('zoom_out-24px.svg'))
Exemple #12
0
 def groupIcon(self):
     return get_icon('group_work-24px.svg')
Exemple #13
0
 def get_icons(self):
     self.actionNew.setIcon(get_icon('add_circle_outline-24px.svg'))
     self.actionOpen.setIcon(get_icon('folder_open-24px.svg'))
     self.actionSave.setIcon(get_icon('save-24px.svg'))
     self.actionPrint.setIcon(get_icon('print-24px.svg'))
     self.actionUndo.setIcon(get_icon('undo-24px.svg'))
     self.actionRedo.setIcon(get_icon('redo-24px.svg'))
     self.actionCut.setIcon(get_icon('cut_24px.svg'))
     self.actionCopy.setIcon(get_icon('file_copy-24px.svg'))
     self.actionPaste.setIcon(get_icon('paste_24px.svg'))
     self.actionRun.setIcon(get_icon('play_arrow-24px.svg'))
     self.actionSimulate.setIcon(get_icon('play_arrow_outline-24px.svg'))
     self.actionGet.setIcon(get_icon('eject-24px.svg'))
     self.actionUpdate.setIcon(get_icon('refresh-24px.svg'))