Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 13th, 2012, 12:53 PM
Harris03 Harris03 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 13 Harris03 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 41 m 27 sec
Reputation Power: 0
Question 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...

Reply With Quote
  #2  
Old December 13th, 2012, 02:17 PM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,390 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 15 h 35 sec
Reputation Power: 383
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!

Reply With Quote
  #3  
Old December 14th, 2012, 02:56 AM
Harris03 Harris03 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 13 Harris03 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #4  
Old December 14th, 2012, 07:47 AM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,390 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 15 h 35 sec
Reputation Power: 383
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()

Reply With Quote
  #5  
Old December 14th, 2012, 11:56 AM
Harris03 Harris03 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 13 Harris03 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #6  
Old December 14th, 2012, 02:17 PM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,390 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 15 h 35 sec
Reputation Power: 383
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Reminder Tkinter

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap