...truble with (x,y) field..
  • User avatar
    zava
    member
    Posts: 22
    Joined: Tue Mar 01, 2005 9:26 pm
    Location: Muenchen
    Contact:

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

    by zava » Sun Dec 11, 2005 10:05 pm

    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
    :::: zava ::::

    :::: Vjcentral.it ::::

    :::: vimeo ::::
  • User avatar
    yves@garagecube
    master
    Posts: 695
    Joined: Mon Jun 28, 2004 5:50 pm
    Location: Geneva
    Contact:

    by yves@garagecube » Sun Dec 11, 2005 11:26 pm

    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']

  • User avatar
    zava
    member
    Posts: 22
    Joined: Tue Mar 01, 2005 9:26 pm
    Location: Muenchen
    Contact:

    by zava » Wed Dec 14, 2005 12:00 am

    perfect,..,.,


    tx,.,..,

    is online
    :::: zava ::::

    :::: Vjcentral.it ::::

    :::: vimeo ::::

Who is online

Users browsing this forum: No registered users and 5 guests