Python Guru needed
Jim
mickeyboa at sbcglobal.net
Wed Jan 7 22:55:13 UTC 2009
Arthur Pemberton wrote:
> On Wed, Jan 7, 2009 at 4:17 PM, Jim <mickeyboa at sbcglobal.net> wrote:
>
>> FC 10/KDE
>>
>> I'm trying to set a simple Alarm Clock in FC10 and I have a Python script I
>> picked up, but I have error, running the script.
>> Can you explain to me with # comments on each line how to make this work.
>>
>> import time
>> import os
>>
>> not_executed = 1
>>
>> while(not_executed):
>> dt = list(time.localtime(time.time())
>> hour = dt[3]
>> minute = dt[4]
>> if hour == 5 and minute == 45:
>> os.popen2("open /Users/jun/shout.mp3")
>> not_executed = 0
>>
>
> I assume you're using this: http://petro.tanrei.ca/2007/02/my-alarm-clock/
>
> You did not copy the whitespace appropriately. Python uses whitespace
> to delimit blocks.
>
>
>> --
>> fedora-list mailing list
>> fedora-list at redhat.com
>> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>> Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>>
>>
>
>
>
>
White space WHERE ??
I no nothing about Python
More information about the fedora-list
mailing list