def __initialize_ui(self):
        """
        Initializes the Widget ui.
        """

        self.setAttribute(Qt.WA_DeleteOnClose)
        self.setWordWrapMode(QTextOption.NoWrap)

        self.setAcceptDrops(True)

        if platform.system() == "Windows" or platform.system() == "Microsoft":
            fontFamily, fontSize = self.__default_fonts_settings["Windows"]
        elif platform.system() == "Darwin":
            fontFamily, fontSize = self.__default_fonts_settings["Darwin"]
        elif platform.system() == "Linux":
            fontFamily, fontSize = self.__default_fonts_settings["Linux"]
        font = QFont(fontFamily)
        font.setPointSize(fontSize)
        self.setFont(font)
def __initialize_ui ( self ) : self . setAttribute ( Qt . WA_DeleteOnClose ) self . setWordWrapMode ( QTextOption . NoWrap ) self . setAcceptDrops ( True ) if platform . system ( ) == "Windows" or platform . system ( ) == "Microsoft" : fontFamily , fontSize = self . __default_fonts_settings [ "Windows" ] elif platform . system ( ) == "Darwin" : fontFamily , fontSize = self . __default_fonts_settings [ "Darwin" ] elif platform . system ( ) == "Linux" : fontFamily , fontSize = self . __default_fonts_settings [ "Linux" ] font = QFont ( fontFamily ) font . setPointSize ( fontSize ) self . setFont ( font )
Initializes the Widget ui.