Re: [Tutor] Python 3 and tkinter Radiobuttons

2009-10-11 Thread Dave Angel
(Don't top-post. It confuses everything. Put your reply at the bottom, or maybe inline) bob smith wrote: Thanks for the reply. Unfortunately, even when I include a variable, all of the buttons start out selected. I noticed that this is the case when I create a StringVar (rathe

Re: [Tutor] Python 3 and tkinter Radiobuttons

2009-10-11 Thread Kent Johnson
On Sun, Oct 11, 2009 at 7:00 AM, Dave Angel wrote: > bob smith wrote: >> >>                  Thanks for the reply. Unfortunately, even when I include >> a variable, all of the buttons start out selected. What version of Python 3 are you using? What platform? If you are not using the latest versio

[Tutor] Extracting columns from CSV

2009-10-11 Thread Utkarsh ""
Hello, I have a CSV file, from which I want to extract data. The CSV file is arranged like this: Time, InSec, Open, High, Low, Close, Qty 09:55:17,35717,41.95,41.95,41.95,41.95,105 09:56:03,35763,41.75,41.75,41.75,41.75,20785 09:56:40,35800,41.75,41.75,41.75,41.75,8950 I wanted to extract each co

Re: [Tutor] Extracting columns from CSV

2009-10-11 Thread vishwajeet singh
On Sun, Oct 11, 2009 at 6:10 PM, Utkarsh "" wrote: > Hello, I have a CSV file, from which I want to extract data. > The CSV file is arranged like this: > > Time, InSec, Open, High, Low, Close, Qty > 09:55:17,35717,41.95,41.95,41.95,41.95,105 > 09:56:03,35763,41.75,41.75,41.75,41.75,20785 > 09:56:

Re: [Tutor] Extracting columns from CSV

2009-10-11 Thread Kent Johnson
On Sun, Oct 11, 2009 at 8:40 AM, Utkarsh "" wrote: > Hello, I have a CSV file, from which I want to extract data. > The CSV file is arranged like this: > Time, InSec, Open, High, Low, Close, Qty > 09:55:17,35717,41.95,41.95,41.95,41.95,105 > 09:56:03,35763,41.75,41.75,41.75,41.75,20785 > 09:56:40,

Re: [Tutor] [OT] Secure coding guidelines

2009-10-11 Thread Lie Ryan
Didar Hossain wrote: > Hi, > > This is a little off-topic, but, I though I might put this question in. > > Since I am learning Python, I was wondering if there are any good > references on secure > coding practices. Books, guides or even any howtos would suffice. > > Security seems to be almost

Re: [Tutor] Python 3 and tkinter Radiobuttons

2009-10-11 Thread Alan Gauld
"Kent Johnson" wrote Without the v.set() it starts with no button selected. With v.set() it starts with one button selected. Either way it satisfies the OP's requirement; which one is correct depends on his needs. Unfortunately on Windows it seems to set them all selected without the var s

Re: [Tutor] Extracting columns from CSV

2009-10-11 Thread Lie Ryan
Kent Johnson wrote: > (Pretty cool BTW that *f works, I wasn't sure if it could take an > iterable instead of a sequence.) Just be careful not to use zip(*f) on an infinite iterable... ___ Tutor maillist - Tutor@python.org To unsubscribe or change sub

Re: [Tutor] Finding and Inserting missing dates in a date range.

2009-10-11 Thread Lie Ryan
Glen Zangirolami wrote: > Thats for all the responses. I'm going to use Kents method. I'll let you > know what I work out. > > Rudiger - I did think about that. Luckily I am generating the list with > a start datetime and end datetime so if those don't exist > in either end if the list I can inse

[Tutor] class with objects

2009-10-11 Thread shellc...@juno.com
I want to display the ship default value for zero and display the ship's initial fuel level. Also have a method called status that displays an object's name and fuel values. I want to have several Ship objects and call their status() methods to test various aspects of the class constructor. He

Re: [Tutor] class with objects

2009-10-11 Thread Wayne
On Sun, Oct 11, 2009 at 2:42 PM, shellc...@juno.com wrote: > I want to display the ship default value for zero and display the ship's > initial fuel level. Also have a method called status that displays an > object's name and fuel values. I want to have several Ship objects and call > their statu

Re: [Tutor] Python 3 and tkinter Radiobuttons

2009-10-11 Thread bob smith
> To: tutor@python.org > From: alan.ga...@btinternet.com > Date: Sun, 11 Oct 2009 19:32:20 +0100 > Subject: Re: [Tutor] Python 3 and tkinter Radiobuttons > > > "Kent Johnson" wrote > > > Without the v.set() it starts with no button selected. With v.set() it > > starts with one button selecte

Re: [Tutor] Python 3 and tkinter Radiobuttons

2009-10-11 Thread Kent Johnson
On Sun, Oct 11, 2009 at 5:16 PM, bob smith wrote: > Yes, on Windows with Python 3.1 and using a StringVar(), the initial state > is that all radio buttons look selected when the program first begins.  I'm > able to work around it so that no radio buttons look selected when the > program first begi

Re: [Tutor] class with objects

2009-10-11 Thread Alan Gauld
wrote I want to display the ship default value for zero and display the ship's initial fuel level. Also have a method called status that displays an object's name and fuel values. So far so good. I want to have several Ship objects and call their status() methods to test various aspect

[Tutor] Carriage return

2009-10-11 Thread Vineet Kothari
Hi Everyone I see that python IDLE add ^M as carriage return while programming in windows machine. How can I set IDLE not to do so. I don't see any option & neither do I see any option to check for carriage return. Can anyone help me as I use IDLE & I need to remove ^M from the end of every line.

Re: [Tutor] Carriage return

2009-10-11 Thread bob gailer
Vineet Kothari wrote: Hi Everyone I see that python IDLE add ^M as carriage return while programming in windows machine. How can I set IDLE not to do so. I don't see any option & neither do I see any option to check for carriage return. Can anyone help me as I use IDLE & I need to remove ^M

Re: [Tutor] Carriage return

2009-10-11 Thread Wayne
On Sun, Oct 11, 2009 at 10:33 PM, Vineet Kothari wrote: > Hi Everyone > > I see that python IDLE add ^M as carriage return while programming in > windows machine. How can I set IDLE not to do so. I don't see any option & > neither do I see any option to check for carriage return. > > Can anyone he