我正在尝试编写python-fu脚本,以仅将警告打印到错误控制台。我在schema-fu中也能正常工作。
但是在python-fu菜单上没有显示。
我在gimp中为插件配置的目录中有脚本: / Users / myusername / library / Application Support / GIMP / 2.10 / plugins-p
文件名为: python-fu-hello-warning.py
在MacOS Catalina版本10.15.3中运行它。 GIMP的版本是2.10.14。
这是代码:
#!/usr/bin/env python
# Hello Warning
from gimpfu import *
def hello_warning():
pdb.gimp_message("hello warning")
register(
"python_fu_hello_warning","Hello warning","Hello warning TO ERROR CONSOLE","Walter Moore","2020","Hello warning (Py)...","",[],hello_warning,menu="<Image>/File/HelloWarning"
)
main()
我在做什么错了?