8000 object oriented mode · Issue #60 · PythonTurtle/PythonTurtle · GitHub
[go: up one dir, main page]

Skip to content

object oriented mode #60

@darvin

Description

@darvin

Object Oriented mode

Make 2 modes in application:
Procedure - current
Object Oriented.
It will be swiched in menu (?)

When OO mode is swiched, turtle widget blanks.
then we can use OO approach:

mike = Turtle()
mike.go(30)
mike.turn(60)

gandalf = Turtle(x=50, y=40)
gandalf.go(90)


class JumpingTurtle(Turtle):
     def jump(self):
          self.go(50)

 froggy = JumpingTurtle()
 froggy.jump()

It will be coolest education application ever!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0