Author:tianyu263(望月) EMail: [email protected]


"Python 项目 NewEdit 补充插件" TableOfContents

清除所有最近使用过的文件

说明

RemoveAllRecentFiles.pin 源代码

[info] author=TianYu263 date=2004/10/16 version=1.0 description=Remove All Recent Files

RemoveAllRecentFiles.py 源代码

# Programmer: tianyu263 # E-mail: [email protected] # # Copyleft 2004 tianyu263 # # Distributed under the terms of the GPL (GNU Public License) # # NewEdit is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # $Id: RemoveAllRecentFiles.py,v 1.0 2004/10/16 08:05:28 tianyu Studio WorkShop $ doc = 'Plugin: Remove All Recent Files'

from modules import Mixin import wx import os import os.path import sys from modules import makemenu

menulist = [('IDM_FILE_RECENTFILES', #parent menu id

]

Mixin.setMixin('mainframe', 'menulist', menulist)

def del_recent_menu(win):

def OnDelRecentMenus(win, event):

Mixin.setMixin('mainframe', 'OnDelRecentMenus', OnDelRecentMenus)