Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tkinter inheritance mess?

1 view
Skip to first unread message

ejetzer

unread,
Apr 5, 2010, 12:36:34 PM4/5/10
to
For a school project, I'm trying to make a minimalist web browser, and
I chose to use Tk as the rendering toolkit. I made my parser classes
into Tkinter canvases, so that I would only have to call pack and
mainloop functions in order to display the rendering. Right now, two
bugs are affecting the program :
1) When running the full app¹, which fetches a document and then
attempts to display it, I get a TclError :
_tkinter.TclError: bad window path name "{Extensible
Markup Language (XML) 1.0 (Fifth Edition)}"
2) When running only the parsing and rendering test², I get a big
window to open, with nothing displayed. I am not quite familiar with
Tk, so I have no idea of why it acts that way.

1: webbrowser.py
2: xmlparser.py

ejetzer

unread,
Apr 5, 2010, 12:38:22 PM4/5/10
to

I just realized I haven't included the Google Code project url :
http://code.google.com/p/smally-browser/source/browse/#svn/trunk

Lie Ryan

unread,
Apr 5, 2010, 10:32:43 PM4/5/10
to

Check your indentation xmlparser.py in line 63 to 236, are they supposed
to be correct?

ejetzer

unread,
Apr 7, 2010, 11:05:47 PM4/7/10
to

Yes, these are functions that are used exclusively inside the feed
function, so I decided to restrict their namespace. I just realized it
could be confusing, so I placed them in global namsespace.

0 new messages