#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os,sys
from gimpfu import *

def test_types(fspinner,ispinner):
	pdb.gimp_message('Fractional spinner: %3.2f (%s), Integer spinner: %3.2f (%s)' % (fspinner,type(fspinner),ispinner,type(ispinner)))

### Registration
whoiam='\n'+os.path.abspath(sys.argv[0])
author='Ofnuts'
copyrightYear='2017'

register(
	'test-type','Test types 1','Test types 2',
	author,author,copyrightYear,
	'Test types','',
	[
		(PF_SPINNER, 'fspinner', 'Spinner with fractional step:',  0, (0,100, .5)),
		(PF_SPINNER, 'ispinner', 'Spinner with integer step:',  0, (0,100, 1)),
	],
	[],
	test_types,
	menu='<Image>/Test'
)

main()
