kopia lustrzana https://github.com/dnet/pySSTV
added parameters to GIMP plugin
rodzic
15f2e7ae8f
commit
64f95592b7
|
@ -4,13 +4,16 @@
|
|||
# copy to ~/.gimp-2.8/plug-ins/
|
||||
# dependencies: GIMP 2.8, python-imaging-tk
|
||||
|
||||
from gimpfu import register, main, pdb
|
||||
from gimpfu import register, main, pdb, PF_BOOL, PF_STRING, PF_RADIO
|
||||
from tempfile import mkstemp
|
||||
from PIL import Image, ImageTk
|
||||
from Tkinter import Tk, Label
|
||||
from pysstv import __main__ as pysstv_main
|
||||
import os
|
||||
|
||||
def transmit_current_image(image, drawable):
|
||||
MODULE_MAP = pysstv_main.build_module_map()
|
||||
|
||||
def transmit_current_image(image, drawable, mode, vox, fskid):
|
||||
handle, png_fn = mkstemp(suffix='.png', prefix='pysstv-gimp-')
|
||||
os.fdopen(handle).close()
|
||||
try:
|
||||
|
@ -34,7 +37,12 @@ register(
|
|||
"November 2013",
|
||||
"<Image>/PySSTV/Transmit...",
|
||||
"*",
|
||||
[],
|
||||
[
|
||||
(PF_RADIO, "mode", "SSTV mode", "MartinM1",
|
||||
tuple((n, n) for n in sorted(MODULE_MAP.iterkeys()))),
|
||||
(PF_BOOL, "vox", "Include VOX tones", True),
|
||||
(PF_STRING, "fskid", "FSK ID", ""),
|
||||
],
|
||||
[],
|
||||
transmit_current_image
|
||||
)
|
||||
|
|
Ładowanie…
Reference in New Issue