Re: [Tutor] simple plots

2009-08-21 Thread Che M
> I would like to make some simple plots using matplotlib (or any python > plotting > modules) and I can find lots of examples that generate random data and then > plot those, but I cannot find any that read in data from excel or a text > file, > manipulate the data and then plot the data. D

Re: [Tutor] simple plots

2009-08-21 Thread Kent Johnson
On Fri, Aug 21, 2009 at 8:34 PM, questions anon wrote: > I would like to make some simple plots using matplotlib (or any python > plotting modules) and I can find lots of examples that generate random data > and then plot those, but I cannot find any that read in data from excel or a > text file, m

Re: [Tutor] get name of calling class at runtime

2009-08-21 Thread Kent Johnson
On Fri, Aug 21, 2009 at 6:58 PM, Alan Gauld wrote: > "Serdar Tumgoren" wrote > >> I'm trying to create a data-retriever class that executes certain SQL >> statements based on the name of a calling class > > This is a really bad "smell" from an OO design point of view. > >> can group a bunch of SQL

[Tutor] simple plots

2009-08-21 Thread questions anon
I would like to make some simple plots using matplotlib (or any python plotting modules) and I can find lots of examples that generate random data and then plot those, but I cannot find any that read in data from excel or a text file, manipulate the data and then plot the data. Does anyone have any

Re: [Tutor] get name of calling class at runtime

2009-08-21 Thread Alan Gauld
"Serdar Tumgoren" wrote Meantime, how do I pass "self" to DataSources? Do I literally just pass in the word "self" from inside the calling object? Apologies for the confusion -- I've never used that technique before and it's bending my brain a little:) self is just a reference to the curre

Re: [Tutor] get name of calling class at runtime

2009-08-21 Thread Alan Gauld
"Serdar Tumgoren" wrote I'm trying to create a data-retriever class that executes certain SQL statements based on the name of a calling class This is a really bad "smell" from an OO design point of view. can group a bunch of SQL statements in one place; they're currently scattered all over

Re: [Tutor] get name of calling class at runtime

2009-08-21 Thread Serdar Tumgoren
> You could simplify the code above by passing self to DataSources(). Or > make CallerX inherit from DataSources and use the class attribute > trick we talked about before. Or perhaps you should look into > SQLObject or SQLAlchemy? > The class attribute trick worked nicely. I'll think about how to

Re: [Tutor] how do we represent left arrow key in python programming.

2009-08-21 Thread Eike Welk
On Friday 21 August 2009, Ajith Gopinath wrote: > Hi, > I just want to travese a text based menu.My prog. will login to a > text based app. and traverse its menu and clicks where i want to > be. rit now i find it sifficult to traverse the menu.I am but able > to click on the very first item.Will

Re: [Tutor] get name of calling class at runtime

2009-08-21 Thread Kent Johnson
On Fri, Aug 21, 2009 at 1:53 PM, Serdar Tumgoren wrote: > Hi everyone, > I'm trying to create a data-retriever class that executes certain SQL > statements based on the name of a calling class (I'm doing this so I > can group a bunch of SQL statements in one place; they're currently > scattered all

[Tutor] get name of calling class at runtime

2009-08-21 Thread Serdar Tumgoren
Hi everyone, I'm trying to create a data-retriever class that executes certain SQL statements based on the name of a calling class (I'm doing this so I can group a bunch of SQL statements in one place; they're currently scattered all over the program and it's getting unwieldy). Currently, I'm forc

Re: [Tutor] how do we represent left arrow key in python programming.

2009-08-21 Thread Alan Gauld
"Ajith Gopinath" wrote how do we represent left arrow key in a python program? Can anybody help? That depends entirely on your terminal/environment. If you are using a Unix terminal it will be diffeent to using a Mac or a PC. You can write a program to display the key code of any key us

Re: [Tutor] Help on input error

2009-08-21 Thread Alan Gauld
wrote "Python Modules" is not a folder recognized by Python. Try putting the file in Python31/Lib/site-packages/area.py Although that solved your problem I tend to use sire-packages for third party modules I've downloaded - and can download again. For my own code I keep a separate Proje

Re: [Tutor] help cvs module writerow issue (Now Fixed)

2009-08-21 Thread David Jamieson
> Hi All, > > I am looking to make an append to csv file function more dynamic by > allowing it to receive a variable number of arguments to write out to > a single a csv file row. The funtion is an append to file function > that writes out test date to a csv file. Reason for trying to make it > dy

Re: [Tutor] Help on input error

2009-08-21 Thread dshunick
Changing the folder to site-packages did the trick. Thanks David Shunick - Original Message - From: "Kent Johnson" To: "David Shunick" Cc: tutor@python.org Sent: Wednesday, August 19, 2009 6:26:19 PM GMT -08:00 US/Canada Pacific Subject: Re: [Tutor] Help on input error On Wed,

Re: [Tutor] how do we represent left arrow key in python programming.

2009-08-21 Thread Dave Angel
Ajith Gopinath wrote: Hi Folks, how do we represent left arrow key in a python program? Can anybody help? || a j i t || Be more specific. Are you writing your gui in wxpython, in gtk, in tkinter? Or are you writing a console program? In what Python version? Are you looking to see how an

Re: [Tutor] how do we represent left arrow key in python programming.

2009-08-21 Thread Ajith Gopinath
Hi, I just want to travese a text based menu.My prog. will login to a text based app. and traverse its menu and clicks where i want to be. rit now i find it sifficult to traverse the menu.I am but able to click on the very first item.Will this info help? || a j i t || On Fri, Aug 21, 2009 at 3

Re: [Tutor] how do we represent left arrow key in python programming.

2009-08-21 Thread Luke Paireepinart
you're gonna have to be a lot more specific than that if you want a decent answer. On Fri, Aug 21, 2009 at 4:45 AM, Ajith Gopinath wrote: > Hi Folks, > how do we represent left arrow key in a python program? > Can anybody help? > || a j i t || > > ___

[Tutor] how do we represent left arrow key in python programming.

2009-08-21 Thread Ajith Gopinath
Hi Folks, how do we represent left arrow key in a python program? Can anybody help? || a j i t || ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor