Re: [Tutor] XML: Expletive Deleted

2006-06-10 Thread lawrence wang
for item in itemIDs: print item yeilds DOM Element: ItemID at 0x7f532c0c DOM Element: ItemID at 0x7f5400cc DOM Element: ItemID at 0x7f54656c DOM Element: ItemID at 0x7f54ea0c DOM Element: ItemID at 0x7f555eac Okay, no problem. Now all I have to do is figure out which

Re: [Tutor] An Introduction and a question

2006-06-10 Thread Jonathon Sisson
Michael Sullivan wrote: Here's the situation: My wife likes to play the game Chuzzle, found at Yahoo Games. We use primarily Linux, however Chuzzle is written as an ActiveX control, which only works on Windows. I have not been able to get Internet Explorer to work correctly through Wine,

Re: [Tutor] An Introduction and a question (continuing)

2006-06-10 Thread Kent Johnson
Michael Sullivan wrote: OK. I've got it working this far. Now I want the script to generate eight pieces, each with a random colour. Here's my current code: #!/usr/bin/env python import random import time import math class LinePuzzlePiece: This class defines a single playing

Re: [Tutor] Function list that might have a tuple that might have one of its indexs set to 's'

2006-06-10 Thread Kent Johnson
Paul D. Kraus wrote: I need to scan through a list that contains headers to my table. If one of the elements is a tuple and one of the elements of the tuple is s set self.sort to the index of the tuple in the header list and then replace the element in header with a two field tuple

Re: [Tutor] Expletive Deleted

2006-06-10 Thread Ralph H. Stoos Jr.
My $.02, First, I subscribed to this list to help learn Python as my first language so my opinion is far from expert. In my real job, I am attempting to get our real programmers to support exporting one of our system logs in XML format, hence, the following opinion. I think XML is a tool that

Re: [Tutor] XML: Expletive Deleted

2006-06-10 Thread Kent Johnson
In my opinion the standard DOM models are the most awkward way to deal with XML. If you are trying to get data from HTML on a web page, look at BeautifulSoup. For general XML processing, look at ElementTree. They are both simpler than DOM. http://www.crummy.com/software/BeautifulSoup/

Re: [Tutor] An Introduction and a question

2006-06-10 Thread Michael Sullivan
On Sat, 2006-06-10 at 03:27 +0100, Jonathon Sisson wrote: Michael Sullivan wrote: Here's the situation: My wife likes to play the game Chuzzle, found at Yahoo Games. We use primarily Linux, however Chuzzle is written as an ActiveX control, which only works on Windows. I have not been

Re: [Tutor] Difference between popens

2006-06-10 Thread Michael P. Reilly
On 6/9/06, Bernard Lebel [EMAIL PROTECTED] wrote: Hey, thanks for the nice explanation Michael!BernardWhoops.. Hit reply instead of reply to all. My apologies to the group. Dang gmail. -Michael -- There's so many different worlds,So many different suns.And we have just one world,But we live in

[Tutor] problems with python and glade

2006-06-10 Thread Alfonso
Hi, I'm trying to learn to use python with glade. As start I have tried to run a program from a tutorial, but when I run it I become this exception: class GladeXML(_gtk.GtkData): AttributeError: 'module' object has no attribute 'GtkData' This ist the program: import pygtk pygtk.require('2.0')

Re: [Tutor] An Introduction and a question

2006-06-10 Thread Jonathon Sisson
've triedMichael Sullivan wrote: On Sat, 2006-06-10 at 03:27 +0100, Jonathon Sisson wrote: Michael Sullivan wrote: Here's the situation: My wife likes to play the game Chuzzle, found at Yahoo Games. We use primarily Linux, however Chuzzle is written as an ActiveX control, which only works