2012年6月21日

在ubuntu中cosmos动态壁纸的python实现脚本

摘要: 在ubuntu10.04下cosmos的动态壁纸效果和ms的theme差不多。系统默认的cosmos在/usr/shared/background下的xml配置。直接编辑的话,图片太多的话,记不住也容易写错。为了复习python,于是写了一个脚本。在当前文件夹下,预先存放若干图片,类型是jpg的。 然后执行以下脚本。(请保存为abc.py,然后在shell中python abc.py执行,如果顺利,应该会产生bk.xml)#coding=gbkimport sysimport osimport stringimport shutilimport xml.etree.ElementTree as 阅读全文

posted @ 2012-06-21 10:12 febwave 阅读(398) 评论(0) 推荐(0) 编辑

导航