8.5.1.3. pymodaq_gui.examples.data_picker module

class pymodaq_gui.examples.data_picker.DataPicker(area: DockArea)[source]

Bases: CustomApp

Methods

connect_things()

Connect actions and/or other widgets signal to methods

setup_actions()

Method where to create actions to be subclassed.

setup_docks()

Mandatory method to be subclassed to setup the docks layout

setup_menu()

Non mandatory method to be subclassed in order to create a menubar

double_click_action

setup_table

show_data

connect_things()[source]

Connect actions and/or other widgets signal to methods

double_click_action(posx: float, posy: float)[source]
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

setup_menu()[source]

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

setup_table()[source]
show_data(data: DataRaw)[source]
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'}]
pymodaq_gui.examples.data_picker.main()[source]