资源简介

代码片段和文件信息
“““
Clear Window Extension
Version: 0.2
Author: Roger D. Serwy
roger.serwy@gmail.com
Date: 2009-06-14
It provides “Clear Shell Window“ under “Options“
with ability to undo.
Add these lines to config-extensions.def
[ClearWindow]
enable=1
enable_editor=0
enable_shell=1
[ClearWindow_cfgBindings]
clear-window=
“““
class ClearWindow:
menudefs = [
(‘options‘ [None
(‘Clear Shell Window‘ ‘<>‘)
])]
def __init__(self editwin):
self.editwin = editwin
self.text = self.editwin.text
self.text.bind(“<>“ self.clear_window2)
self.text.bind(“<>“ self.undo_event) # add=“+“ doesn‘t work
def undo_event(self event):
text = self.text
text.mark_set(“iomark2“ “iomark“)
text.mark_set(“insert2“ “insert“)
self.editwin.undo.undo_event(event)
# fix iomark and insert
text.mark_set(“iomark“ “iomark2“)
text.mark_set(“insert“ “insert2“)
text.mark_unset(“iomark2“)
text.mark_unset(“insert2“)
def clear_window2(self event): # Alternative method
# work around the ModifiedUndoDelegator
text = self.text
text.undo_block_start()
text.mark_set(“iomark2“ “iomark“)
text.mark_set(“iomark“ 1.0)
text.delete(1.0 “iomark2 linestart“)
text.mark_set(“iomark“ “iomark2“)
text.mark_unset(“iomark2“)
text.undo_block_stop()
if self.text.compare(‘insert‘ ‘<‘ ‘iomark‘):
self.text.mark_set(‘insert‘ ‘end-1c‘)
self.editwin.set_line_and_column()
def clear_window(self event):
# remove undo delegator
undo = self.editwin.undo
self.editwin.per.removefilter(undo)
# clear the window but preserve current command
self.text.delete(1.0 “iomark linestart“)
if self.text.compare(‘insert‘ ‘<‘ ‘iomark‘):
self.text.mark_set(‘insert‘ ‘end-1c‘)
self.editwin.set_line_and_column()
# restore undo delegator
self.editwin.per.insertfilter(undo)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-01-09 20:21 深度学习之美源代码\chap04\
文件 6148 2018-03-28 21:39 深度学习之美源代码\chap04\.DS_Store
目录 0 2019-01-09 20:21 深度学习之美源代码\chap04\4-1\
文件 330 2017-08-31 22:35 深度学习之美源代码\chap04\4-1\ScoreRank.py
目录 0 2019-01-09 20:21 深度学习之美源代码\chap04\4-2\
文件 726 2017-09-03 14:53 深度学习之美源代码\chap04\4-2\class-people.py
目录 0 2019-01-09 20:21 深度学习之美源代码\chap04\4-3\
文件 932 2017-09-03 15:42 深度学习之美源代码\chap04\4-3\class-people-student.py
文件 866 2017-09-06 16:24 深度学习之美源代码\chap04\AutoInsurSweden.txt
文件 51296 2017-09-05 18:28 深度学习之美源代码\chap04\boston-housing.txt
文件 2151 2017-08-31 21:24 深度学习之美源代码\chap04\ClearWindow.py
文件 8053 2017-09-06 06:47 深度学习之美源代码\chap04\scikit-learn-logo-notext.png
文件 283 2017-08-31 20:50 深度学习之美源代码\chap04\ScoreRank.py
文件 21444 2017-09-07 16:11 深度学习之美源代码\chap04\Small-Contrived-Dataset-For-Simple-Linear-Regression.png
文件 7680 2018-05-24 14:55 深度学习之美源代码\chap04\Thumbs.db
目录 0 2019-01-09 20:21 深度学习之美源代码\chap05\
文件 6148 2018-03-28 21:42 深度学习之美源代码\chap05\.DS_Store
目录 0 2019-01-09 20:21 深度学习之美源代码\chap05\5-1\
文件 324 2017-09-08 15:30 深度学习之美源代码\chap05\5-1\plot.py
目录 0 2019-01-09 20:21 深度学习之美源代码\chap05\5-10\
文件 2358 2017-09-21 00:14 深度学习之美源代码\chap05\5-10\iris-knn.py
目录 0 2019-01-09 20:21 深度学习之美源代码\chap05\5-11\
文件 718 2017-09-21 16:11 深度学习之美源代码\chap05\5-11\scikit-learn-cnn.py
目录 0 2019-01-09 20:21 深度学习之美源代码\chap05\5-12\
文件 1076 2017-09-21 17:06 深度学习之美源代码\chap05\5-12\scikit-learn-cnn-model.py
目录 0 2017-09-23 22:27 深度学习之美源代码\chap05\5-13\
目录 0 2019-01-09 20:21 深度学习之美源代码\chap05\5-2\
文件 598 2017-09-08 15:30 深度学习之美源代码\chap05\5-2\mean-var.py
目录 0 2019-01-09 20:21 深度学习之美源代码\chap05\5-3\
文件 592 2017-09-08 15:09 深度学习之美源代码\chap05\5-3\covar.py
目录 0 2019-01-09 20:21 深度学习之美源代码\chap05\5-4\
............此处省略140个文件信息
相关资源
-
大数据。基于Hba
se的网站日志分析系 - 大数据中的云网络Cloud Networking for B
- 《Hadoop大数据技术》课程设计报告.
- 广联达6.0写锁包,2020年11月最新
- 机器学习个人笔记完整版v5.2-A4打印版
- 商业银行基于大数据的精准营销解决
- 深度学习卷积神经网络可检测和分类
- 梭子鱼负载均衡方案从容应对网络视
- 大数据在医疗行业的应用
- HP为八大行业容灾提供强大数据管理
- echarts大数据可视化新能源车联网综合
- GAN对抗式生成网络的应用:从图片上
- [en]深度学习[Deep Learning: Adaptive Compu
- 京东金融大数据分析平台总体架构
- 基于Greenplum Hadoop- 分布式平台的大数
- 深入理解大数据 大数据处理与编程实
- 用户网络行为画像 大数据中的用户网
- 企业级大数据平台构建:架构与实现
- 李宏毅-机器学习(视频2017完整)
- 吴恩达深度学习第一课第四周作业及
- 机器学习深度学习 PPT
- 麻省理工:深度学习介绍PPT-1
- Wikipedia机器学习迷你电子书之四《D
- 大数据的统计学基础
- 深度学习在遥感中的应用综述
- 政府大数据公司设立意义及运营策略
- 深度学习数据集标注
- 国科大数据挖掘大作业2018交通拥堵预
- 赤裸裸的统计学 PDF
- 深度学习算法实践源码-吴岸城
评论
共有 条评论