powered by TinkerSpace.in
Join free
Create ยท App (Code)

App (Code)

Like App Inventor, but with Python: design your screens with views, add buttons and widgets, and write the code that runs when each one is tapped.

What you can build
  • ๐Ÿ  Smart home with a password
  • ๐Ÿค– Robot remotes
  • ๐Ÿ“Š Sensor dashboards
  • ๐Ÿงฎ Calculators & tools
  • ๐ŸŽฎ Games & quizzes
  • ๐Ÿ—ฃ๏ธ Talking apps
๐Ÿ”‘
Log in to see your apps

Your work is saved in your free TinkerPy account, so you can open it on any computer or phone.

All about App (Code)

Your mentorโ€™s quick guide: how it works, what to try next, and answers to common questions.

1
Design

Add views and parts. Each view lines its parts up โ€” across (Horizontal), down (Vertical) or in a Grid. Tap a part for its settings.

2
Code

Every button and widget has its own โ€œwhen clickedโ€ Python. All of it together is the full code โ€” imports are added for you.

3
Run

Try it with the Virtual Board, then connect your board by Bluetooth or IoT. Watch each line light up as it runs.

๐Ÿง— What to make next

Beginner

A hello button ยท a counter ยท show text from an input ยท if / else

Intermediate

Calculator ยท quiz ยท dice game ยท timer and stopwatch

Advanced

Password-locked smart home ยท robot remote ยท live sensor dashboard with alerts

๐ŸŽ’ What you need

  • ๐Ÿ’ปA computer, tablet or phone with Chrome
  • ๐ŸงฉA TinkerPy board with a Project โ€” or the Virtual Board to practise
  • ๐ŸA little Python: variables, if / else โ€” the examples teach you
  • ๐ŸŽจIdeas! Every view has colours, padding, corners and shadows

โ“ Questions students ask

What is the difference between App (Blocks) and App (Code)?

App (Blocks): drag widgets, no code. App (Code): you design the layout with views and write Python for every button and widget, so your app can think โ€” passwords, scores, timers, conditions.

Is this real Python?

It is Python made for apps: variables, if / elif / else, loops, maths, text and lists โ€” and it starts instantly on a phone. No def, global or import needed in your events.

Can I use all the App (Blocks) widgets?

Yes โ€” doors, fans, lights, sensors, joysticks, camera AI and more, plus new parts like text inputs, sliders, switches, progress bars and gauges.

How does it talk to my board?

bluetooth.send("A") sends a letter, just like App (Blocks). When the board sends data back, your โ€œwhen data arrivesโ€ code runs.

๐Ÿ“ฑ Want it quicker, without code?

App (Blocks) builds a remote control in a minute โ€” just drag widgets.

Open App (Blocks) โ†’