[Tutor] advice on an app

2012-05-01 Thread Khalid Al-Ghamdi
hi all, I'm trying to create an app that schedules 3000 to 5000 trainees' practical exams. All the trainees basic info (name, badge, major, etc.) is in excel and i've managed to convert it into a *HUGE *list via a csv.reader object. My question is: is this the right way to go or should i use

Re: [Tutor] advice on an app

2012-05-01 Thread Joel Goldstick
On Tue, May 1, 2012 at 5:19 AM, Khalid Al-Ghamdi emailkg...@gmail.com wrote: hi all, I'm trying to create an app that schedules 3000 to 5000 trainees' practical exams. All the trainees basic info (name, badge, major, etc.) is in excel and i've managed to convert it into a HUGE list via a

[Tutor] Is there space a between #! and /usr/bin/env python ?

2012-05-01 Thread Santosh Kumar
Is there space a between #! and /usr/bin/env python? I have seen Python manual, it says #! /usr/bin/env python But snippet manager of many text editing programs have #!/usr/bin/env python. Python is a strongly typed language, which one is correct? ___

Re: [Tutor] question about listing variables defined since session started

2012-05-01 Thread Prasad, Ramit
Steven D'Aprano wrote: Robert Sjoblom wrote: On 30 April 2012 23:25, Comer Duncan comer.dun...@gmail.com wrote: Hi, I have a newbie type question. Say I have started a python (or ipython) session and have done some imports and have also defined some new variables since the session

Re: [Tutor] Is there space a between #! and /usr/bin/env python ?

2012-05-01 Thread Dave Angel
On 05/01/2012 09:55 AM, Santosh Kumar wrote: Is there space a between #! and /usr/bin/env python? I have seen Python manual, it says #! /usr/bin/env python But snippet manager of many text editing programs have #!/usr/bin/env python. Python is a strongly typed language, which one is correct?

[Tutor] binding a button to an entry

2012-05-01 Thread ADRIAN KELLY
Hi all, Please can anyone tell me how i bind the activation of a button with input from an entry widget. i know i should be using classes etc. but i don't understand them fully yet.. problem here is that no matter what i enter in the entry window it displays as password incorrect. from Tkinter

Re: [Tutor] binding a button to an entry

2012-05-01 Thread Dave Angel
On 05/01/2012 10:40 AM, ADRIAN KELLY wrote: Hi all, Please can anyone tell me how i bind the activation of a button with input from an entry widget. i know i should be using classes etc. but i don't understand them fully yet.. problem here is that no matter what i enter in the entry window

Re: [Tutor] Is there space a between #! and /usr/bin/env python ?

2012-05-01 Thread Flynn, Stephen (L P - IT)
I have seen Python manual, it says #! /usr/bin/env python But snippet manager of many text editing programs have #!/usr/bin/env python. Python is a strongly typed language, which one is correct? That's not python code - it's interpreted by the shell (on Linux/Unix) to determine what to invoke

Re: [Tutor] question about listing variables defined since session started

2012-05-01 Thread Steven D'Aprano
Prasad, Ramit wrote: Steven D'Aprano wrote: Robert Sjoblom wrote: On 30 April 2012 23:25, Comer Duncan comer.dun...@gmail.com wrote: Hi, I have a newbie type question. Say I have started a python (or ipython) session and have done some imports and have also defined some new variables since

Re: [Tutor] binding a button to an entry

2012-05-01 Thread Prasad, Ramit
Hi all, Please can anyone tell me how i bind the activation of a button with input from an entry widget. i know i should be using classes etc. but i don't understand them fully yet.. problem here is that no matter what i enter in the entry window it displays as password incorrect. from

Re: [Tutor] question about listing variables defined since session started

2012-05-01 Thread Prasad, Ramit
Steven D'Aprano wrote: Prasad, Ramit wrote: Steven D'Aprano wrote: Robert Sjoblom wrote: On 30 April 2012 23:25, Comer Duncan comer.dun...@gmail.com wrote: Hi, I have a newbie type question. Say I have started a python (or ipython) session and have done some imports and have also

Re: [Tutor] Is there space a between #! and /usr/bin/env python ?

2012-05-01 Thread Lie Ryan
and is used by the various Unix command shells to specify what program shall interpret this particular script. To be precise, the shell does not care about the shebang line either, the shebang is interpreted by the program loader in the kernel. The shell simply execve()-ed a script containing a

[Tutor] events and popup menus

2012-05-01 Thread Chris Hare
I have four images in a frame. I want to pop up a menu when the user right clicks on an image, and when they choose an option from the menu, execute the action. I can create the popup menu, and bind it to the image. However, what I can't figure out is how to detect in the popup menu code

Re: [Tutor] events and popup menus

2012-05-01 Thread Prasad, Ramit
I have four images in a frame. I want to pop up a menu when the user right clicks on an image, and when they choose an option from the menu, execute the action. I can create the popup menu, and bind it to the image. However, what I can't figure out is how to detect in the popup menu code

Re: [Tutor] Is there space a between #! and /usr/bin/env python ?

2012-05-01 Thread Santosh Kumar
Its getting complicated now. Will it effect or not? Give me one word answer with one line description. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Is there space a between #! and /usr/bin/env python ?

2012-05-01 Thread Leam Hall
On 05/01/2012 08:02 PM, Santosh Kumar wrote: Its getting complicated now. Will it effect or not? Give me one word answer with one line description. Experiment -- Try it and see... ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] Is there space a between #! and /usr/bin/env python ?

2012-05-01 Thread Alan Gauld
On 02/05/12 01:02, Santosh Kumar wrote: Its getting complicated now. Will it effect or not? Give me one word answer with one line description. impossible. It depends what OS you are on, but you didn't say. If its Windows the line makes no difference. If it's Unix it depends on the variety,

Re: [Tutor] Is there space a between #! and /usr/bin/env python ?

2012-05-01 Thread Steven D'Aprano
Santosh Kumar wrote: Its getting complicated now. Will it effect or not? Give me one word answer with one line description. No. Either of these are fine: #! /usr/bin/env python #!/usr/bin/env python This is not a Python trick. It will work for Ruby, or Perl, or any other language with an

Re: [Tutor] Is there space a between #! and /usr/bin/env python ?

2012-05-01 Thread Steven D'Aprano
Alan Gauld wrote: On 02/05/12 01:02, Santosh Kumar wrote: Its getting complicated now. Will it effect or not? Give me one word answer with one line description. impossible. It depends what OS you are on, but you didn't say. If its Windows the line makes no difference. On Windows, the

Re: [Tutor] binding a button to an entry

2012-05-01 Thread Alan Gauld
On 01/05/12 15:40, ADRIAN KELLY wrote: Please can anyone tell me how i bind the activation of a button with input from an entry widget. I don;t know what you mean. Do you want to make the button press when the entry widget changes? Or change the entry widget when the button presses? Or just

Re: [Tutor] events and popup menus

2012-05-01 Thread Alan Gauld
On 01/05/12 21:59, Chris Hare wrote: ... what I can't figure out is how to detect in the popup menu code which image fired the event def do_popup(self,event): The event argument has various attributes. For a mouse click it should include the screen coordinates. You can use those to

Re: [Tutor] Is there space a between #! and /usr/bin/env python ?

2012-05-01 Thread Alan Gauld
On 02/05/12 01:27, Steven D'Aprano wrote: If it's Unix it depends on the variety, but usually no space is needed. As far as I know, on any Unix, Linux or other POSIX system, the presence or absence of a space between the #! and the path is irrelevant. So far as I know you are right. One