src/eric7/WebBrowser/WebBrowserView.py

branch
eric7
changeset 10683
779cda568acb
parent 10482
72d9b5ea39b4
child 10700
5746c020c598
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
888 EricPixmapCache.getIcon("download"), 888 EricPixmapCache.getIcon("download"),
889 self.tr("Save Media"), 889 self.tr("Save Media"),
890 self.__downloadMedia, 890 self.__downloadMedia,
891 ) 891 )
892 892
893 def __createSelectedTextContextMenu(self, menu, hitTest): # noqa: U100 893 def __createSelectedTextContextMenu(self, menu, _hitTest):
894 """ 894 """
895 Private method to populate the context menu for selected text. 895 Private method to populate the context menu for selected text.
896 896
897 @param menu reference to the menu to be populated 897 @param menu reference to the menu to be populated
898 @type QMenu 898 @type QMenu
899 @param hitTest reference to the hit test object 899 @param _hitTest reference to the hit test object (unused)
900 @type WebHitTestResult 900 @type WebHitTestResult
901 """ 901 """
902 from .OpenSearch.OpenSearchEngineAction import OpenSearchEngineAction 902 from .OpenSearch.OpenSearchEngineAction import OpenSearchEngineAction
903 from .WebBrowserLanguagesDialog import WebBrowserLanguagesDialog 903 from .WebBrowserLanguagesDialog import WebBrowserLanguagesDialog
904 904
1816 1816
1817 ########################################################################### 1817 ###########################################################################
1818 ## Signal handlers below 1818 ## Signal handlers below
1819 ########################################################################### 1819 ###########################################################################
1820 1820
1821 def __renderProcessTerminated(self, status, exitCode): # noqa: U100 1821 def __renderProcessTerminated(self, status, _exitCode):
1822 """ 1822 """
1823 Private slot handling a crash of the web page render process. 1823 Private slot handling a crash of the web page render process.
1824 1824
1825 @param status termination status 1825 @param status termination status
1826 @type QWebEnginePage.RenderProcessTerminationStatus 1826 @type QWebEnginePage.RenderProcessTerminationStatus
1827 @param exitCode exit code of the process 1827 @param _exitCode exit code of the process (unused)
1828 @type int 1828 @type int
1829 """ 1829 """
1830 if ( 1830 if (
1831 status 1831 status
1832 == QWebEnginePage.RenderProcessTerminationStatus.NormalTerminationStatus 1832 == QWebEnginePage.RenderProcessTerminationStatus.NormalTerminationStatus

eric ide

mercurial