The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Python Programming
|
Reminder Tkinter
Discuss Reminder Tkinter in the Python Programming forum on Dev Shed. Reminder Tkinter Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

December 13th, 2012, 12:53 PM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 13
Time spent in forums: 2 h 41 m 27 sec
Reputation Power: 0
|
|
Reminder Tkinter
Hi everyone,
I want to make a reminder using tkinter.How I can do this?
Is there a special module or some tools in python(or in tkinter) that can help me..?
For example:
I want in specified time (e.x. 14:00 or 18:00 etc) to create a messagebox,that it will say "It's time for walk" and if it is possible to do a short sound (or a music track).
Before, coding in Visual Basic as remember I used something like "timer"..But I can't remember more about this.. :P
Thanks in advance...
|

December 13th, 2012, 02:17 PM
|
 |
Contributing User
|
|
|
|
|
Is this a programming exercise or need of an application?
What operating system do you use?
Wouldn't you be better off using desktop email/calendar program or installing a reminder program of which there must be many free available versions?
If this is a programming exercise then is the question answered by
import time
time.sleep(seconds)
remind() # ?
Shouldn't you instead use your operating system scheduler to run programs at specified time?
Do you not know how to play sound on your system?
Is this a python problem "make tkinter pop up a window"?
Why use python at all? Your task might be better as a shell script.
__________________
[code] Code tags[/code] are essential for python code!
|

December 14th, 2012, 02:56 AM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 13
Time spent in forums: 2 h 41 m 27 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by b49P23TIvg What operating system do you use?
Wouldn't you be better off using desktop email/calendar program or installing a reminder program of which there must be many free available versions?
If this is a programming exercise then is the question answered by
import time
time.sleep(seconds)
remind() # ?
Shouldn't you instead use your operating system scheduler to run programs at specified time?
Do you not know how to play sound on your system?
Is this a python problem "make tkinter pop up a window"?
Why use python at all? Your task might be better as a shell script. |
I use Windows 7 32bit.
As you said it is a programming exercise and I have to make a reminder using tkinter.
To be more specified :
My main project is to help people who suffer from alzheimer disease.
So,one of my targets is to make a reminder for helping them do the necessary activities/things.
For example,
At 14:00 o'clock..Create a messagebox (and if it possible play a sound)..saying "It's time to eat".
Then at 18:00 o'clock..Create a messagebox (and if it possible play a sound)..saying "It's time for a walk".
etc.
So, my title is right :P
Can you help me..?
Thanks.
|

December 14th, 2012, 07:47 AM
|
 |
Contributing User
|
|
|
|
OK. Some elements of the project follow. I still recommend you use your system task scheduler. You'll need to write code to set up the messages, sounds, and times.
Code:
# >>> help(winsound.PlaySound) # self help
import sys
try:
import winsound
except:
pass
try:
import tkinter
except:
import Tkinter as tkinter
sound = r'C:\WINDOWS\Media\Chimes.wav'
message = 'Breakfast'
# read sound from sys.argv
# likewise obtain message from sys.argv
try:
winsound.PlaySound(r'C:\WINDOWS\Media\Chimes.wav',0)
except:
pass
root = tkinter.Tk()
root.title('reminder')
root.pack_propagate(0) # take up more screen space
tkinter.Button(root,text=message,font=('Times', '24',),command=root.destroy,).pack()
root.mainloop()
|

December 14th, 2012, 11:56 AM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 13
Time spent in forums: 2 h 41 m 27 sec
Reputation Power: 0
|
|
|
First of all, Thanks for your reply.
What is "system task scheduler"..?
Also,Can I show the messages using a "messagebox"..?
What about using the time of the computer's clock (system time) for determinate the time that I want to show up the messages..?
Is it possible..?
For example compare the time I want to show up the messages with the system time...Like:
if 10:00(the system's time) then
create the appropriate messagebox
Thanks.
|

December 14th, 2012, 02:17 PM
|
 |
Contributing User
|
|
|
|
task scheduler
Sure, use a "messagebox". It's your project.
Use the time module to get the system time.
I thought the button useful to indicate message received.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|