Ok Funziona perfettamente! :)

OldFile = ""
CurFile = ""

def controlla():
    global OldFile, CurFile

    if OldFile != CurFile:
        time.sleep(1)
        creaSkin()
        controlla()

    else:
        time.sleep(1)
        CurFile = time.ctime(os.path.getmtime(file))
        controlla()


def creaSkin():
      ...
      ...
     OldFile = time.ctime(os.path.getmtime(file))
     CurFile = time.ctime(os.path.getmtime(file))



Grazie per i consigli! :)
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a