pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Python pastebin - collaborative debugging tool View Help


Posted by toxrn on Fri 27 Nov 03:48
report abuse | download | new post

  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. import os
  4. case = 1
  5. os.system("gconftool --type=bool --set /apps/nautilus/preferences/background_set true")#habilitamos el background de nautilus
  6. while 1:
  7.         if case == 1:
  8.                 os.system("gconftool --type=string --set /apps/nautilus/preferences/background_filename 'file://ruta_a_la_imagen_1'")#usamos gconftool
  9.                 os.system("sleep 4")#esperamos 4 segundos
  10.                 case = 2
  11.         if case == 2:
  12.                 os.system("gconftool --type=string --set /apps/nautilus/preferences/background_filename 'file://ruta_a_la_imagen_2'")
  13.                 os.system("sleep 4")
  14.                 case = 3
  15.         if case == 3:
  16.                 os.system("gconftool --type=string --set /apps/nautilus/preferences/background_filename 'file://ruta_a_la_imagen_3'")
  17.                 os.system("sleep 5")
  18.                 case = 1

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post