I make a small program that works like a demon. But I can not find how to make an alert in Windwos 8.1.

As an option, I looked at it (pywin32), but this option is not very suitable for me. Or native will not work? Have to use:

  • wxPython
  • PyGTK
  • PyQT

For my program it is too fat :)

    1 answer 1

    On the contrary, using any of the libraries listed above, you will make your life easier. For example, an example for wx:

    import wx, sys import wx.adv import time app = wx.App() class TestTaskBarIcon(wx.adv.TaskBarIcon): def __init__(self): wx.adv.TaskBarIcon.__init__(self) self.Bind(wx.adv.EVT_TASKBAR_LEFT_UP, lambda e: (self.RemoveIcon(),sys.exit())) i = 0 while True: wx.adv.NotificationMessage("Yo?", "Alarm " + str(i)).Show() time.sleep(10 * 60) i += 10 icon = TestTaskBarIcon() app.MainLoop() 

    Every ten minutes in the tray climbs a message. You can follow the path of creating a small window on top of all the others. wxWidgets for Python 3 is called ProjectPhoenix .

    • Thank you, yes, I already understood that. Why, now I think what it will be easier to do, I look at wx and qt, the examples from wx seem more understandable. Here I also think to remake the application so that it spins in the tray, with a small menu. - Vladimir VSeos
    • @ VladimirSeos-Lab, not to say that the topic of pop-up messages is jaded, but for wxWidgets (Py2) I even came across small libraries specifically for this. - m9_psy
    • In general, thanks! I will sort this out. - Vladimir VSeos