Python - popup message drawn on the screen

I'm writing a program and I need to inform the user about some changes with a popup message, but not a popup window. Something like the rectangle informing about new message in Kadu - no window, just a bitmap drawn directly on the screen for a few seconds.

I wonder if there is a simple way to do that with win32 package or Tkinter, and handle the event when the user clicks on the rectangle.

Actually the message would be constant, so the bitmap might be loaded from a file, but I still don't know how to start.

Any ideas, please?

Regards, mopsiok


I am using wxPython and looking for a way to have a popup message. Now I am using a popupmenu in which I append each item of the menu with one line of the message.

Actually I found the answer to my question. That's my code using Tkinter, hope it will help you.

from Tkinter import Tk, Label
from Image import open as iopen #doesn't needed if you won't display image
from ImageTk import PhotoImage #as before

root = Tk()
img = PhotoImage(iopen("some_path")) #load an image
label = Label(root, image=img)
label.image = img
label.bind("<Button-1>", Click)
root.geometry('-0-40') #place in the right-bottom corner
root.wm_attributes("-topmost", 1) #popup

def Click(event): #close the window if image clicked
    print 'window closed'

Need Your Help

How would you describe a Matrix in AS3?

actionscript-3 matrix

Don't get me wrong, I know how to use a Matrix in AS3, for example at the createGradientBox() I have these Parameters: - How to use Textboxes and ComboBoxes from Treeview combobox textbox treeview

I am looking for some sample code that shows how to use Textboxes and ComboBoxes from a Treeview control.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.