(self)
Show the encodings widget for selection
Show the encodings widget for selection
Show the encodings widget for selection
def __show_encodings_widget(self):
        """
        Show the encodings widget for selection
        """
        # If tool window is already shown just raise it
        w = self.findChild(
            encodings.SelectEncodingsWidget,
            "-encoding-selection-tool-window"
        )
        if w is not None and w.isVisible():  # pragma: no coverage
            w.raise_()
            w.activateWindow()
            return

        w = encodings.SelectEncodingsWidget(
            self, Qt.Tool,
            windowTitle="Customize Encodings List",
            objectName="-encoding-selection-tool-window"
        )
        w.setAttribute(Qt.WA_DeleteOnClose)
        model = w.model()
        model.dataChanged.connect(
            lambda: self.__set_visible_codecs(w.selectedEncodings())
        )
        w.show()
def __show_encodings_widget ( self ) : # If tool window is already shown just raise it w = self . findChild ( encodings . SelectEncodingsWidget , "-encoding-selection-tool-window" ) if w is not None and w . isVisible ( ) : # pragma: no coverage w . raise_ ( ) w . activateWindow ( ) return w = encodings . SelectEncodingsWidget ( self , Qt . Tool , windowTitle = "Customize Encodings List" , objectName = "-encoding-selection-tool-window" ) w . setAttribute ( Qt . WA_DeleteOnClose ) model = w . model ( ) model . dataChanged . connect ( lambda : self . __set_visible_codecs ( w . selectedEncodings ( ) ) ) w . show ( )