By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

using tkinter to display html

P: n/a
Hi all,

I prefer using tkinter to wxpython (so sue me :) and i need to display a
lot of html in a particular app. does anyone know if one of the existing
add on tk html widgets have been wrapped for tkinter already?

TIA for any reply,
Stephen
Apr 19 '07 #1
Share this Question
Share on Google+
10 Replies


P: n/a
On Apr 19, 6:29 am, "Stephen M. Gava" <elgua...@users.sourceforge.net>
wrote:
Hi all,

I prefer using tkinter to wxpython (so sue me :) and i need to display a
lot of html in a particular app. does anyone know if one of the existing
add on tk html widgets have been wrapped for tkinter already?

TIA for any reply,
Stephen
The following thread has various ideas in it:
http://mail.python.org/pipermail/pyt...er/107989.html

I know wxpython has widgets specifically made to display html or even
wrap Internet Explorer, ActiveX and more.

Good luck!

Mike

Apr 19 '07 #2

P: n/a
On Thu, 19 Apr 2007 06:09:33 -0700, kyosohma wrote:
On Apr 19, 6:29 am, "Stephen M. Gava" <elgua...@users.sourceforge.net>
wrote:
>Hi all,

I prefer using tkinter to wxpython (so sue me :) and i need to display
a lot of html in a particular app. does anyone know if one of the
existing add on tk html widgets have been wrapped for tkinter already?

TIA for any reply,
Stephen

The following thread has various ideas in it:
http://mail.python.org/pipermail/pyt...er/107989.html
thanks mike, i found that thread before i posted here, it doesn'rt answer
my question though.
>
I know wxpython has widgets specifically made to display html or even
wrap Internet Explorer, ActiveX and more.
yeah. i feel like i'm being forced to use wxwidgets/wxpython just because
i need pretty good html display though.

oh well.

stephen.
>
Good luck!

Mike
Apr 20 '07 #3

P: n/a
On 20 Apr, 02:54, "Stephen M. Gava" <elgua...@users.sourceforge.net>
wrote:
yeah. i feel like i'm being forced to use wxwidgets/wxpython just because
i need pretty good html display though.
You could always use a real web browser:

import webbrowser
webbrowser.open_new("index.html")

Glenn

Apr 20 '07 #4

P: n/a

Stephen M. Gava wrote:
On Thu, 19 Apr 2007 06:09:33 -0700, kyosohma wrote:
On Apr 19, 6:29 am, "Stephen M. Gava" <elgua...@users.sourceforge.net>
wrote:
Hi all,

I prefer using tkinter to wxpython (so sue me :) and i need to display
a lot of html in a particular app. does anyone know if one of the
existing add on tk html widgets have been wrapped for tkinter already?

TIA for any reply,
Stephen
The following thread has various ideas in it:
http://mail.python.org/pipermail/pyt...er/107989.html

thanks mike, i found that thread before i posted here, it doesn'rt answer
my question though.
Why not? Did you try to use tkhtml [1]_ with python wrapper [2]_.
IMHO it works pretty nice.

... [1] http://www.hwaci.com/sw/tkhtml/
... [2] http://tix.sourceforge.net/Tixapps/src/Python/TkHtml.py

--
HTH,
Rob

Apr 20 '07 #5

P: n/a
Stephen M. Gava wrote:
Hi all,

I prefer using tkinter to wxpython (so sue me :) and i need to display a
lot of html in a particular app. does anyone know if one of the existing
add on tk html widgets have been wrapped for tkinter already?

TIA for any reply,
Stephen
PySol has an HTML viewer. Here's a link to some discusison about it:

http://mail.python.org/pipermail/tki...ry/000614.html

PySol is GPL, so if your application is also GPL, then it might be an
option.

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Apr 20 '07 #6

P: n/a
On Fri, 20 Apr 2007 03:28:22 -0700, Rob Wolfe wrote:
The following thread has various ideas in it:
http://mail.python.org/pipermail/pyt...er/107989.html

