文件操作 - speech_generator.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib64/python2.7/site-packages/orca/scripts/apps/Banshee/speech_generator.py
编辑文件内容
from orca.speech_generator import SpeechGenerator as BaseSpeechGenerator import pyatspi class SpeechGenerator(BaseSpeechGenerator): def _generateImage(self, obj, **args): """Returns an array of strings (and possibly voice and audio specifications) that represent the image on the the object, if it exists. Otherwise, an empty array is returned. """ result = [] try: image = obj.queryImage() except: pass else: args['role'] = pyatspi.ROLE_IMAGE result.extend(self.generate(obj, **args)) return result
修改文件时间
将文件时间修改为当前时间的前一年
删除文件