起因是这样的,由于业务需求,我需要给labelme生成的标签打上描述,我自己摸索了挺久,起初是想修改label标签生成的模块代码,但是由于查看一份文档,使我找到了实现需求更快捷的方法,文档的在/Users/local/anaconda3/envs/labelme/lib/python3.9/idlelib/README.txt
全英的文档我就只发一下实现扩展模块的方法吧
The list of extensions loaded at startup time is configured by editing
the file config-extensions.def. See below for details.
这句话的意思是在labelme中本来是有一个扩展的模块配置文件的,名字叫config-extensions.def,跟这份README.txt在同一个目录下,然后这个配置文件有以下局限性
An IDLE extension class is instantiated with a single argument,
`editwin', an EditorWindow instance. The extension cannot assume much
about this argument, but it is guaranteed to have the following instance
variables:
text a Text instance (a widget)
io an IOBinding instance (more about this later)
flist the FileList instance (shared by all edit windows)
(There