A very simple calculator with a modern UI made in Python thanks for the stunning Sun-Valley-ttk-theme and Segoe UI Variable font.

Overview

Fluent-Python-Calculator

A simple Python calculator with Sun-Valley-ttk-theme image

About Fluent-Python-Calculator:

A very simple calculator with a modern UI made in Python thanks for the stunning Sun-Valley-ttk-theme and Segoe UI Variable font. This is my first project ever in my life so feel free to open an issue or pull requests to help me finish the project!

Use the calculator

  • Make sure you have a code editor (VS code, Notepad ++,..) and Python installed.
  • Download the file in release
  • You can double click to run the program or open with a code editor to edit it

Dark/Light mode images

Light mode: image

Dark mode: image

Future development

  • Improve button size
  • Add 'error' message into the app
  • Improve UI
  • Add proper changing dark/light mode
  • Change to exe? (maybe)
Comments
  • Make titlebar dark

    Make titlebar dark

    In the latest release notes you said that you look for a way to make the Titlebar change color. I dont know a direct solution, but when using the BlurWindow Module (python -m pip install BlurWindow) with Dark = True, the titlebar changes its color to dark. And the window also gets blurred, which looks great on modern apps! I would make a pull request, but i cant get to my PC at the moment.

    EDIT: i dont know if this solution also works for the menu bar. You need to check.

    ✨ feature 
    opened by not-nef 41
  • App's UI is not working perfectly

    App's UI is not working perfectly

    I downloaded the v5 (Beta) version and ran it on my Windows 10 laptop and here's how it looks:

    Fluent Calculator 2_19_2022 7_44_59 PM Fluent Calculator 2_19_2022 7_45_10 PM Fluent Calculator 2_19_2022 7_45_16 PM

    The first photo's background is white only, however on taking screenshot, it shows black. The second photo is of dark mode. The third photo is after disabling dark mode, in which also the background is white but in screenshot it is black. I am running Windows 10 Version 21H1.

    📣 bug ✨ feature 
    opened by RivanParmar 27
  • Buttons need to click multiple times before they can be insert into the content

    Buttons need to click multiple times before they can be insert into the content

    More info: Only happens in light mode because the 'pressed' state in light mode is a bit transparent, but the windows was also transparent for the mica effects so it needs to click multiple times before they can be insert into the content. This does not happen in dark mode, because the 'pressed' state in dark mode is not transparent. This was not happens before switching to the sv_ttk because I modified the 'pressed' state. Not sure if you guys facing the same issue, if yes, I will ask rdbende to modify the button to not transparent

    https://user-images.githubusercontent.com/86362423/164738773-eeb3e5c1-9327-49ff-83a6-482e21669943.mp4

    📣 bug 
    opened by HuyHung1408 23
  • Zero division easter egg

    Zero division easter egg

    This is just a little idea i had: We could add a small easter egg: the application will not say error after a few times of trying, but things like: "Stop dividing by zero!", "Seriously, stop", "STOP IT!!!!!!". And things like that. I thought this will be a cool little secret.

    ✨ feature 
    opened by not-nef 18
  • Better way of using Mica with tkinter

    Better way of using Mica with tkinter

    Hey, I found a way of using mica with tkinter without a third party app

    You need to use these two pieces of code

    https://gist.github.com/Olikonsti/879edbf69b801d8519bf25e804cec0aa the first one enables the windows immersive dark mode with a dark title bar

    https://gist.github.com/Olikonsti/8cbcba376c92831a27bc92ce0bb4dbc7 this code blurs the window

    you first run dark_title_bar(window) on your window and then enable_blur(window)

    this needs to happen after changing window.resizable()

    I am currently building a library with the sun valley ttk theme, the tkinter blur and extra widgets like scrollframes and entry boxes with ghost text: https://github.com/Olikonsti/MTK

    ✨ feature 
    opened by Olikonsti 10
  • No option to backspace

    No option to backspace

    There is no option to backspace. You can't remove single digits in the entry widget. There is option to only clear the widget and you have to type everything back again.

    Possible solution:

    • Add another button for backspace. OR
    • Make it such that on clicking the "C" button once, removes a single digit from the entry widget and on long press, clears the entire widget.
    ✨ feature 
    opened by RivanParmar 9
  • Move calculations to a different .py file

    Move calculations to a different .py file

    What do you think about that @HuyHung1408 ? I would like to move the calculation part of the program to a different .py file, as it is about to get larger. Only an idea tho, i just want to make the code look good. No problem if you dont want it.

    opened by not-nef 5
  • Modified entry widget to interact properly with keyboard

    Modified entry widget to interact properly with keyboard

    I have modified the Entry widget to be set to focus throughout the program right from the start. This is because the user won't have to click on the widget to write in it from the physical keyboard. The user will only be able to input numbers and operators to the Entry widget from the physical keyboard. The operators include: "+", "-", "*" and "/". You can add more in the checkIfNumberOrOperator function.

    opened by RivanParmar 5
  • Revert my last pr

    Revert my last pr

    Ok, so, i investigated in this topic a little bit further (I think you say it like that) and found out, that the buttons actually dont change position when dark mode is enabled. The contrast between the border color of the white buttons and the white background is just so low, that they appear 1px smaller than they actually are, which is the reason that the dark buttons look like they are closer to each other. I will attach a video that shows this. Sorry for the inconvenience.

    https://user-images.githubusercontent.com/83908932/163678536-d5cc54dc-d935-4850-9319-ade9ee2a0c15.mp4

    opened by not-nef 3
  • Cannot import sv_ttk

    Cannot import sv_ttk

    This isn't exactly an issue but, on opening the source code files in VSCode, it shows error on 'import sv_ttk'. The error is ModuleNotFoundError: No module named 'sv_ttk'. I have also downloaded this repository: https://github.com/rdbende/Sun-Valley-ttk-theme, however it isn't working. Moreover I could not find any other library named sv_ttk. I have the BlurWindow module and there's no error in importing it. So, could you please describe the steps to setup sv-ttk in VSCode project?

    opened by RivanParmar 3
