文件操作 - orca_state.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib64/python2.7/site-packages/orca/orca_state.py
编辑文件内容
# Orca # # Copyright 2005-2009 Sun Microsystems Inc. # Copyright 2010 Joanmarie Diggs, Mesar Hameed # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the # Free Software Foundation, Inc., Franklin Street, Fifth Floor, # Boston MA 02110-1301 USA. """Holds state that is shared among many modules. """ __id__ = "$Id$" __version__ = "$Revision$" __date__ = "$Date$" __copyright__ = "Copyright (c) 2005-2009 Sun Microsystems Inc." \ "Copyright (c) 2010 Joanmarie Diggs, Mesar Hameed." __license__ = "LGPL" # NOTE: resist the temptation to do any imports here. They can # easily cause circular imports. # # The Accessible that has visual focus. # locusOfFocus = None # The currently active window. # activeWindow = None # The currently active script. # activeScript = None # The object event currently being processed. # currentObjectEvent = None # The "click" count. Used to determine if the user has double or triple # "clicked" a key. # clickCount = 0 # Used to capture keys to redefine key bindings by the user. # capturingKeys = False lastCapturedKey = None # The last non-modifier key event received. # lastNonModifierKeyEvent = None # The InputEvent instance representing the last input event. This is # set each time a mouse, keyboard or braille event is received. # lastInputEvent = None # Used to determine if the user wishes Orca to pass the next command # along to the current application rather than consuming it. # bypassNextCommand = False # The last timestamp from a device event. Used to set focus for the Orca # configuration GUI. # lastInputEventTimestamp = 0 # Records the last time a key was echoed. # lastKeyEchoTime = None # The time that the last "No focus" event occured. # noFocusTimestamp = 0.0 # The last word spoken. # lastWord = "" # The last word examined for the misspelled indicator. # lastWordCheckedForSpelling = "" # The last searchQuery # searchQuery = None # Assists with learn mode (what you enter when you press Insert+F1 # and exit when you press escape. # learnModeEnabled = False # Assists with list shortcuts mode (what you enter when you press # Insert + H (double click) and exit when you press escape. # listShortcutsModeEnabled = False # Assists in list shortcuts mode listOfShortcuts = [] typeOfShortcuts = '' ptrToShortcut = -1 # Whether we should use the pronunciation dictionary to help speak # certain words. This will be True everywhere except when focus is # in the Pronunciation Dictionary in the Orca Preferences dialog. # usePronunciationDictionary = True # Handle to the Orca Preferences Glade GUI object. # orcaOS = None # Handle to the Orca application specific preferences Glade GUI object. # appOS = None # Handle to the Glade warning dialog object that is displayed, if the # user has attempted to start a second instance of a preferences dialog. # orcaWD = None # Handle to the Orca Preferences Glade file. # prefsGladeFile = None
修改文件时间
将文件时间修改为当前时间的前一年
删除文件