When using the excellent Flask framework in conjunction with the python multiprocessing module , you may notice that the inbuilt Flask webserver will try to start up twice, leaving you with two webserver processing, each trying to bind to the same port. Needless to say this results in unexpected errors. Apparently this is a problem with … Continue reading Nugget Post: Python Flask framework and multiprocessing
Python system tray notifications in Linux
As a follow up to my previous post, here's how to accomplish system tray notifications in ubuntu linux and family. I must say, compared to windows, this is child's play... under ten lines of code! #!/usr/bin/python import sys import pynotify if __name__ == '__main__': if not pynotify.init ("summary-body"): sys.exit (1) # try the summary-body case … Continue reading Python system tray notifications in Linux
You must be logged in to post a comment.