473,320 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

using tkinter to display html

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
10 22469
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
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
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

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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: midtoad | last post by:
I'm trying to display a GIF image in a label as the central area to a Tkinter GUI. The image does not appear, though a space is made for it. Why is this so? I notice that I can display a GIF...
1
by: WOJSAL | last post by:
I want show HTML-text (messages, textarea etc.) with TkInter. What free package, module i need? Please help. -- Regards
4
by: Yann.K | last post by:
Hello. Using Tkinter, i would create a widget which display a shell command return. This return is long, and i would display a real time display (like with the tail -f commande on Linux) I...
2
by: k2riddim | last post by:
Hello, I'm a beginner with Python and Tkinter development. My application parse links in an html file. And I use Tkinter to implement a GUI. This GUI has a button to launch the parse treatment,...
0
by: MooMaster | last post by:
This is more of a wxPython centric question, but not seeing reference to this on the wx group I thought I'd try here since many here also use wxPython toolkit. I started learning GUI development...
32
by: Kevin Walzer | last post by:
I'm a Tcl/Tk developer who has been working, slowly, at learning Python, in part because Python has better support for certain kinds of applications that I want to develop than Tcl/Tk does....
6
by: Adam | last post by:
Hey, I'm pretty new to programming. Been trying to learn using Python. The code I'm struggling with is for my GUI. I'm am having trouble getting this to display the way I want with the grid...
2
by: Medi Ochre | last post by:
I've been away from Python for some time, and I'm just starting to look at Tkinter. Just so you know, I'm coming from Visual Basic, where this would, I *think*, not have been a problem, so it must...
0
by: Guilherme Polo | last post by:
2008/5/10 Kenneth McDonald <kenneth.m.mcdonald@sbcglobal.net>: I will say no to the first question. Now about the second question.. there are these links you may find interesting: "An...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.