thanks mike, i found that thread before i posted here, it doesn'rt
answer my question though.

Why not? Did you try to use tkhtml [1]_ with python wrapper [2]_. IMHO
it works pretty nice.
i found the tkhtml page but it hasn't been updated since 2002 and the
mailing list doesn't even exist anymore. so unsure of the future on that.
>
.. [1] http://www.hwaci.com/sw/tkhtml/ .. [2]
didn't find these bindings though, so thanks, i'll have a play.

stephen.
http://tix.sourceforge.net/Tixapps/src/Python/TkHtml.py
Apr 21 '07 #7

P: n/a
On Fri, 20 Apr 2007 09:45:16 -0400, Kevin Walzer wrote:
PySol has an HTML viewer. Here's a link to some discusison about it:

http://mail.python.org/pipermail/tkinter-discuss/2006-
January/000614.html
>
PySol is GPL, so if your application is also GPL, then it might be an
option.
thanks kevin, i already use a derivative of that code in another app :) ,
but i need table and other stuff this time.

stephen.
>
Apr 21 '07 #8

P: n/a
On Thu, 19 Apr 2007 23:42:49 -0700, Glenn Hutchings wrote:
On 20 Apr, 02:54, "Stephen M. Gava" <elgua...@users.sourceforge.net>
wrote:
>yeah. i feel like i'm being forced to use wxwidgets/wxpython just
because i need pretty good html display though.

You could always use a real web browser:

import webbrowser
webbrowser.open_new("index.html")

Glenn
yep, thnx glen, but need the html display windo to be more a part of the
app than that.

stephen.
Apr 21 '07 #9

P: n/a
Stephen M. Gava wrote:
On Fri, 20 Apr 2007 03:28:22 -0700, Rob Wolfe wrote:
>>>The following thread has various ideas in it:
http://mail.python.org/pipermail/pyt...er/107989.html
thanks mike, i found that thread before i posted here, it doesn'rt
answer my question though.
Why not? Did you try to use tkhtml [1]_ with python wrapper [2]_. IMHO
it works pretty nice.

i found the tkhtml page but it hasn't been updated since 2002 and the
mailing list doesn't even exist anymore. so unsure of the future on that.
>.. [1] http://www.hwaci.com/sw/tkhtml/ .. [2]

didn't find these bindings though, so thanks, i'll have a play.

stephen.
>http://tix.sourceforge.net/Tixapps/src/Python/TkHtml.py
TkHTML:

http://tkhtml.tcl.tk

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Apr 21 '07 #10

P: n/a
On Sat, 21 Apr 2007 09:57:09 -0400, Kevin Walzer wrote:
Stephen M. Gava wrote:
>On Fri, 20 Apr 2007 03:28:22 -0700, Rob Wolfe wrote:
>>>>The following thread has various ideas in it:
http://mail.python.org/pipermail/python-list/2001-
October/107989.html
>>>thanks mike, i found that thread before i posted here, it doesn'rt
answer my question though.
Why not? Did you try to use tkhtml [1]_ with python wrapper [2]_. IMHO
it works pretty nice.

i found the tkhtml page but it hasn't been updated since 2002 and the
mailing list doesn't even exist anymore. so unsure of the future on
that.
>>.. [1] http://www.hwaci.com/sw/tkhtml/ .. [2]

didn't find these bindings though, so thanks, i'll have a play.

stephen.
>>http://tix.sourceforge.net/Tixapps/src/Python/TkHtml.py

TkHTML:

http://tkhtml.tcl.tk
ah ok, thanks. i did find this but thought it was unrelated to the widget
metionned on the old hwaci.com page and that there weren't any existing
tkinter bindings for this project.

so the tix.sourceforge.net bindings are for this up to date widget,
including the current V3 that supports css and such? (thinking aloud,
i'll check that out myself.)

thanks mate,
stephen.
>
Apr 22 '07 #11

This discussion thread is closed

Replies have been disabled for this discussion.