MCPcopy
hub / github.com/qtile/qtile / join

Method join

libqtile/layout/base.py:393–402  ·  view source on GitHub ↗

Add clients from 'other' _ClientList to self. 'offset_to_current' works as described for add()

(self, other: _ClientList, offset_to_current: int = 0)

Source from the content-addressed store, hash-verified

391 self.current_index += 1
392
393 def join(self, other: _ClientList, offset_to_current: int = 0) -> None:
394 """
395 Add clients from 'other' _ClientList to self.
396 'offset_to_current' works as described for add()
397 """
398 pos = max(0, self.current_index + offset_to_current)
399 if pos < len(self.clients):
400 self.clients = self.clients[:pos:] + other.clients + self.clients[pos::]
401 else:
402 self.clients.extend(other.clients)
403
404 def index(self, client: Window) -> int:
405 return self.clients.index(client)

Callers 15

test_completionFunction · 0.80
test_textbox_errorsFunction · 0.80
run_qtile_cmdFunction · 0.80
terminateMethod · 0.80
test_images.pyFile · 0.80
loaderMethod · 0.80
test_utils.pyFile · 0.80
test_only_svgMethod · 0.80
run_qtileFunction · 0.80
test_reload_configFunction · 0.80

Calls

no outgoing calls

Tested by 15

test_completionFunction · 0.64
test_textbox_errorsFunction · 0.64
run_qtile_cmdFunction · 0.64
loaderMethod · 0.64
test_only_svgMethod · 0.64
run_qtileFunction · 0.64
test_reload_configFunction · 0.64
run_qtile_checkFunction · 0.64
test_extra_files_are_okFunction · 0.64