Re: [Tutor] my first gui

2009-06-03 Thread prasad rao
Hello Thanks I will implement your suggestions. True .Names and parameters are not descriptive. There are no comments(docstrings) in the program . There is scope to reduce number of functions. Thank you Prasad ___ Tutor maillist - Tutor@python.org

Re: [Tutor] array manipulations

2009-06-03 Thread Lie Ryan
NTB wrote: > Hello, > I'm an R user, who just started with numpy. I'm planning on setting up > a large nutrient database. Here's my question: > > I'm trying to reshape? or manipulate? the following array: > > array [['Food 1', 'Nutrient 1', 0.9], > ['Food 1', 'Nutrient 2', 0.2],

[Tutor] array manipulations

2009-06-03 Thread NTB
Hello, I'm an R user, who just started with numpy. I'm planning on setting up a large nutrient database. Here's my question: I'm trying to reshape? or manipulate? the following array: array [['Food 1', 'Nutrient 1', 0.9], ['Food 1', 'Nutrient 2', 0.2], ['Food 2', 'Nutr

Re: [Tutor] serious problem with graphics module

2009-06-03 Thread Alan Gauld
"W W" wrote Do you (or sombody else) know how to get ipython working with Python 2.6 (you know, the Python release, which has that new turtle module ;-) ) doesn't install on my Windows box... other than that I've got no experience with it I thought the new turtle module could be made to

Re: [Tutor] serious problem with graphics module

2009-06-03 Thread W W
Forwarding on to the list... -- Forwarded message -- From: Gregor Lingl Date: Wed, Jun 3, 2009 at 3:46 PM Subject: Re: [Tutor] serious problem with graphics module To: W W W W schrieb: > On Tue, Jun 2, 2009 at 7:12 PM, Gregor Lingl gregor.li...@aon.at>> wrote: > > >

Re: [Tutor] my first gui]

2009-06-03 Thread David
David wrote: > > prasad rao wrote: > >> Hello. >> I made my first mager gui program.I need your openions suggestions and >> improvements. >> >> > Hi Prasad, > I get this error, I am using 2.5 on Linux; > > Exception in Tkinter callback > Traceback (most recent call last): > File "/usr/l

Re: [Tutor] my first gui]

2009-06-03 Thread David
-- powered by Gentoo/GNU Linux http://linuxcrazy.com --- Begin Message --- prasad rao wrote: > Hello. > I made my first mager gui program.I need your openions suggestions and > improvements. > Hi Prasad, I get this error, I am using 2.5 on Linux; Exception in Tkinter callback Traceback (most

Re: [Tutor] my first gui

2009-06-03 Thread Lie Ryan
prasad rao wrote: > Hello. > I made my first mager gui program.I need your openions suggestions and > improvements. > > > #! usr\\bin\\env python Why is the shebang like that? > from Tkinter import * importing * is considered namespace pollution since you cannot control what name would be int

Re: [Tutor] my first gui

2009-06-03 Thread Alan Gauld
"prasad rao" wrote I made my first mager gui program.I need your openions suggestions and improvements. OK, Here goes... def myfiles (n='',m=''): import os mf=[os.path.join(x,i)for x,y,z in os.walk(n) for i in z if i.endswith(m)] return mf The parameters could use more descriptiv

[Tutor] my first gui

2009-06-03 Thread prasad rao
Hello. I made my first mager gui program.I need your openions suggestions and improvements. #! usr\\bin\\env python from Tkinter import * def myfiles (n='',m=''): import os mf=[os.path.join(x,i)for x,y,z in os.walk(n) for i in z if i.endswith(m)] return mf def fshow(): tclear(

Re: [Tutor] delphi, pascal and Python

2009-06-03 Thread Andy Cheesman
By the way, the error was generated by following the tutorial and compiling in lazarus > After Much Looking and pointers from the author, There is this most > excellent post by the same author at > > http://wiki.lazarus.freepascal.org/Developing_Python_Modules_with_Pascal > > This nearly works b

Re: [Tutor] python workspace -- vars() vs locals()

2009-06-03 Thread Emile van Sebille
On 6/3/2009 12:50 AM spir said... Le Tue, 02 Jun 2009 10:47:38 -0700, Emile van Sebille s'exprima ainsi: On 6/2/2009 8:54 AM roberto said... hello, i'd like to ask if there is anything in python which helps to see what variables have been defined and their type and their dimension etc; In ap

[Tutor] Text.insert()

2009-06-03 Thread prasad rao
Hello >> I created a gui app.I am finding it impossible to >> use Text.insert().please some one give an example of using it. >Look in my tutorial at event driven programming and the Case >study. Both use the Text widget. >For more detailed info try this introduction: >http://www.linuxjournal.c

Re: [Tutor] python workspace -- vars() vs locals()

2009-06-03 Thread spir
Le Tue, 02 Jun 2009 10:47:38 -0700, Emile van Sebille s'exprima ainsi: > On 6/2/2009 8:54 AM roberto said... > > hello, > > i'd like to ask if there is anything in python which helps to see what > > variables have been defined and their type and their dimension etc; > > In appropriate contexts,