tkintertools.standard.shapes¶
字数 416 个 代码 157 行 阅读时间 3 分钟 访问量
All standard Shape
classes
🟢HalfRoundedRectangle
¶
class
public
| Shape
Create a half rounded rectangle for a widget
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of componentradius
: radius of the filletignore
: edges to ignorename
: name of componentanimation
: Wether use animation to change colorstyles
: style dict of componentkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
🟡display
¶
method
public
🟢Line
¶
class
public
| Shape
Create a line for a widget
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of componentpoints
: key points of linename
: name of componentanimation
: Wether use animation to change colorstyles
: style dict of componentkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
🟡display
¶
method
public
🟢Oval
¶
class
public
| Shape
🟡coords
¶
method
public
🟡detect
¶
method
public
🟡display
¶
method
public
🟢Parallelogram
¶
class
public
| Shape
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of componenttheta
: number of radians that the parallelogram is inclined toname
: name of componentanimation
: Wether use animation to change colorstyles
: style dict of componentkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
🟡display
¶
method
public
🟢Rectangle
¶
class
public
| Shape
🟡coords
¶
method
public
🟡display
¶
method
public
🟢RegularPolygon
¶
class
public
| Shape
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of componentside
: number of sides of a regular polygonangle
: number of radians of a regular polygon rotated clockwisename
: name of componentanimation
: Wether use animation to change colorstyles
: style dict of componentkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
🟡display
¶
method
public
🟢RoundedRectangle
¶
class
public
| Shape
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of componentradius
: radius of the filletname
: name of componentanimation
: Wether use animation to change colorstyles
: style dict of componentkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
🟡display
¶
method
public
🟢SemicircularRectangle
¶
class
public
| Shape
🟡coords
¶
method
public
🟡detect
¶
method
public
🟡display
¶
method
public
🟢SharpRectangle
¶
class
public
| Shape
Create a sharp rectangle for a widget
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of componenttheta
: number of radians of sharp cornersratio
: height ratio of the left and right sharp cornersname
: name of componentanimation
: Wether use animation to change colorstyles
: style dict of componentkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
🟡display
¶
method
public