Hey all, I'm a newbie to both python and wxWindows.
I read the python tutorial that comes with the distro.
I do have experience in other languages like php,
perl, javascript.
I want to start writing something in python.
I want to make a little GUI alarm clock application
that only needs to a
few specific things.
Things I want it to do:
1. Set the alarm
2. Play wav file when that time is reached
3. Play wav file every x number of minutes/hours until
it is turned off
So a few questions.
1. Would wxPython be good at doing something like
this?
2. Would this be a good project for me to do
considering that I've never used
python or wxWindows, or should I do something else
first to make sure I'm
comfortable with python?
3. Could you point me in the direction of some places
to get started and at suggest
some of the wxWindows classes that I will probably
need to use to build the
alarm clock?
tia,
--ed
···
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com
This is a good project and relatively simple for a wxPython newbie. I was
thinking about adding an analog clock sample to PythonCard http://www.pythoncard.org/, so I'll go ahead and describe a few issues in
that context.
You'll want to use a wxTimer to generate a timer event say every second or
minute to update your clock and check to see if you should be ringing an
alarm. You'll want to use a wxWave to play the alarm sound. The playback can
be async if you want.
I'm sure other people will chime in with organization of your code if you
end up using "raw" wxPython. If you want to use PythonCard (which is a
framework that simplifies parts of wxPython) then you'll want to look at the
worldclock sample to see an example of using a timer event and the sounds
sample to see an example of playing a wav file.
The worldclock sample has changed since release 0.6.6, so you should look at
the one in cvs for the timer example in PythonCard.
e/samples/worldclock/
Feel free to bring up any other PythonCard questions by joining the mailing
list:
ka
ps. Now I sort of want to add an alarm to the worldclock, but it is probably
best left as an exercise for the reader
···
-----Original Message-----
From: wxpython-users-admin@lists.wxwindows.org
[mailto:wxpython-users-admin@lists.wxwindows.org]On Behalf Of ed
Sent: Thursday, May 30, 2002 3:13 PM
To: wxpython-users@lists.wxwindows.org
Subject: [wxPython] python/wx newbie
Hey all, I'm a newbie to both python and wxWindows.
I read the python tutorial that comes with the distro.
I do have experience in other languages like php,
perl, javascript.
I want to start writing something in python.
I want to make a little GUI alarm clock application
that only needs to a
few specific things.
Things I want it to do:
1. Set the alarm
2. Play wav file when that time is reached
3. Play wav file every x number of minutes/hours until
it is turned off
So a few questions.
1. Would wxPython be good at doing something like
this?
2. Would this be a good project for me to do
considering that I've never used
python or wxWindows, or should I do something else
first to make sure I'm
comfortable with python?
3. Could you point me in the direction of some places
to get started and at suggest
some of the wxWindows classes that I will probably
need to use to build the
alarm clock?