iblqt.widgets.AlyxLoginWidget

class iblqt.widgets.AlyxLoginWidget[source]

Bases: QWidget

A widget used for managing the connection to Alyx.

This widget contains an AlyxUserEdit for entering a username and a StatefulButton for logging in and out.

__init__(alyx, parent=None, cache=UseTokenCache.ASK)[source]

Initialize the widget.

Parameters:
  • alyx (QAlyx | str) – The Alyx instance or the base URL for the Alyx API.

  • parent (QWidget) – The parent widget.

  • cache (UseTokenCache) – Strategy for handling the token cache. Defaults to UseTokenCache.ASK.

Return type:

None