This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ComponentClass, VNode } from "preact"; | |
import "preact/compat"; | |
declare module "preact/compat" { | |
export type ElementType = JSX.ElementType; | |
export type ComponentPropsWithoutRef<T extends ElementType> = PropsWithoutRef< | |
ComponentProps<T> | |
>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dash import Dash, html | |
def show_in_native_window(app: Dash) -> None: | |
""" | |
Modify the application to launch a minimal browser window, and shut down when this window is closed, | |
to give the look & feel of a native application. | |
""" | |
from threading import Timer |