

It sounds easy to preach about productivity.

Everyone is trying out different things to help them stay focused on the task at hand.

People often find themselves procrastinating when it comes to working. But is it possible for everyone to stay focused? Let’s see how the Pomodoro technique can help you. Everyone talks about productivity and efficient usage of time. If you’d like to get notified about updates, feel free to follow me on Twitter. I hope you enjoyed this article - please let me know if you have any questions or if you run into any issues. Check it out and let me know what you think! I’ve implemented a similar menu bar app with some additional functionality. The application bundle will be created in your project directory under /dist/Pomodoro.app. Type the following in your terminal: python3 setup.py py2app Now you can go ahead and create your Pomodoro.app bundle using py2app. Now we will implement the actual functionality of our pomodoro menu bar app - see the complete code for pomodoro.py below: import rumps class PomodoroApp(object): def _init_(self): nfig =, setup_requires=, install_requires= )Īre you missing the icon file? You can download the file I used from the GitHub repository. If you execute the python program using python3 pomodoro.py, you will notice a new addition to your menu bar – albeit with limited functionality, as you can see…Ī barely functional menu bar app… Step 3: Full implementation

In pomodoro.py we need to set up the following boilerplate code in order to get started: import rumps class PomodoroApp(object): def _init_(self): self.app = rumps.App("Pomodoro", "🍅") def run(self): () if _name_ = '_main_': app = PomodoroApp() app.run() Open the project directory in your favorite editor or IDE - in my case P圜harm - by typing: charm. Enter the following in your terminal: pip3 install -U py2app # this will install py2app using pip, or to upgrade to the latest released version of py2app pip3 install -U rumps # this will install rumps using pip, or to upgrade to the latest released version of rumps Step 2: Basic example Run the following commands in your terminal to get started and set up the project directory: export PROJECT_NAME=pomodoro mkdir ~/PycharmProjects/$PROJECT_NAME cd ~/PycharmProjects/$PROJECT_NAME touch pomodoro.py setup.pyīe sure to install both rumps and py2app via pip (on my macOS). In this step we will install all requirements on our local machine. Step 1: Set up project directory and install dependencies py2app → For creating standalone macOS apps from Python code (how cool is that?).Rumps → Ridiculously Uncomplicated macOS Python Statusbar apps.
