Re: [Tutor] 5 questions

2006-10-22 Thread Alan Gauld
> 1. Is there a searchable archive of this list? Yes, the ActiveState archive is searchable. The gmane version might be too? > 2. Is there list ettiquette one should be aware of? Yes, but I'm not sure how you get a copy. Moderators??? > 3. Besides Vaults of Parnassus, are there other webpages w

Re: [Tutor] can i pass a list to a function and get one back ?

2006-10-22 Thread Kent Johnson
Danny Yoo wrote: > One small comment: we often don't need to use temporary variables like > 'var'. > > def return_a_list(some_var): > some_list = [] > for i in range(5): > some_list.append(some_var + i) > return some_list > > Sometimes a temporary variable

Re: [Tutor] Exception and sys.exit() in a cgi script

2006-10-22 Thread Michael P. Reilly
On 10/21/06, Paulino <[EMAIL PROTECTED]> wrote: Mike Hansen Mike.Hansen at atmel.com Mon Oct 16 18:43:29 CEST 2006 > This is a peace of a CGI script i have.> > 1 import cgi> 2 form=cgi.FieldStorage()> 3 try :> 4 ano=form["ano"].value> 5 conta=form["conta"].v

Re: [Tutor] Has anyone tried matplotlib...??

2006-10-22 Thread Matt Richardson
I just used it a couple of weeks ago to produce a histogram of randomly generated numbers. Read the documentation, it's well written and has good examples. Matt On 10/22/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > > Folks, > > Has anyone tried matplotlib ..//??? > > If yes, then is it easy

[Tutor] rabbit core microcontrollers - Django

2006-10-22 Thread Picio
Hello, I would wonder if anyone knows something about programming Rabbit Core Modules, that normally were programmed diretctly with Dynamic C, with Python. I mean either: - something like using python to create code in dynamic suitable for the rabbit core - writing machine code for the rabbit core

[Tutor] getopt module..

2006-10-22 Thread Asrarahmed Kadri
Can somebody explain getopt function using a simple example..   Thanks..   Regards,   Asrarahmed Kadri-- To HIM you shall return. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] getopt module..

2006-10-22 Thread David Rock
* Asrarahmed Kadri <[EMAIL PROTECTED]> [2006-10-22 20:19]: > Can somebody explain getopt function using a simple example.. > > Thanks.. This really does have a good example of usage http://docs.python.org/lib/module-getopt.html Essentially, you define options and arguments and what you expect t

Re: [Tutor] 5 questions

2006-10-22 Thread Kent Johnson
Alan Gauld wrote: > Pine Marten wrote: >> 2. Is there list ettiquette one should be aware of? > > Yes, but I'm not sure how you get a copy. > Moderators??? Hmm, I didn't get that as part of my new moderator's welcome package. We are pretty informal. The only real rule I can think of is, don't as

[Tutor] Has anyone tried matplotlib...??

2006-10-22 Thread Asrarahmed Kadri
Folks,   Has anyone tried matplotlib ..//???   If yes, then is it easy to use...       -- To HIM you shall return. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Has anyone tried matplotlib...??

2006-10-22 Thread Bill Campbell
On Sun, Oct 22, 2006, Matt Richardson wrote: >I just used it a couple of weeks ago to produce a histogram of >randomly generated numbers. Read the documentation, it's well written >and has good examples. You might also want to look at gnuplot. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell

Re: [Tutor] My first real python project: LOLLERSKATES

2006-10-22 Thread Kent Johnson
Tracy R Reed wrote: > Questions/problems/TODO's: > > This is a fairly simple structured programming implementation. No OO. > Should I be using some classes somewhere? There doesn't seem to be any need for it. > > The config file is just a module which I import which causes all of my > configs

Re: [Tutor] 5 questions

2006-10-22 Thread Luke Paireepinart
Kent Johnson wrote: > Alan Gauld wrote: > >> Pine Marten wrote: >> >>> 2. Is there list ettiquette one should be aware of? >>> >> Yes, but I'm not sure how you get a copy. >> Moderators??? >> > > Hmm, I didn't get that as part of my new moderator's welcome package. We > are pre

[Tutor] GUI new project

2006-10-22 Thread Joe Cox
As a new guy, I was trying to write a simple unit conversion program in Tk. I got this error message:TclError: unknown option "-command" >>> Traceback (most recent call last): File "D:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript exec codeObje

Re: [Tutor] GUI new project

2006-10-22 Thread Luke Paireepinart
> > > """Create the Second ListBox""" > > self.lbRSSItems = Listbox(self, exportselection=0 > ,command=self.reveal > , relief=SUNKEN) > Because whitespace is important in pyth

Re: [Tutor] GUI new project

2006-10-22 Thread Luke Paireepinart
Joe Cox wrote: > As a new guy, I was trying to write a simple unit conversion > program in Tk. I got this error message:TclError: unknown option "-command" > > > Traceback (most recent call last): > File > "D:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.

Re: [Tutor] GUI new project

2006-10-22 Thread Alan Gauld
"Joe Cox" <[EMAIL PROTECTED]> wrote > As a new guy, I was trying to write a simple unit conversion > program in Tk. I got this error message:TclError: unknown option > "-command" Which says that you are using an unknown option command... ie. Listboxes don't have a command option. HTH, -- Ala

Re: [Tutor] GUI new project

2006-10-22 Thread johnf
On Sunday 22 October 2006 20:03, Luke Paireepinart wrote: > > """Create the Second ListBox""" > > > > self.lbRSSItems = Listbox(self, exportselection=0 > > ,command=self.reveal > > , relief=SUNKEN) > > Because whitespace is

Re: [Tutor] GUI new project

2006-10-22 Thread Luke Paireepinart
johnf wrote: > On Sunday 22 October 2006 20:03, Luke Paireepinart wrote: > >>> """Create the Second ListBox""" >>> >>> self.lbRSSItems = Listbox(self, exportselection=0 >>> ,command=self.reveal >>> , relief=SUNKEN) >>>