-
大小:文件類型: .zip金幣: 2下載: 0 次發(fā)布日期: 2021-06-18
- 語言: 其他
- 標(biāo)簽: 深度學(xué)習(xí)??大數(shù)據(jù)??
資源簡(jiǎn)介

代碼片段和文件信息
“““
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)
?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap04\
?????文件????????6148??2018-03-28?21:39??深度學(xué)習(xí)之美源代碼\chap04\.DS_Store
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap04\4-1\
?????文件?????????330??2017-08-31?22:35??深度學(xué)習(xí)之美源代碼\chap04\4-1\ScoreRank.py
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap04\4-2\
?????文件?????????726??2017-09-03?14:53??深度學(xué)習(xí)之美源代碼\chap04\4-2\class-people.py
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap04\4-3\
?????文件?????????932??2017-09-03?15:42??深度學(xué)習(xí)之美源代碼\chap04\4-3\class-people-student.py
?????文件?????????866??2017-09-06?16:24??深度學(xué)習(xí)之美源代碼\chap04\AutoInsurSweden.txt
?????文件???????51296??2017-09-05?18:28??深度學(xué)習(xí)之美源代碼\chap04\boston-housing.txt
?????文件????????2151??2017-08-31?21:24??深度學(xué)習(xí)之美源代碼\chap04\ClearWindow.py
?????文件????????8053??2017-09-06?06:47??深度學(xué)習(xí)之美源代碼\chap04\scikit-learn-logo-notext.png
?????文件?????????283??2017-08-31?20:50??深度學(xué)習(xí)之美源代碼\chap04\ScoreRank.py
?????文件???????21444??2017-09-07?16:11??深度學(xué)習(xí)之美源代碼\chap04\Small-Contrived-Dataset-For-Simple-Linear-Regression.png
?????文件????????7680??2018-05-24?14:55??深度學(xué)習(xí)之美源代碼\chap04\Thumbs.db
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap05\
?????文件????????6148??2018-03-28?21:42??深度學(xué)習(xí)之美源代碼\chap05\.DS_Store
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap05\5-1\
?????文件?????????324??2017-09-08?15:30??深度學(xué)習(xí)之美源代碼\chap05\5-1\plot.py
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap05\5-10\
?????文件????????2358??2017-09-21?00:14??深度學(xué)習(xí)之美源代碼\chap05\5-10\iris-knn.py
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap05\5-11\
?????文件?????????718??2017-09-21?16:11??深度學(xué)習(xí)之美源代碼\chap05\5-11\scikit-learn-cnn.py
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap05\5-12\
?????文件????????1076??2017-09-21?17:06??深度學(xué)習(xí)之美源代碼\chap05\5-12\scikit-learn-cnn-model.py
?????目錄???????????0??2017-09-23?22:27??深度學(xué)習(xí)之美源代碼\chap05\5-13\
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap05\5-2\
?????文件?????????598??2017-09-08?15:30??深度學(xué)習(xí)之美源代碼\chap05\5-2\mean-var.py
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap05\5-3\
?????文件?????????592??2017-09-08?15:09??深度學(xué)習(xí)之美源代碼\chap05\5-3\covar.py
?????目錄???????????0??2019-01-09?20:21??深度學(xué)習(xí)之美源代碼\chap05\5-4\
............此處省略140個(gè)文件信息
評(píng)論
共有 條評(píng)論