473,396 Members | 1,933 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,396 software developers and data experts.

Marked-Up Text Viewer for Python/Tkinter

Hello All,

I'm wondering if there is something that already exists that can take
marked up text in some format (hopefully reStructuredText or HTML) and
can convert it into something that can be displayed with Tkinter (maybe
with Text), either dynamically or otherwise. Minimal functionality would
be simple formatting and hyperlink callbacks.

Any guidance or suggestions would be appreciated.

Thank you in advance for your help.

James
Jan 30 '06 #1
4 1996
On Mon, 30 Jan 2006 15:20:50 -0800, James Stroud <js*****@ucla.edu> wrote:
Hello All,

I'm wondering if there is something that already exists that can take
marked up text in some format (hopefully reStructuredText or HTML) and
can convert it into something that can be displayed with Tkinter (maybe
with Text), either dynamically or otherwise. Minimal functionality would
be simple formatting and hyperlink callbacks.


I'd say you could what you want within the (now apparently dead) Grail web
browser at:
http://grail.sourceforge.net/
since it is written in Python and uses Tkinter for its GUI.

Unfortunately, their download link seems to be dead. Maybe you can get it
somewhere else?

HTH
--
python -c "print ''.join([chr(154 - ord(c)) for c in
'U(17zX(%,5.zmz5(17;8(%,5.Z65\'*9--56l7+-'])"
Jan 31 '06 #2
Eric Brunel wrote:
On Mon, 30 Jan 2006 15:20:50 -0800, James Stroud <js*****@ucla.edu> wrote:
Hello All,

I'm wondering if there is something that already exists that can take
marked up text in some format (hopefully reStructuredText or HTML)
and can convert it into something that can be displayed with Tkinter
(maybe with Text), either dynamically or otherwise. Minimal
functionality would be simple formatting and hyperlink callbacks.

I'd say you could what you want within the (now apparently dead) Grail
web browser at:
http://grail.sourceforge.net/
since it is written in Python and uses Tkinter for its GUI.

Unfortunately, their download link seems to be dead. Maybe you can get
it somewhere else?

HTH

via
http://sourceforge.net/project/showf...?group_id=6416
http://prdownloads.sourceforge.net/g...6.tgz?download
e.g. at
http://heanet.dl.sourceforge.net/sou.../grail-0.6.tgz
Claudio
Jan 31 '06 #3
I've played with grail. It does still work (basically).

I needed to put the grail directory in my ``site-packages`` folder and
create a 'grail.pth' file with the entry ``grail``.

Extracting the Tkinter widget, and exposing an API, would be tricky -
but I'm sure lots of people would use it. It's only HTML 2 though.

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

Jan 31 '06 #4
James Stroud wrote:
Hello All,

I'm wondering if there is something that already exists that can take
marked up text in some format (hopefully reStructuredText or HTML) and
can convert it into something that can be displayed with Tkinter (maybe
with Text), either dynamically or otherwise. Minimal functionality would
be simple formatting and hyperlink callbacks.

Any guidance or suggestions would be appreciated.

Thank you in advance for your help.

James

If you're willing to use wxPython instead of Tkinter, you could have
access to a simple browser class that supports a number of html tags
(but no styles).

André

Jan 31 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chan | last post by:
Hi I am getting the following error when I call a web service method from .Net 2002 Application "One or more header elements marked as mustUnderstand was not understood BUT it works from...
0
by: David Elliott | last post by:
I have a 3rd Party DLL that is a Win32 NOT .NET Assembly that is misbehaving. I am trying to isolate it in its own AppDomain. I got to load but can not create an instance. I receive the following...
2
by: theWizK | last post by:
Hello all. I have noticed that when I generate a strongly-typed dataset from an xml schema that the DataTables that are generated have their constructors marked as internal. What this means is...
5
by: Mark Barinstein | last post by:
Hello. db2v8 fp3 or fp4. ftp://adm-gw.vsi.ru/pub/db2v8crash/files.zip In this zip file (~1.4M) there are: 1. script for creating a small test database with 3 tables and 1 view. 2. 3 ixf...
0
by: Page | last post by:
I have a C# system service that is marked as interactive and use local system account (default) and marked to automatically start. When I restart the system the application is not visible. When...
2
by: jeffpriz | last post by:
I'm having trouble.. I created a small class that I pass to my Pages, and I want to put that class into Viewstate.. I do: Viewstate.add("thisVar", myClassVariable) and i receive the lovely...
0
by: Baiju | last post by:
Does anyone know where I can get a version of the Date Time Picker control that's marked safe for scripting? The cab file I have from the Microsoft site is not marked safe for scripting. So I...
2
by: Frank Uray | last post by:
Hi again I have a little problem with "serializable" a control ... I am creating AppDomain, Assembly and Instance. All works fine. My "base" class for the instance inherit from: -...
4
by: Jack | last post by:
Hi guys, I am writing a simple script that sends an email to a user using mail(). The problem is when the mail is received it is marked as phishing. I am wondering if there is a way to fix this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.