Skip to main content

A Python library for creating Scratch Junior–style projects using code.

Project description

TicTac Junior

TicTac Junior is a Python library for creating Scratch Junior-style projects using code. It’s designed to help learners smoothly transition from Scratch Junior to text-based programming.

With TicTac Junior, you write familiar Scratch Junior-like logic using pure Python. It’s great for children, educators, and anyone beginning their Python journey.

🎯 Core Idea

Write a Python program - get a result that feels like Scratch Junior.

🧩 Example

import tictacjr.en as tj


project = tj.Project()
project.title = "My TicTac Project"
project.set_grid()

page = tj.Page()
project.pages += page
page.background = tj.Background.PARK

label = tj.Label()
page.labels += label
label.text = "My TicTac Text"
label.color = tj.Color.WHITE
label.size = tj.TextSize.AA
label.x = 20
label.y = 25

tic = tj.Character()
page.characters += tic
tic.costume = tj.Costume.TIC
tic.size = tj.Size.M
tic.x = 20
tic.y = 15

script = tj.Script()
tic.scripts += script

(
    script.start_on_green_flag()
    .say("Hello World!")
    .move_right(5)
    .move_left(5)
    .turn_left(3)
    .turn_right(6)
    .turn_left(3)
    .hop()
    .say("Bye!")
    .go_home()
)

project.start()

🧱 Available Blocks

See the full list of available blocks in tictacjr/core/block.py.

These define the core actions (move, turn, say, wait, repeat, etc.) that mimic Scratch Junior's behavior in Python code.

💡 Inspiration

TicTac Junior draws inspiration from:

🚧 TODO

  • Add Event.START_ON_MESSAGE / _ControlAction.send_message
  • Add support for multiple Pages on Stage
  • Add _ControlAction.go_to_page
  • Add Ukrainian localization
  • Add documentation
  • Add _ControlAction.stop
  • Add _ControlAction.speed
  • Add Event.START_ON_BUMP
  • Add _SoundAction.pop
  • Add support for custom characters/backgrounds

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tictacjr-0.1.0.tar.gz (336.5 kB view details)

Uploaded Source

File details

Details for the file tictacjr-0.1.0.tar.gz.

File metadata

  • Download URL: tictacjr-0.1.0.tar.gz
  • Upload date:
  • Size: 336.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.5 Windows/11

File hashes

Hashes for tictacjr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 39efdffc8ecf122159459e2401bf0a86fb9ea5aeed2b191a3deb3ceaff6a4ffc
MD5 a117e694f2c0fd4f000dcf9b3559369e
BLAKE2b-256 4538a7d5cfa21d827d3e7c52c9047c98f6c662f31046784a40baa6a5be2577ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page