Jump to content

Recommended Posts

Posted

Moin,

 

ich habe gerade mal die "get_position()" Funktion in Python (mit IDLE / Python 2.7.3) für das Joystick-Bricklet probiert (FW 2.0.3).

 

Bei "print js.get_position()" bekomme ich als Resultat eine formatierte Ausgabe statt (int, int), z.B.: "Position(x=-60, y=42)".

 

Ist das etwa mit dem Satz "Das zurückgegebene namedtuple enthält die Variablen x und y." so gemeint?

Muss ich x und y aus dem String extrahieren?

 

Ratlos,

 

Malik

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...