Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gimp UI progress bar "cancel"
#3
(05-06-2024, 02:45 PM)Ofnuts Wrote: What registration type are you using, the old (full menu path in 7th arg) or the new (separate named menu argument)?

Otherwise you can try a blunt pdb.gimp_progress_end()

Well the progress_end() worked a treat!  Thanks for that!

But if there are any downsides of using progress_end(), and there is a better way: here is the registration of one of the plugins:

Code:
register(
   "python-fu_prism_serverStart",                              #   UNIQUE NAME
   "Enables socket communications\nbetween Prism and Gimp",    #   TOOLTIP
   helpDoc,                                                    #   DESCRIPTION
   attribution,                                                #   AUTHORS NAME
   copyright,                                                  #   COPYRIGHT INFO
   "2023",                                                     #   VERSION or DATA
   "1 - Start Prism Server",                                   #   NAME DISPLAYED IN GUI MENU
   "",                                                         #   TYPE OF DRAWABLE: '' = can be none, * = any drawable, RGB, RGB, RGB* etc
   [],                                                         #   ADDITIONAL ARGS
   [],                                                         #   RETURN TYPES
   startServer,                                                #   FUNCTION CALLED WHEN ACTIVATED
   "<Image>/Prism",                                            #   WHERE IN GIMP UI
)

main()

The comments are for my benefit.  And the description, attribution, and copyright are vars defined further up.
Reply


Messages In This Thread
Gimp UI progress bar "cancel" - by JBreckeen - 05-06-2024, 02:23 PM
RE: Gimp UI progress bar "cancel" - by Ofnuts - 05-06-2024, 02:45 PM
RE: Gimp UI progress bar "cancel" - by JBreckeen - 05-06-2024, 05:22 PM

Forum Jump: