MusicBeam music search engine desktop app


SUBMITTED BY: Guest

DATE: Oct. 30, 2012, 12:21 p.m.

FORMAT: Python

SIZE: 721 Bytes

HITS: 1198

  1. #!/usr/bin/env python
  2. import gtk
  3. import webkit
  4. import gobject
  5. gobject.threads_init()
  6. win = gtk.Window()
  7. win.set_default_size(820,460)
  8. win.set_title('MusicBeam')
  9. bro = webkit.WebView()
  10. settings = webkit.WebSettings()
  11. settings.set_property("auto-resize-window", True)
  12. settings.set_property("enable-scripts", True)
  13. settings.set_property("default-encoding", "utf-8")
  14. settings.set_property("enable-plugins", True)
  15. settings.set_property("enable-private-browsing", True)
  16. bro.set_settings(settings)
  17. bro.open("http://musicbeam.it.cx")
  18. win.add(bro)
  19. win.connect('delete-event', gtk.main_quit)
  20. win.show_all()
  21. win.set_resizable(False)
  22. gtk.main()

comments powered by Disqus