iblqt.widgets.AlyxUserEdit

class iblqt.widgets.AlyxUserEdit[source]

Bases: QLineEdit

A specialized QLineEdit for logging in to Alyx.

A one-line text editor for entering a username. The widget handles login actions, including displaying the login status. A AlyxLoginDialog is triggered when no authentication token is available.

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

Initialize the widget.

Parameters:
  • alyx (QAlyx) – The alyx instance.

  • parent (QWidget) – The parent widget.

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

Return type:

None

login()[source]

Attempt to log in to Alyx with the entered username.

If the username field is empty, the login attempt is ignored.