Exemplo n.º 1
0
def pathmanager(qtbot, request):
    """Set up PathManager."""
    pathlist, ro_pathlist = request.param
    widget = pathmanager_mod.PathManager(None,
                                         pathlist=pathlist,
                                         ro_pathlist=ro_pathlist)
    qtbot.addWidget(widget)
    return widget
Exemplo n.º 2
0
def pathmanager(qtbot, request):
    """Set up PathManager."""
    path, read_only_path, not_active_path = request.param
    widget = pathmanager_mod.PathManager(
        None,
        path=tuple(path),
        read_only_path=tuple(read_only_path),
        not_active_path=tuple(not_active_path))
    qtbot.addWidget(widget)
    return widget
Exemplo n.º 3
0
def setup_pathmanager(qtbot,
                      parent=None,
                      pathlist=None,
                      ro_pathlist=None,
                      sync=True):
    """Set up PathManager."""
    widget = pathmanager_mod.PathManager(None,
                                         pathlist=pathlist,
                                         ro_pathlist=ro_pathlist)
    qtbot.addWidget(widget)
    return widget