Page 1 of 1

...truble with (x,y) field..

Posted: Sun Dec 11, 2005 10:05 pm
by zava
hi

i have a small truble with (x,y) field on module.-..

i can capture the x value from code.,,.

if msg='pippo':
v = param['x']

and the debug say x is wrong,.,.,.

i print the output and its it is a dictionary....
printed 2 times,.,.,.

why,.,.,.

its happen just with (x,y) area control

Posted: Sun Dec 11, 2005 11:26 pm
by yves@garagecube
x and y do not arrive necessary in the same message. So you have to verify that the x and y keys are present before reading them:

For instance:

Code: Select all

if 'x' in param:            # Does 'x' exist in the dictionary ?
   print param['x']
elif 'y' in param:          # Does 'y' exist in the dictionary ?
   print param['y']


Posted: Wed Dec 14, 2005 12:00 am
by zava
perfect,..,.,


tx,.,..,

is online