Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Module « turtle » Python 3.13.2

Fonction shapesize - module turtle

Signature de la fonction shapesize

def shapesize(stretch_wid=None, stretch_len=None, outline=None) 

Description

help(turtle.shapesize)

Set/return turtle's stretchfactors/outline. Set resizemode to "user".

Optional arguments:
   stretch_wid : positive number
   stretch_len : positive number
   outline  : positive number

Return or set the pen's attributes x/y-stretchfactors and/or outline.
Set resizemode to "user".
If and only if resizemode is set to "user", the turtle will be displayed
stretched according to its stretchfactors:
stretch_wid is stretchfactor perpendicular to orientation
stretch_len is stretchfactor in direction of turtles orientation.
outline determines the width of the shapes's outline.

Examples:
>>> resizemode("user")
>>> shapesize(5, 5, 12)
>>> shapesize(outline=8)


Vous êtes un professionnel et vous avez besoin d'une formation ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé