How to import a python library from the web into a project with pyscript.net

Cheers!

How can I run my python program that uses tkinter?

I tried -py scripter but it gives me an error.

This is the program with the statement to import tkinter library

Import Tkinter library inside HTML import Tkinter as tk

this is the error that returns

JsException(PythonError: Traceback (most recent call last): File “/lib/python3.10/site-packages/_pyodide/_base.py”, line 429, in eval_code .run(globals, locals) File “/lib/python3 .10/site-packages/_pyodide/_base.py”, line 300, in run coroutine = eval(self.code, globals, locals) File “”, line 1, in ModuleNotFoundError: No module named ‘Tkinter’ )

thanks for your help

See also  Introduction to XML
Loading Facebook Comments ...
Loading Disqus Comments ...