473,325 Members | 2,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

how to make the program notify me explicitly

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!

May 18 '06 #1
7 1343
"hankssong" <so**********@gmail.com> writes:
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?

--
\ "Whatever you do will be insignificant, but it is very |
`\ important that you do it." -- Mahatma Gandhi |
_o__) |
Ben Finney

May 18 '06 #2
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/

May 18 '06 #3
Ben Finney , Miki ,thanks a lot!
may be message dialog is the best way to let me be informed!

May 18 '06 #4
Ben Finney , Miki ,thanks a lot!
may be message dialog is the best way to let me be informed!

May 18 '06 #5
hankssong wrote:
may be message dialog is the best way to let me be informed!


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

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

- alex23

May 18 '06 #6
In article <11**********************@j33g2000cwa.googlegroups .com>,
alex23 <wu*****@gmail.com> wrote:
hankssong wrote:
may be message dialog is the best way to let me be informed!


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.
May 18 '06 #7
Ant
> > 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?


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

May 18 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alec Wysoker | last post by:
I have several programs that have two or more threads. The threads that are not the main thread are daemon threads, i.e. the fact that they are running should not stop the program from terminating...
1
by: Alessandro GARDICH | last post by:
Hi to all I have problem with NOTIFY/LISTEN ... I'm writing a C++ application with libpqxx, I thought was a problem of the lib but I try also with a C program using libpq with the same result,...
1
by: Rhino | last post by:
What is the correct way to notify the tech writers that one of the sample programs has errors in it? Unless I am mistaken, there is an error in the DtLob.java program in the V8.1 Java/JDBC...
1
by: david | last post by:
I have a simple csharp form with a 'Go' button on it. This event launches a external exe successfully but the form color becomes white and does not repaint while that external program runs,...
3
by: Frank van Vugt | last post by:
L.S. Either the docs or I are missing something.... While using libpq I noticed that listen/notify calls were being converted to lowercase. A further look showed that the listen/notify calls...
5
by: Ted Shab | last post by:
Hi, I'm trying to come up with a relatively simple multi-master replication solution. This is for multiple databases that need to be discreet, and change relatively infrequently (10-30 updates...
12
by: sandravandale | last post by:
It's important that I can read the contents of the dict without flagging it as modified, but I want it to set the flag the moment I add a new element or alter an existing one (the values in the...
42
by: Martin Jørgensen | last post by:
Hi, I'm trying to move a matlab program into c language. For those who knows matlab, this is the line I want to program in c: hx(1:nx,1:ny) = 0; % nx=10, ny=10 It works on a 2-dimensional...
1
by: MrNobody | last post by:
You know those little balloon tips that come out of your task bar- like for example when Windows warns you about window supdates being available? I'd like to create some of those from my C# app......
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.