Skip to content

Instantly share code, notes, and snippets.

@laiso
Created June 24, 2010 06:34
Show Gist options
  • Save laiso/451071 to your computer and use it in GitHub Desktop.
Save laiso/451071 to your computer and use it in GitHub Desktop.
popup for knotify4/kdialog
#!/usr/bin/env python
# coding: utf-8
import os
from multiprocessing import Process
def main(args):
p = Process(\
target=lambda text_: os.execlp("kdialog", "kdialog", "--title", "Twitter User Stream", "--passivepopup", text_, "5"),\
args=(args, ))
if p:
p.start()
p.join()
if __name__ == '__main__':
TEXT = u"はろーーーーーーーーーーーーーーーー"
main(TEXT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment