;iUddlmZddlZddlZddlZddlZddlmZddlm Z m Z m Z m Z ddl mZmZddlmZedZded <ee eZejd Zdad ed <dad ed<dddZdS)) annotationsN) ModuleType)AnyCallablecastget_args)Literal TypeAlias)WebViewException)qtgtkcefmshtml edgechromiumandroidcocoar GUIType pywebviewzModuleType | NoneguilibGUIType | None forced_gui_ forced_guicd}d}d}d}d}dd }|sd tjvrd nd}ttd tjvrOtjd t vr$tjd n|}|atjdkr*|d kr||g}n||g}||stdnttdr ||gntjdkstjdkr*|d kr||g}n||g}||stdnOtjdkr)|d kr||g}n|g}||stdntdt tS)Nc ddlmcmatddS#t tf$rtdYdSwxYw)Nrz Using KivyTzKivy cannot be loadedF) webview.platforms.android platformsrrloggerdebug ImportError ValueError exceptionBC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\webview/guilib.pyimport_androidz"initialize..import_androidsu  6 6 6 6 6 6 6 6 6 LL & & &4Z(      4 5 5 555 #'+AAc ddlmcmatddS#t tf$rtdYdSwxYw)Nrz Using GTKTzGTK cannot be loadedF) webview.platforms.gtkrr rrrrr r!r"r#r$ import_gtkzinitialize..import_gtk#su  2 2 2 2 2 2 2 2 2 LL % % %4Z(      3 4 4 455 r&cp ddlmcmadS#t$rt dYdSwxYw)NrTzQT cannot be loadedF)webview.platforms.qtrr rrrr!r"r#r$ import_qtzinitialize..import_qt/s^  1 1 1 1 1 1 1 1 14      2 3 3 355  $55cp ddlmcmadS#t$rt dYdSwxYw)NrTzPyObjC cannot be loadedF)webview.platforms.cocoarrrrrr!r"r#r$ import_cocoaz initialize..import_cocoa:s^  4 4 4 4 4 4 4 4 44      6 7 7 755 r-cp ddlmcmadS#t$rt dYdSwxYw)NrTzpythonnet cannot be loadedF)webview.platforms.winformsrwinformsrrrr!r"r#r$import_winformsz#initialize..import_winformsFs^  7 7 7 7 7 7 7 7 74      9 : : :55 r-guislist[Callable[[], Any]]returnboolcP|r#|d}|rdS|#dS)NrTF)pop)r5 import_funcs r$ try_importzinitialize..try_importQs= ((1++K{}} t   ur#KDE_FULL_SESSIONr PYWEBVIEW_GUIDarwinzoYou must have either PyObjC (for Cocoa support) or Qt with Python bindings installed in order to use pywebview.getandroidapilevelLinuxOpenBSDzZYou must have either QT or GTK with Python extensions installed in order to use pywebview.WindowszrWs,"""""""  00000000000000000000$$$$$$]^^^^^ D'"" # #  ; ' '  " """"xxxxxxxr#