今現在Python fuの勉強をしていて
Python を使用して GIMP 用のプラグインを作成する
のサイトにあるプラグイン作成のための最低限のコードというものがあったので
写して見たのですが、エラーが起きてしまいました
Python
1>>> #!/usr/bin/python 2>>> 3>>> from gimpfu import * 4>>> 5>>> def plugin_main(timg, tdrawable): 6... print "Hello, world!" 7... 8... register( 9 File "<input>", line 4 10 register( 11 ^ 12SyntaxError: invalid syntax 13>>> "python_fu_resize", 14('python_fu_resize',) 15>>> "Saves the image at a maximum width and height", 16('Saves the image at a maximum width and height',) 17>>> "Saves the image at a maximum width and height", 18('Saves the image at a maximum width and height',) 19>>> "Nathan A. Good", 20('Nathan A. Good',) 21>>> "Nathan A. Good", 22('Nathan A. Good',) 23>>> "2010", 24('2010',) 25>>> "<Image>/Image/Resize to max...", 26('<Image>/Image/Resize to max...',) 27>>> "RGB*, GRAY*", 28('RGB*, GRAY*',) 29>>> [], 30([],) 31>>> [], 32([],) 33>>> plugin_main) 34 File "<input>", line 1 35 plugin_main) 36 ^ 37SyntaxError: invalid syntax 38>>> 39>>> main()
自分でも調べて見たのですが、解決できませんでした。
よろしくお願いします
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。