how to make the program notify me explicitly

H

hankssong

Hi everyone, I'm writing a program that can retrieve some specified
info from a web page, such as python topics I interested on a bbs.
Now I had written the python script (run in the background), but I
don't know how to make the program notify me explicitly, so I can be
easily informed. I don't know whether python can warn me through
beeping like C program(e.g.:printf("%c", '\07');)
Thanks in advance!
 
B

Ben Finney

hankssong said:
Now I had written the python script (run in the background), but I
don't know how to make the program notify me explicitly, so I can be
easily informed.

What methods are available?

Designing your daemon involves figuring out how it will communicate
with the world. Usually this is through communication mechanisms
provided by the operating system, such as the logging service or email
service.
I don't know whether python can warn me through beeping like C
program(e.g.:printf("%c", '\07');)

This is information that is easily lost; what if no-one is in hearing
range when the beep occurs?
 
M

Miki

Hello hankssong,

You can alert yourself in many methods:
* Open a message dialog - Use Tkinter or other GUI toolkit (such as
wxPython)
* Write yourself an email - Use email + smtplib library modules
* Provide an RSS feed and read it - Use HTTPServer library
* Write yourself an instant message - see msnpy and other libraries

HTH,
Miki
http://pythonwise.blogspot.com/
 
H

hankssong

Ben Finney , Miki ,thanks a lot!
may be message dialog is the best way to let me be informed!
 
H

hankssong

Ben Finney , Miki ,thanks a lot!
may be message dialog is the best way to let me be informed!
 
C

Cameron Laird

EasyGui is possibly the simplest and fastest way to get message
dialogue boxes in Python:

http://www.ferg.org/easygui/

- alex23


No.

That's sure not how I see it, at any rate. While there are many,
MANY things to say in comparing GUIs, popping up a message
dialogue is generally a one-liner with any toolkit, so, if
that's the only requirement, what's really pertinent is "ease
of set-up" or a similar dimension.

And standard Python includes Tkinter, so Tkinter can't be
beat for simplicity and availability, at least as I under-
stand them.
 
A

Ant

I don't know whether python can warn me through beeping like C
This is information that is easily lost; what if no-one is in hearing
range when the beep occurs?

Indeed, *does* it still beep if there is no-one around to hear it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,297
Messages
2,571,529
Members
48,249
Latest member
reactnativeexpert

Latest Threads

Top