Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python-Fu console crash
#5
Photo 
(08-06-2024, 07:49 AM)Ofnuts Wrote: Can you zip one of your failing Python script and attach the ZIP here? Can you show what the empty python-fu console displays?

Sample codei've tried. Attached screens with empty and entered script console and error output (transaltion in the first post)

Code:
from gimpfu import *

def hello_warning(image, drawable):
    pdb.gimp_message("Hello world!")
    
register(
    "python-fu-hello_warning",
    "SHORT DESCRIPTION",
    "LONG DESCRIPTION",
    "rg", "rg", "2024",
    "Hello_warning",
    "", # type of image it works on (*, RGB, RGB*, RGBA, GRAY etc...)
    [
        # basic parameters are:  (UI_ELEMENT, "variable", "name", Default)
        (PF_IMAGE, "image", "takes current image", None),
        (PF_DRAWABLE, "drawable", "input layer", None)
    ],
    [],
    hello_warning, menu="<Image>/File")  # second item in menu location
    
main()


Attached Files Thumbnail(s)
           
Reply


Messages In This Thread
Python-Fu console crash - by robgos - 08-05-2024, 02:31 PM
RE: Python-Fu console crash - by Ofnuts - 08-05-2024, 05:05 PM
RE: Python-Fu console crash - by robgos - 08-06-2024, 07:22 AM
RE: Python-Fu console crash - by Ofnuts - 08-06-2024, 07:49 AM
RE: Python-Fu console crash - by robgos - 08-06-2024, 10:07 AM
RE: Python-Fu console crash - by Ofnuts - 08-06-2024, 11:28 AM
RE: Python-Fu console crash - by robgos - 08-06-2024, 11:55 AM
RE: Python-Fu console crash - by Ofnuts - 08-06-2024, 07:37 PM

Forum Jump: