--- a/src/eric7/UI/UserInterface.py Wed May 07 17:45:34 2025 +0200 +++ b/src/eric7/UI/UserInterface.py Wed May 07 18:29:49 2025 +0200 @@ -612,8 +612,6 @@ ericApp().registerObject("Shell", self.shell) ericApp().registerObject("PluginManager", self.pluginManager) ericApp().registerObject("ToolbarManager", self.toolbarManager) - if self.cooperation is not None: - ericApp().registerObject("Cooperation", self.cooperation) if self.symbolsViewer is not None: ericApp().registerObject("Symbols", self.symbolsViewer) if self.numbersViewer is not None: @@ -896,16 +894,6 @@ logging.getLogger(__name__).debug("Conda Package Manager disabled") self.condaWidget = None - if Preferences.getUI("ShowCooperation"): - # Create the chat part of the user interface - logging.getLogger(__name__).debug("Creating Chat Widget...") - from eric7.Cooperation.ChatWidget import ChatWidget # noqa: I-101 - - self.cooperation = ChatWidget(self) - else: - logging.getLogger(__name__).debug("Chat Widget disabled") - self.cooperation = None - if Preferences.getUI("ShowMicroPython"): # Create the MicroPython part of the user interface logging.getLogger(__name__).debug("Creating MicroPython Widget...") @@ -1201,13 +1189,6 @@ self.condaWidget, EricPixmapCache.getIcon("miniconda"), self.tr("Conda") ) - if self.cooperation: - self.rToolbox.addItem( - self.cooperation, - EricPixmapCache.getIcon("cooperation"), - self.tr("Cooperation"), - ) - if self.microPythonWidget: self.rToolbox.addItem( self.microPythonWidget, @@ -1396,13 +1377,6 @@ self.tr("Conda"), ) - if self.cooperation: - sidebar.addTab( - self.cooperation, - EricPixmapCache.getIcon("sbCooperation96"), - self.tr("Cooperation"), - ) - if self.microPythonWidget: sidebar.addTab( self.microPythonWidget, @@ -2313,31 +2287,6 @@ else: self.bsbAct = None - if self.cooperation is not None: - self.cooperationViewerActivateAct = EricAction( - self.tr("Cooperation-Viewer"), - self.tr("Co&operation-Viewer"), - QKeySequence(self.tr("Alt+Shift+O")), - 0, - self, - "cooperation_viewer_activate", - ) - self.cooperationViewerActivateAct.setStatusTip( - self.tr("Switch the input focus to the Cooperation-Viewer window.") - ) - self.cooperationViewerActivateAct.setWhatsThis( - self.tr( - """<b>Activate Cooperation-Viewer</b>""" - """<p>This switches the input focus to the""" - """ Cooperation-Viewer window.</p>""" - ) - ) - self.cooperationViewerActivateAct.triggered.connect( - self.activateCooperationViewer - ) - self.actions.append(self.cooperationViewerActivateAct) - self.addAction(self.cooperationViewerActivateAct) - if self.symbolsViewer is not None: self.symbolsViewerActivateAct = EricAction( self.tr("Symbols-Viewer"), @@ -3973,8 +3922,6 @@ self.__menus["subwindow"].addAction(self.pipWidgetActivateAct) if self.condaWidget is not None: self.__menus["subwindow"].addAction(self.condaWidgetActivateAct) - if self.cooperation is not None: - self.__menus["subwindow"].addAction(self.cooperationViewerActivateAct) if self.microPythonWidget is not None: self.__menus["subwindow"].addAction(self.microPythonWidgetActivateAct) @@ -5787,18 +5734,6 @@ index, EricPixmapCache.getIcon("sbLogViewer96") ) - def activateCooperationViewer(self): - """ - Public slot to handle the activation of the cooperation window. - """ - if self.cooperation is not None: - if self.__layoutType == "Toolboxes": - self.rToolboxDock.show() - self.rToolbox.setCurrentWidget(self.cooperation) - elif self.__layoutType == "Sidebars": - self.activateLeftRightSidebarWidget(self.cooperation) - self.cooperation.setFocus(Qt.FocusReason.ActiveWindowFocusReason) - def __activateSymbolsViewer(self): """ Private slot to handle the activation of the Symbols Viewer.