Re: [Tutor] help

2005-03-07 Thread Michael Lange
get the /a command to work. I don't know what the /a command is, please give more details. I get an elongated 0 in my Python interpreter, but no sound. Sound? Maybe you meant print \a ? Michael ___ Tutor maillist - Tutor@python.org

Re: [Tutor] Saving Entry fields in Tkinter

2005-03-01 Thread Michael Lange
perhaps populate the entry-widgets. HTH Ewald Or use the fileinput module: var_list = [] for line in fileinput.input(filename): var = Tkinter.StringVar() var.set(line) var_list.append(var) Best regards Michael on Tue, 1 Mar 2005 09:22:06 + Adam Cripps [EMAIL

Re: [Tutor] Recursive Tkinter buttons

2005-02-27 Thread Michael Lange
On Sat, 26 Feb 2005 19:48:25 + Adam Cripps [EMAIL PROTECTED] wrote: On Fri, 25 Feb 2005 12:21:18 +0100, Michael Lange snip You see, in my example above I called the list buttonlist instead of button; maybe this naming helps avoid confusion . Best regards Michael Many

Re: [Tutor] Recursive Tkinter buttons

2005-02-25 Thread Michael Lange
None, so you would have: None = Button(text=buttonlabel) which is probably not what you intended. You see, in my example above I called the list buttonlist instead of button; maybe this naming helps avoid confusion . Best regards Michael ___ Tutor

Re: [Tutor] Unicode issues

2005-02-24 Thread Michael Lange
On Thu, 24 Feb 2005 07:51:04 -0500 Kent Johnson [EMAIL PROTECTED] wrote: Michael Lange wrote: I *thought* I would have to convert the user input which might be any encoding back into byte string first How are you getting the user input? Is it from the console or from a GUI? It's

[Tutor] Reading Tutor with gmail: monospace fonts

2005-02-24 Thread Michael Dunn
, and then select the file from the Advanced tab in Safari's Preferences. I don't know about other browsers, but the same sort of thing is almost certainly possible. Cheers, Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo

Re: [Tutor] UnicodeDecodeError

2005-02-23 Thread Michael Lange
filename to /somepath/A\xe4.wav works but /somepath/\xe4.wav not). I'm really lost here, so any further hints are very appreciated. Thanks and best regards Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] UnicodeDecodeError

2005-02-23 Thread Michael Lange
sys.setdefaultencoding('latin-1') Kent Unfortunately the latter is no option, because I definitely need portability. I guess I should probably use utf-8. Thanks and best regards Michael ## Error: 1

[Tutor] UnicodeDecodeError

2005-02-22 Thread Michael Lange
hope that someone here can give me a hint. Thanks in advance and best regards Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How can i use both float and int?

2005-02-22 Thread Michael Dunn
that the decimal type is what you need. As I understand it, it allows you to specify the precision of your number, so 1 will be come out as to 1. and not 1.0001 (or whatever). I'm not using 2.4 myself yet, so ask the list if you need examples or explanation. Michael On Tue, 22 Feb 2005 21:25:41

Re: [Tutor] help with .get in Tkinter

2005-02-20 Thread Michael Lange
contents or simply: def go(): print e.get() I hope this helps Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] i have a question???

2005-02-03 Thread Michael Janssen
. Then translate from current-intervall-number to pi'ish (sorry for that, my english ;-) value. regards Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tkinter questions

2005-02-02 Thread Michael Lange
) default; tk guarantees that at least 'times', 'helvetica' and 'courier' font families are available, the availability of other fonts depends on your system. I hope this helps Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman

Re: [Tutor] carriage return on windows

2005-02-01 Thread Michael Janssen
spaces sys.stdout.write(\033[D* (length)) sys.stdout.flush() time.sleep(.5) regards Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Clash of the Titans and Mundane Matters

2005-01-19 Thread Michael Powe
Clash of the Titans From Dive into Python: __init__ is called immediately after an instance of the class is created. It would be tempting but incorrect to call this the constructor of the class. It's tempting, because it looks like a constructor (by convention, __init__ is the first method

Re: [Tutor] Tix and Table printing

2005-01-14 Thread Michael Lange
Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Something is wrong in file input output functions.

2005-01-10 Thread Michael Powe
On Mon, Jan 10, 2005 at 12:15:18PM -0800, kumar s wrote: Dear group, I have written a small piece of code that takes a file and selects the columns that I am interested in and checks the value of the column on a condition (value that eqauls 25) and then write it the to another file.

Re: [Tutor] CGI problem

2005-01-10 Thread Patric Michael
Hi David... You need to explicitly name your form element to inputkey to make your current code work correctly. ( Based on what you have shown below.) Or, to make the code correct, change inputkey to language. Remember that the name in each form element becomes the key in the key/value pairs

Re: [Tutor] How to run a script file

2005-01-04 Thread Patric Michael
though. I'm assuming your python is in /usr/bin. And that is a hash mark followed by an exclamation point. This is called hash bang in uningo. John Purser -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patric Michael Sent: Tuesday

Re: [Tutor] Re: here documents

2005-01-03 Thread Michael Powe
On Mon, Jan 03, 2005 at 10:04:18PM -0200, Jorge Luiz Godoy Filho wrote: Alan Gauld, Segunda 03 Janeiro 2005 21:56, wrote: Oops, those should have been () not {} I always do the same mistake ;-) Using {} seems more intuitive to me. perhaps because of ${var} shell syntax? ;-) mp

[Tutor] A not-so-basic question...

2005-01-02 Thread Patric Michael
Hi folks... I was thinking about this the other day while prepping to write up another CGI thing. It occurred to me to wonder how other folks prepare an app, script, whatever. So the question is, and I am not looking for a right answer here. (I doubt ther eis one, to be honest.) How do you

Re: [Tutor] doctest

2005-01-01 Thread Patric Michael
Also, anything I can do... Presently, since I'm running windows xp, I would have to hunt for the command prompt and type in the command Click Start, click Run, type CMD, press Enter. Voila! :) Patric 'C:\python24\python.exe C:\documents and settings\jacob\desktop\working python

Re: [Tutor] O.T.

2004-12-31 Thread Michael Lange
No programming knowledge required! which looked very promising to me back then. A happy new year to all of you Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] cgi.FieldStorage and dictionary.get(' ')

2004-12-30 Thread Patric Michael
Hi, I've passed this through the interperter line-by-line, yet still can't get it to work right. The first time the cgi driver script initiates it runs the login function which renders a zpt. Upon submission of their vitals, the I'm not sure what a zpt is, but it sounds like the form

Re: [Tutor] O.T.

2004-12-30 Thread Patric Michael
Hi Jacob... But who are you all, what are you're ages, what do you do, marriage status, etc? You obviously don't have to answer, I'm just curious who I'm boldly sending emails to. I figure since I bit the bullet and actually posted a reply, I best answer this as well in the faint hope of why

Re: [Tutor] CGI Video collection application File I/O troubles

2004-12-09 Thread Patric Michael
Snip Sorry for the delay but I was busy with soemthing else. The script prints the values of the variables fine in the browser so there must be a problem with the file writing part. When I run the script from my bash shell it creates the videodb database file, but when I run it from the

<    3   4   5   6   7   8