Releases(v2.0)
  • v2.0(May 29, 2022)

    This is version 2.0 of FluxCalc! We are so excited to bring you the new UI redesign and all the other new Features!

    New Features

    • Big UI redesign by @HuyHung1408
    • Proper Bracket multiplication by @not-nef
    • Added Always on top feature so you can easily pin it on top, and use it anytime.
    • Fluent Python Calculator finally has a proper, a better name, FluxCalc, hope that we can bring you the best experience while enjoying our apps!

    Full Changelog: https://github.com/Futura-Py/FluxCalc/compare/v1.0...v2.0

    Source code(tar.gz)
    Source code(zip)
    FluxCalc-setup.exe(8.57 MB)
  • v1.0(Mar 7, 2022)

    The first version of Fluent Python Calculator! First, I want to thank all of you for helping me finish this project. I couldn't finish it without the help of y'all

    • Improved entry width!
    • Add Mica* (thanks for @sumeshir26 and @Olikonsti)
    • Fixed AccentButton (thanks for @RivanParmar)
    • Add backspace button
    • Fluent Calculator now follow your system dark/light mode
    • Fixed "+" button bigger than usual.
    • Fluent Calculator is now installed as an app!
    • App will launch faster!

    Light mode | Dark mode :-------------------------:|:-------------------------: image | image

    *No Mica for Windows 10

    Source code(tar.gz)
    Source code(zip)
    FluentCalculatorInstaller.exe(8.55 MB)
  • v0.5(Feb 11, 2022)

    Big update!

    • #6 Proper division button (thanks for @sumeshir26)
    • Acrylic, dark title when dark mode on (thanks for @sumeshir26, @not-nef, and @im-coder-lg)
    • New functions!
    • Change from menu bar to button to change dark/light mode. Trying to use the Json config file again since it was deleted (because I changed from menu bar to button)

    Known issues:

    • The title bar was still dark even when it was changed into light mode.
    • Acrylic sometimes broken!

    Light mode | Dark mode :-------------------------:|:-------------------------: image | image

    Source code(tar.gz)
    Source code(zip)
    Fluent.Calculator.zip(9.39 MB)
  • v0.4(Jan 31, 2022)

  • v0.3(Jan 29, 2022)

    New update!

    • Light/dark mode changing through a menu bar button thanks for @TimothyMalahy
    • Looking for a way make menu bar changing color, not sure if it's possible (because change to dark mode make the title bar looks bad)

    Light mode | Dark mode :-------------------------:|:-------------------------: image | image

    Source code(tar.gz)
    Source code(zip)
    Fluent.Calculator.zip(9.35 MB)
  • v0.2.3(Jan 29, 2022)

    New update for sure!

    ⚠️ Currently since antivirus marked it as a virus because I converted it into .exe using pyinstaller, if you still think it is a virus, check the python file.

    • Converted file to .exe, wow!
    • All should work correctly, IMPORTANT read README.md for more information about some notes for the .exe file!
    • New app icon ✨
    • Due to python limitations, don't delete .ico, .tcl and theme folder Note: Nothing changed about the design, so I will not attach it here, if you want the python file, check here (v0.2)

    image

    Source code(tar.gz)
    Source code(zip)
    Fluent.Calculator.zip(9.35 MB)
  • v0.2(Jan 28, 2022)

  • v0.1(Jan 28, 2022)

    First release!

    • All of the buttons should work
    • Some buttons have different sizes although they have the same size in the code, will fix it in the next version!
    Source code(tar.gz)
    Source code(zip)
