Rod wrote:
I am curious about the FM_Shellout.py script.Would you mind sharing it?
I didn't know that was possible to call out another font manager through Gimp.
originally i asked to call the gimp gimp theme switcher, then i tought was handy to call a font manager
Differ from the original shell out script because no image has or data has to be send and returned back, so is more simple
i just recover the original from the message of RobA i post below (just in case the copy i included in the zip in the first message went somehow mangled
#############################
#!/usr/bin/env python
from gimpfu import *
import shlex
import subprocess
import os, sys
def plugin_main(image, drawable):
# Command line - Change to match where the theme switcher binary is located
command = "\"C:\\Program Files\\GTK2 Themes\\xxxxxxx.exe\""
args = shlex.split(command)
# Invoke external command
pdb.gimp_progress_set_text ("run XnView...")
pdb.gimp_progress_pulse()
child = subprocess.Popen(args, shell=False)
child.communicate()
register(
"python_fu_runprog",
"Run a program",
"Run a program",
"Rob Antonishen",
"Copyright 2011 Rob Antonishen",
"2011",
"<Image>/Edit/GTK Theme Switcher",
"",
[],
plugin_main,
)
main()
############################
but i cannot even see it in the menu