commandSearch.ui.commands module

class commandSearch.ui.commands.Button(parent, info)

Bases: PySide.QtGui.QWidget

This widget gets initialized with the command data and builds it accordingly, the only variable option is the option box that may or may not be added into the info.

Parameters:
  • parent (QWidget) –
  • info (dict) –
execOption_()
exec_()
setAsIcon(b)

Sometimes a command will have an icon assigned to it, to make sure the button looks like an icon this function can be used, to set those attributes.

Parameters:b (QPushButton) –
setPin()
setUnpin()
staticMetaObject = <PySide.QtCore.QMetaObject object>
class commandSearch.ui.commands.Commands(parent=None)

Bases: PySide.QtGui.QWidget

The commands widget is the widget that gets populated with the searched commands.

Parameters:parent (QWidget) –
add(widget)

Add widget to layout, inserts it at -1 as there is always a spacer that needs to remain at the bottom.

Parameters:widget (QWidget) –
clear()
isEmpty()

Check if the widgets layout is empty.

Return type:bool
populate(matches)

Populate widget with commands from input.

Parameters:matches (list) – Command list
staticMetaObject = <PySide.QtCore.QMetaObject object>