8.5.1.3. pymodaq_gui.examples.data_picker module
- class pymodaq_gui.examples.data_picker.DataPicker(area: DockArea)[source]
Bases:
CustomAppMethods
Connect actions and/or other widgets signal to methods
Method where to create actions to be subclassed.
Mandatory method to be subclassed to setup the docks layout
Non mandatory method to be subclassed in order to create a menubar
double_click_action
setup_table
show_data
- setup_actions()[source]
Method where to create actions to be subclassed. Mandatory
Examples
>>> self.add_action('Quit', 'close2', "Quit program") >>> self.add_action('Grab', 'camera', "Grab from camera", checkable=True) >>> self.add_action('Load', 'Open', "Load target file (.h5, .png, .jpg) or data from camera", checkable=False) >>> self.add_action('Save', 'SaveAs', "Save current data", checkable=False)
See also
ActionManager.add_action
- setup_docks()[source]
Mandatory method to be subclassed to setup the docks layout
Examples
>>>self.docks[‘ADock’] = gutils.Dock(‘ADock name’) >>>self.dockarea.addDock(self.docks[‘ADock’]) >>>self.docks[‘AnotherDock’] = gutils.Dock(‘AnotherDock name’) >>>self.dockarea.addDock(self.docks[‘AnotherDock’’’], ‘bottom’, self.docks[‘ADock’])
See also
pyqtgraph.dockarea.Dock
Non mandatory method to be subclassed in order to create a menubar
create menu for actions contained into the self._actions, for instance:
Examples
>>>file_menu = self._menubar.addMenu(‘File’) >>>self.affect_to(‘load’, file_menu) >>>self.affect_to(‘save’, file_menu)
>>>file_menu.addSeparator() >>>self.affect_to(‘quit’, file_menu)
See also
pymodaq.utils.managers.action_manager.ActionManager
- params = [{'name': 'picker_status', 'title': 'picker status', 'type': 'led', 'value': False}, {'delegate': <class 'pymodaq_gui.utils.widgets.table.SpinBoxDelegate'>, 'menu': True, 'name': 'tabular_table', 'title': 'Positions', 'type': 'table_view'}]