Owner
null
A calculator made using Python and Tkinter

Abacus Abacus is a calculator used to compute expressions with the operators of Addition, Subtraction, Multiplication and Division. It is named after

null 0 Jun 24, 2022
🧮A simple calculator written in python allows you to make simple calculations, write charts, calculate the dates, and exchange currency.

Calculator ?? A simple calculator written in python allows you to make simple calculations, write charts, calculate the dates, and exchange currency.

Jan Kupczyk 1 Jan 15, 2022
A GUI calculator made with tkinter module in python

GUI-Calculator A GUI calculator made with tkinter module in python How to setup the calculator If pygame is not installed, go to terminal and do pip i

Eric Jing 0 Aug 25, 2021
This is a rip off of the classical iPhone Calculator . This project has been made with PyQT5

iPhoneCalcRIP-OFF This is a rip off of the classical iPhone Calculator . This project has been made with PyQT5

Juss Patel 7 May 1, 2022
A simple assistance and with a very basic GUI

J.A.R.V.I.S This is a simple assistance and with a very basic GUI (Graphical User Interface) Download all the dependencies by running the below code p

Abir Pal 7 Oct 12, 2022
Advanced GUI Calculator with Beautiful UI and Clear Code.

Advanced GUI Calculator with Beautiful UI and Clear Code.

Mohammad Dori 3 Jul 15, 2022
Textual is a TUI (Text User Interface) framework for Python inspired by modern web development.

Textual is a TUI (Text User Interface) framework for Python inspired by modern web development.

Will McGugan 17.1k Jan 8, 2023
Basic calculator using Tkinter GUI

Basic calculator using Tkinter GUI

Rogerio Penchel 17 Jan 9, 2022
Currency calculator with PyQt5

currency-calculator currency calculator with PyQt5

Vusal Akhundzada 2 Mar 8, 2022
A library for building modern declarative desktop applications in WX.

re-wx is a library for building modern declarative desktop applications. It's built as a management layer on top of WXPython, which means you get all the goodness of a mature, native, cross-platform UI kit, wrapped up in a modern, React inspired API.

Chris 115 Dec 24, 2022
HDLG is a modern cross-platform GUI for hdl-dump with Batch installation capabilities.

HDLG is a modern cross-platform GUI for hdl-dump with Batch installation capabilities. Looking for Artwork This project is looking for an Icon an

null 8 Dec 3, 2022
A html canvas based screencasting server with occasional ground-truth updates via screenshots and very fast input drawing

rm2canvas A html canvas based screencasting server for the reMarkable 1/2 digital paper systems. It draws live on the canvas from the remarkables touc

null 45 Sep 8, 2022
Simple GUI python app to show a stocks graph performance. Made with Matplotlib and Tiingo.

stock-graph-python Simple GUI python app to show a stocks graph performance. Made with Matplotlib and Tiingo. Tiingo API Key You will need to add your

Toby 12 May 14, 2022
Chatterpatter - A simple GUI complex backend Chat Application made using python

Chatterpatter - A simple GUI complex backend Chat Application made using python

Gurneet Singh 2 Jan 8, 2022
LyricsGenerator - A simple GUI made using Python(Tkinter) for generating song lyrics

Lyrics Generator Reference :- https://www.geeksforgeeks.org/create-a-gui-to-extr

Somya Ranjan Sahu 3 Mar 25, 2022
My Git GUI version made in Python and Tkinter.

Description My Git GUI version made in Python and Tkinter. How to use Basically, create a folder in your computer, open the software, select the path

Matheus Golzio 4 Oct 10, 2021
A Python based Connect 4 game made with DearPyGUI

Ultimate-Connect-4 A Python based Connect 4 game made with DearPyGUI NOTICE: If you connect to the game server hosted by Jah-On and attempt to send ma

null 4 Jun 1, 2022
Json IDE made with Python tkinter!

JIDE Json IDE made with Python tkinter! Download: https://github.com/LouisTheXIV/JIDE/releases/tag/v0.1 Features In JIDE everything is customisable do

n0 7 May 14, 2022
A Url Shortener with GUI made in Python.

Url-Shortener-with-GUI-in-python A Url Shortener with GUI made in Python. To Run this download the zip file and run the main file or Clone this repo.

SidTheMiner 1 Nov 12, 2021