iblqt.widgets.AlyxLoginDialog

class iblqt.widgets.AlyxLoginDialog[source]

Bases: QDialog

A password dialog window used for authenticating with Alyx.

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

Initialize the widget.

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

  • username (str) – The username.

  • parent (QWidget) – The parent widget.

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

Return type:

None

accept()[source]

Hide the dialog and set the result code to Accepted.