Skip to content

import turtle screen = turtle.Screen() screen.title("Analog Clock") pen = turtle.Turtle() pen.speed(0) pen.width(3) # နာရီအဝိုင်း pen.penup() pen.goto(0, -200) pen.pendown() pen.circle(200) # နာရီနံပါတ်များ pen.penup() for i in range(12): pen.home() pen.setheading(90 - i * 30) pen.forward(170) pen.write(str(i if i != 0 else 12), align="center", font=("Arial", 14, "bold")) # နာရီလက်တံ (Hour Hand) pen.home() pen.color("blue") pen.width(6) pen.setheading(60) # ဥပမာ 2 နာရီ pen.forward(90) # မိနစ်လက်တံ (Minute Hand) pen.home() pen.color("green") pen.width(4) pen.setheading(0) # ဥပမာ 15 မိနစ် pen.forward(140) # စက္ကန့်လက်တံ (Second Hand) pen.home() pen.color("red") pen.width(2) pen.setheading(180) # ဥပမာ 45 စက္ကန့် pen.forward(160) pen.hideturtle() turtle.done() #30

Description

@mrnaung8017-oss
No description provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions