Necesito una forma sencilla de mostrar páginas HTML recuperadas con Solicitudes (python-requests.org). Estoy usando Python 3.2 en Windows.Configuración de TkHtml (un widget Tk) con Python
Estaba usando tkinter, y encontré un widget Tk llamado TkHtml. Se describe en http://tkhtml.tcl.tk/ y se puede descargar una DLL desde http://www.hwaci.com/sw/tkhtml/. Encontré un contenedor de Python en http://tix.sourceforge.net/Tixapps/src/Python/TkHtml.py.
No sé cómo hacer que TkHtml funcione en python. ¿Hay alguna forma estándar de manejar widgets Tk de terceros?
Puse tkhtml.dll en Python32 \ DLLs (no sé si esto es correcto) y puse TkHtml.py en Python32 \ Lib \ site-packages. Seguí adelante y arreglé las importaciones en TkHtml.py para trabajar con Python 3 (cambié tkFileDialog a tkinter.filedialog y Tkinter a tkinter).
Cuando hago:
import TkHtml
app=TkHtml.TestApp()
me sale el error:
...
File "C:\Program Files\Python32\lib\site-packages\TkHtml.py", line 45, in __init__
master.tk.call("package", "require", "tkhtml")
_tkinter.TclError: can't find package tkhtml
¿Alguna idea?
Un poco más de documentación ayudaría. – Louis