INNER CODE UNIT · Python

_configure_global_settings

cunarist/solie · package/solie/window/main.py:179

    def _configure_global_settings(self) -> None:
        """Configure global settings for libraries."""
        os.get_terminal_size = lambda *_: os.terminal_size((150, 90))  # type:ignore
        pd.set_option("display.precision", 6)
        pd.set_option("display.min_rows", 100)
        pd.set_option("display.max_rows", 100)
        pyqtgraph.setConfigOptions(antialias=True)

    async def _set_window_icon(self) -> None:
        """Load and set the window icon."""
        filepath = PACKAGE_PATH / "static" / "product_icon.png"
        async with aiofiles.open(filepath, mode="rb") as file:
            product_icon_data = await file.read()
        product_icon_pixmap = QPixmap()
        product_icon_pixmap.loadFromData(product_icon_data)
        self.setWindowIcon(product_icon_pixmap)

    async def _ensure_internet_connection(self) -> None:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…