[Tutor] Call for volunteer to help revise images for One Day of IDLE Toying

2006-05-06 Thread Danny Yoo
Hi everyone, One of the major complaints that people have made about the "One Day of IDLE Toying" tutorial I've written is that the screenshots are badly outdated. http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/ I was curious if anyone wanted to volunteer to provide fresh, updated

Re: [Tutor] Drifting Values in urllib.

2006-05-06 Thread Danny Yoo
> parameters = urllib.urlencode > ({"id":"%s","origin":"%s","dest":"%s","class1":"85", "weight1":"185","custdata":"%s","respickup":"","resdel":"%s", "insidechrg":"","furnchrg":"","cod":""})%(id,origin,dest,custdata,resdel) Hi Doug, On closer look, I think there's a misunderstanding here. Accor

Re: [Tutor] Drifting Values in urllib.

2006-05-06 Thread Danny Yoo
On Sun, 7 May 2006, Alan Gauld wrote: >> Am I missing something fundamental here? I am not used to dictionaries >> swirling around like this. :-) > > Caveat: I didn't read this through thoroughly but... > > Dictionaries are not in any specific order, you cannot rely on the order > remaining co

Re: [Tutor] Drifting Values in urllib.

2006-05-06 Thread Alan Gauld
> Am I missing something fundamental here? I am not used to > dictionaries > swirling around like this. :-) Caveat: I didn't read this through thoroughly but... Dictionaries are not in any specific order, you cannot rely on the order remaining constant. If you are relying on the order you may we

Re: [Tutor] web intefaces?

2006-05-06 Thread Alan Gauld
> what do you think that is the best software option to design > web user intefaces with python? That's a very broad question! A web UI is just HTML, normally expressed using tables and forms. So you can use any HTML editor to design the UI. And it is generally held to be a good idea to separate t

[Tutor] Drifting Values in urllib.

2006-05-06 Thread doug shawhan
I am having difficulty inderstanding urllib's handling of values passed to it. I assign values from cgi.FieldStorage() thusly: if form.has_key("id"):     id = form["id"].value     if form.has_key("origin"):     origin = form["origin"].value     if form.has_key("dest"):     dest = form["dest"].

[Tutor] web intefaces?

2006-05-06 Thread Alfonso
I would like to experiment with web interfaces and python. After some googling, I'm quite confused, does somebody know of a good link about this topic / what do you think that is the best software option to design web user intefaces with python? I mean web interfaces for common programms (so it

Re: [Tutor] python cgi and html streams

2006-05-06 Thread doug shawhan
On 5/5/06, Danny Yoo <[EMAIL PROTECTED]> wrote: > I was hoping for something magical like:>> gulp = cgi.StreamIO("> http://www.foo.com/cgi-bin/responder.cgi?foo=hi&bar=there&bat=buddy ").read()>> ... but for some reason not one of the python creators foresaw that I might> one day need them to do al

[Tutor] Stumbled onto the answer!

2006-05-06 Thread John CORRY
Hi,   I have managed to “fix” my two combo box problem.  I have used the following code:-   self.wTree = gtk.glade.XML ("phonelog.glade", "window1")     dic={"on_window1_destroy" : self.quit, }     self.wTree.signal_autoconnect (dic)         combo1 = self.wTree.get_

Re: [Tutor] printing the links of a page (regular expressions)

2006-05-06 Thread Alfonso
Kent Johnson wrote: > Alfonso wrote: > >> I'm writing a script to retrieve and print some links of a page. These >> links begin wiht "/dog/", so I use a regular expresion to try to find >> them. The problem is that the script only retrieves a link per line in >> the page. I mean, if the line

Re: [Tutor] 2 Combo Boxes! What was I thinking?

2006-05-06 Thread Liam Clarke
Hi John, I'm going to take a wild stab... (but as Kent said, wxPython or pyGTK?) Combo3.child.append_text("Mon") Okay, so, the DeprecationWarning you need to pay attention to, but that aside, according to the pyGTK docs: http://www.pygtk.org/pygtk2reference/class-gtkcomboboxentry.html#function-

Re: [Tutor] Python challenge

2006-05-06 Thread David Holland
Jason, Thanks that helped me work it out. David  Jason Massey <[EMAIL PROTECTED]> wrote: David,What answer did you get?  One of the things to rember on the challenge is to take your answer and put ".html" (no qutoes) on the end of it in the url.So for the first problem the url would be: http://ww

Re: [Tutor] printing the links of a page (regular expressions)

2006-05-06 Thread Kent Johnson
Alfonso wrote: > I'm writing a script to retrieve and print some links of a page. These > links begin wiht "/dog/", so I use a regular expresion to try to find > them. The problem is that the script only retrieves a link per line in > the page. I mean, if the line hat several links, the script o

Re: [Tutor] 2 Combo Boxes! What was I thinking?

2006-05-06 Thread Kent Johnson
John CORRY wrote: > I have set up a GUI which has amongst other widgets two combo boxes. I > am using: > > PythonCard version: 0.8.1 > wxPython version: 2.6.1.0 > Python version: 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit > (Intel)] > > Platform: win32 > > Glade 2 From your code

[Tutor] printing the links of a page (regular expressions)

2006-05-06 Thread Alfonso
I'm writing a script to retrieve and print some links of a page. These links begin wiht "/dog/", so I use a regular expresion to try to find them. The problem is that the script only retrieves a link per line in the page. I mean, if the line hat several links, the script only reports the first.

[Tutor] 2 Combo Boxes! What was I thinking?

2006-05-06 Thread John CORRY
  Hi,   I have set up a GUI which has amongst other widgets two combo boxes.  I am using:   PythonCard version: 0.8.1 wxPython version: 2.6.1.0 Python version: 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] Platform: win32 Glade 2   I started by setting up combobo