【问题标题】:Gimp python-fu how to change menu text (label)Gimp python-fu 如何更改菜单文本(标签)
【发布时间】:2020-07-29 04:48:28
【问题描述】:

我得到了这个代码:

from gimpfu import *
def goOn(url) :
    # change text
    return
register("won","auto go","include image","D.X","D.X","2020","Launch server...",
    "",[(PF_STRING, "string", "URL", 'http://localhost:3000')],
    [],goOn,menu="<Image>/Edit")
main()

这将创建一个菜单项,当您单击它时可以启动 goOn 功能, 点击后如何更改文本“Launch server...”?

【问题讨论】:

    标签: python plugins gimp python-fu


    【解决方案1】:

    您不能动态地将菜单的文本更改为其他内容。更改它的唯一方法需要 1) 更改代码和 2) 重新启动 Gimp。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多