Code Monkey home page Code Monkey logo

stopwatch's Introduction

StopWatch

This is my first foray into GUI programming since undergrad. I needed a simple, straightforward stop watch utility for timing my tasks, as well as a reason to finally do what I've wanted to do for a long time: GUI programming.

The application is the simplest possible thing: three buttons with a stopwatch functionality. All written in Python. It was so simple that a Model-Control-View breakdown would've been overkill. Overtime, I hope to add to it but for now, here's a simple code, doing a simple thing!

Code Requirements

See requirements.txt for the list of required packages. I used a virtual environment of Python3.9.5.

Conversion to an application

I used pyinstaller in order to convert the python code into an app and avoid having to call it from a command line everytime. The steps to do this were

  1. Install pyinstaller via pip install pyinstaller inside the virtual environment.
  2. Set the shell variable by running env PYTHON_CONFIGURE_OPTS="--enable-shared" pyevn install 3.9.15. For some reason the next step would not work without running this first.
  3. Finally, run pyinstaller --onefile --clean --noconsole -i /PATH_TO_ICON/icon_2.jpeg -n MyTimerApp src/main.py.

stopwatch's People

Contributors

rouzbehy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.