adsfolio.gui.token_dialog

Desktop token setup using the existing per-user configuration.

class adsfolio.gui.token_dialog.TokenDialog(parent=None)[source]

Bases: PySide6.QtWidgets.QDialog

Save an ADS token and optionally test it with one ADS search.

Saving makes no network request. Test Token sends one search request to ADS with the pasted token, or with the active token when the field is empty.

Parameters:

parent (QWidget, optional) – Parent window. Cancel leaves the existing token unchanged.

accept()[source]

Save a nonempty token, retaining the dialog when saving fails.

Return type:

None

done(result)[source]

Abort a running token test when the dialog closes.

Parameters:

result (int)

Return type:

None

staticMetaObject = PySide6.QtCore.QMetaObject("TokenDialog" inherits "QDialog": Methods:   #41 type=Slot, signature=test_token()   #42 type=Slot, signature=_test_finished() )
test_token()[source]

Send one ADS search with the pasted or active token.

Return type:

None