[Tutor] buggy bug in my program

2006-06-10 Thread Kermit Rose
# def insertw(j1,k,w1,w2,jar,limit): #trace = 1 #if k == 0: #jar[k][0] = k #jar[k][1] = w1 #jar[k][2] = w2 #return #if j1 > k: #jar[j1][0] = k #jar[j1][1] = w1 #jar[j1][2] = w2 #return # #for j2 in range(j1+1,k+

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 o

[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') i

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 liv

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 be

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/ http://eff

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 a

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 cont

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 sing

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,