473,785 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.:pr intf("%c", '\07');)
Thanks in advance!

May 18 '06 #1
7 1358
"hankssong" <so**********@g mail.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.:pr intf("%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************ **********@j33g 2000cwa.googleg roups.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.:pr intf("%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
2450
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 if the main thread (the only non-daemon thread) terminates. I do not join to these threads, but just run off the end of the main module to terminate the program. I'm using Python 2.3.4. I occasionally get the following error: Traceback (most...
1
2828
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, so maybe there is something else of wrong. Using the example 2 in the libpq chapter on "Postgres Programmer's Guide" as template i write :
1
1526
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 sample programs. When I copied this program from the manual at the IBM website, I found that the clobSearchStringUse() method didn't behave as the comments described. Also, the comments were inconsistent. To be specific, one comment says that the...
1
19121
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, usually about 10 seconds. I tried creating a thread in seperate class to run that process instead on running it from main thread. This successfully keeps my form from becoming distorted. However, I do not have any control over when that thread...
3
2139
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 seem to be totally case insensitive: free4testing=# select version(); version
5
3428
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 an hour), and almost never update each others data (less than once a day). The TCL-based replication project for multi-master is
12
1541
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 dict are mutable), this is what makes it difficult. Because the values are mutable I don't think you can tell the difference between a read and a write without making some sort of wrapper around them. Still, I'd love to hear how you guys would do...
42
3169
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 array (size is 10*10), setting all the values inside the 10*10 matrix to zero. My C-function looks like this:
1
15891
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... Can you tell me how? I want to use it to notify users of an event while my program is running in the background (possibly as a service) and it would be really nice if I can add clickable links in that blaloon tip to open a window for details....
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8974
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.