Код: Выделить всё
#!/usr/bin/python
from gimpfu import *
def msg(txt):
pdb.gimp_message(txt)
msg('Running knitpc')
def knitpc(timg, tdrawable):
pdb.gimp_message('Hello ')
register(
'knit_pc_plugin',
'Test plugin',
'Test plugin',
'Me',
'Me',
'2024',
'/Image/Knit...',
'*',
[],
[],
knitpc
)
msg('Registered function')
main()
msg('Ran main')
Код: Выделить всё
Querying plug-in: 'C:\Users\alpac\AppData\Roaming\GIMP\2.10\plug-ins\knit_pc_plugin.py'
gimp-2.10.exe: LibGimpBase-WARNING: gimp-2.10.exe: gimp_wire_read(): error
Я также пробовал удалить параметры timg, tdrawable из Knitpc, но это не дало никаких результатов.
Подробнее здесь: https://stackoverflow.com/questions/792 ... read-error
Мобильная версия