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 :

Module « turtle » Python 3.11.3

Classe « TPen »

Informations générales

Héritage

builtins.object
    TPen

Définition

class TPen(builtins.object):

help(TPen)

Drawing part of the RawTurtle.
    Implements drawing properties.
    

Constructeur(s)

Signature du constructeur Description
__init__(self, resizemode='noresize')

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
color(self, *args) Return or set the pencolor and fillcolor. [extrait de color.__doc__]
down(self) Pull the pen down -- drawing when moving. [extrait de pendown.__doc__]
fillcolor(self, *args) Return or set the fillcolor. [extrait de fillcolor.__doc__]
hideturtle(self) Makes the turtle invisible. [extrait de hideturtle.__doc__]
ht(self) Makes the turtle invisible. [extrait de hideturtle.__doc__]
isdown(self) Return True if pen is down, False if it's up. [extrait de isdown.__doc__]
isvisible(self) Return True if the Turtle is shown, False if it's hidden. [extrait de isvisible.__doc__]
pd(self) Pull the pen down -- drawing when moving. [extrait de pendown.__doc__]
pen(self, pen=None, **pendict) Return or set the pen's attributes. [extrait de pen.__doc__]
pencolor(self, *args) Return or set the pencolor. [extrait de pencolor.__doc__]
pendown(self) Pull the pen down -- drawing when moving. [extrait de pendown.__doc__]
pensize(self, width=None) Set or return the line thickness. [extrait de pensize.__doc__]
penup(self) Pull the pen up -- no drawing when moving. [extrait de penup.__doc__]
pu(self) Pull the pen up -- no drawing when moving. [extrait de penup.__doc__]
resizemode(self, rmode=None) Set resizemode to one of the values: "auto", "user", "noresize". [extrait de resizemode.__doc__]
showturtle(self) Makes the turtle visible. [extrait de showturtle.__doc__]
speed(self, speed=None) Return or set the turtle's speed. [extrait de speed.__doc__]
st(self) Makes the turtle visible. [extrait de showturtle.__doc__]
up(self) Pull the pen up -- no drawing when moving. [extrait de penup.__doc__]
width(self, width=None) Set or return the line thickness. [extrait de pensize.__doc__]

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __getstate__, __hash__, __init_subclass__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__