maliang.standard.shapes¶
字数 515 个 代码 159 行 阅读时间 4 分钟 访问量
源代码:maliang/standard/shapes.py
All standard Shape
classes
🟢Arc
¶
class
public
| Shape
🟡coords
¶
method
public
Element
🟡display
¶
method
public
Element
on a Canvas
🟢HalfRoundedRectangle
¶
class
public
| Shape
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of elementradius
: radius of the filletignore
: edges to ignorename
: name of elementgradient_animation
: Wether use animation to change colorkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
Element
🟡display
¶
method
public
Element
on a Canvas
🟢Line
¶
class
public
| Shape
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of elementpoints
: key points of linename
: name of elementgradient_animation
: Wether use animation to change colorkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
Element
🟡display
¶
method
public
Element
on a Canvas
🟢Oval
¶
class
public
| Shape
🟡coords
¶
method
public
Element
🟡detect
¶
method
public
Element
🟡display
¶
method
public
Element
on a Canvas
🟢Parallelogram
¶
class
public
| Shape
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of elementtheta
: number of radians that the parallelogram is inclined toname
: name of elementgradient_animation
: Wether use animation to change colorkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
Element
🟡display
¶
method
public
Element
on a Canvas
🟢Rectangle
¶
class
public
| Shape
🟡coords
¶
method
public
Element
🟡display
¶
method
public
Element
on a Canvas
🟢RegularPolygon
¶
class
public
| Shape
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of elementside
: number of sides of a regular polygonangle
: number of radians of a regular polygon rotated clockwisename
: name of elementgradient_animation
: Wether use animation to change colorkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
Element
🟡display
¶
method
public
Element
on a Canvas
🟢RoundedRectangle
¶
class
public
| Shape
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of elementradius
: radius of the filletname
: name of elementgradient_animation
: Wether use animation to change colorkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
Element
🟡display
¶
method
public
Element
on a Canvas
🟢SemicircularRectangle
¶
class
public
| Shape
🟡coords
¶
method
public
Element
🟡detect
¶
method
public
Element
🟡display
¶
method
public
Element
on a Canvas
🟢SharpRectangle
¶
class
public
| Shape
widget
: parent widgetrelative_position
: position relative to its widgetssize
: size of elementtheta
: number of radians of sharp cornersratio
: height ratio of the left and right sharp cornersname
: name of elementgradient_animation
: Wether use animation to change colorkwargs
: extra parameters for CanvasItem
🟡coords
¶
method
public
Element
🟡display
¶
method
public
Element
on a Canvas