1
如何傳遞在GimpFU蟒蛇參數?在您指定的輸入參數 的參數列表中的第一個列表 -如何通過圖像路徑GimpFU
#!/usr/bin/env python
from gimpfu import *
import traceback
import sys
def upload_image(img, layer, dir):
# Actual plug-in code will go here
try:
open('/tmp/upload.txt', 'w+').write('img:\n')
except:
open('/tmp/upload_error.txt', 'w+').write(traceback.format_exc())
open('/tmp/upload_error.txt', 'a').write(sys.exc_info()[0])
return
register(
"Uploader",
"Boo",
"Far",
"foo",
"bar",
"2014",
"<Image>/File/Upload",
"*",
[],
[],
upload_image)
main()
你有什麼想法,如果有可能增加一個下拉菜單? – Lucas
您可以使用PF_OPTIONS,IIRC,它開始爲單選按鈕,但是當你有以上幾個選項,就變成了下拉。 – jsbueno
無 - 不工作和TBH沒有PF_OPTIONS至少不會在文檔中 – Lucas