Leveraging Brython for Web Development

saad1926q

Saad Ahmed Siddiqui

Posted on May 6, 2024

Leveraging Brython for Web Development

Hey there! Today, we're going to talk about our experience with Python during a recent hackathon. It all started with a game we created using turtle graphics. Initially, we thought it would be easier to convert this game into JavaScript code so we could integrate it into our website seamlessly.

However, things took an interesting turn when we stumbled upon Brython. It's a tool that allows you to run Python code in a web browser. We were intrigued by the idea of using Python in our JavaScript code, so we decided to give it a try.

We faced our fair share of challenges along the way. First off, there wasn't a lot of information available about integrating turtle graphics into a website. We had to do a lot of digging to figure out exactly what we needed to do.

Then came the biggest challenge of all: event listeners. For some reason, Brython doesn't support event listeners in turtle graphics. This meant that we had to rethink our approach and find a different way to make our game work.

Overall this was a very different experience for me and my entire team as a matter of fact.

If you're interested in checking out the game that we ended up making, you can find it here: https://owaismohammad.github.io/TeamAqua/TurtleGame.html

💖 💪 🙅 🚩
saad1926q
Saad Ahmed Siddiqui

Posted on May 6, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related