diff --git a/source/documentBase.py b/source/documentBase.py index 8a3acfa099c..c112cc8998a 100644 --- a/source/documentBase.py +++ b/source/documentBase.py @@ -139,7 +139,8 @@ def _getNearestTableCell(self, tableID, startPos, origRow, origCol, origRowSpan, raise LookupError def _tableMovementScriptHelper(self, movement="next", axis=None): - # documentBase is a core module and should not depend on these UI modules. (#12404) + # documentBase is a core module and should not depend on these UI modules and so they are imported + # at run-time. (#12404) from scriptHandler import isScriptWaiting from speech import speakTextInfo import ui @@ -190,7 +191,7 @@ def script_previousColumn(self, gesture): script_previousColumn.__doc__ = _("moves to the previous table column") def script_toggleIncludeLayoutTables(self,gesture): - # documentBase is a core module and should not depend on UI modules. (#12404) + # documentBase is a core module and should not depend on UI, so it is imported at run-time. (#12404) import ui if config.conf["documentFormatting"]["includeLayoutTables"]: # Translators: The message announced when toggling the include layout tables browse mode setting.