aqt.preferences
===============

.. py:module:: aqt.preferences


Classes
-------

.. autoapisummary::

   aqt.preferences.Preferences


Functions
---------

.. autoapisummary::

   aqt.preferences.video_driver_name_for_platform


Module Contents
---------------

.. py:class:: Preferences(mw: aqt.AnkiQt)

   Bases: :py:obj:`QDialog`


   .. py:attribute:: mw


   .. py:attribute:: prof


   .. py:attribute:: form


   .. py:attribute:: silentlyClose
      :value: True



   .. py:method:: setup_configurable_answer_keys()

      Create a group box in Preferences with widgets that let the user edit answer keys.



   .. py:method:: accept() -> None


   .. py:method:: accept_with_callback(callback: collections.abc.Callable[[], None] | None = None) -> None


   .. py:method:: reject() -> None


   .. py:method:: setup_collection() -> None


   .. py:method:: update_collection(on_done: collections.abc.Callable[[], None]) -> None


   .. py:method:: setup_profile() -> None

      Setup options stored in the user profile.



   .. py:method:: update_profile() -> None


   .. py:method:: setup_network() -> None


   .. py:method:: update_login_status() -> None


   .. py:method:: on_media_log() -> None


   .. py:method:: sync_login() -> None


   .. py:method:: sync_logout() -> None


   .. py:method:: ankihub_sync_login() -> None


   .. py:method:: ankihub_sync_logout() -> None


   .. py:method:: confirm_sync_after_login() -> None


   .. py:method:: update_network() -> None


   .. py:method:: setup_global() -> None

      Setup options global to all profiles.



   .. py:method:: update_global() -> None


   .. py:method:: on_theme_changed(index: int) -> None


   .. py:method:: on_reset_window_sizes() -> None


   .. py:method:: setupOptions() -> None


   .. py:method:: updateOptions() -> None


   .. py:method:: setup_language() -> None


   .. py:method:: current_lang_index() -> int


   .. py:method:: on_language_index_changed(idx: int) -> None


   .. py:method:: setup_video_driver() -> None


   .. py:method:: update_video_driver() -> None


.. py:function:: video_driver_name_for_platform(driver: aqt.profiles.VideoDriver) -> str

