https://github.com/fellerts/procal Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} fellerts / procal Public * Notifications * Fork 2 * Star 100 Simple Qt-based programming calculator License GPL-3.0 license 100 stars 2 forks Star Notifications * Code * Issues 2 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights fellerts/procal This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 4 branches 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/f] Use Git or checkout with SVN using the web URL. [gh repo clone feller] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @fellerts fellerts Merge pull request #7 from fellerts/fredrik/font ... c48c289 Mar 4, 2023 Merge pull request #7 from fellerts/fredrik/font Force Monaco monospace font on macOS c48c289 Git stats * 29 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time img Update README with better demo, description March 4, 2023 14:43 .gitignore Cleanup with clarifications February 1, 2022 18:29 LICENCE Add GPLv3 licence March 4, 2023 19:06 README.md Update README with better demo, description March 4, 2023 14:43 procal.py Force Monaco monospace font on macOS March 4, 2023 20:54 requirements.txt Add high-DPI and system theme support March 4, 2023 17:24 View code procal: A simple Qt-based programming calculator why? README.md procal: A simple Qt-based programming calculator Demo Any python code that can be eval()'d and cast to float without raising an exception is accepted. The binary representation of the result is shown in the table, and the binary, decimal, and hexadecimal representation is displayed at the bottom. Floats, 64 bit numbers and signed integers are supported too. Bits in the binary table can be toggled by clicking them (click and drag to toggle a range of bits). Right-clicking a bit turns it into a sign bit, which makes the decimal representation negative. why? I wrote this after some frustration with the default Gnome calculator's programming mode: 1. Not each bit is labeled, and I'd rather not count bits if I can avoid it. 2. You cannot click-and-drag to toggle multiple bits in gnome-calc. 3. gnome-calc does not understand hex strings starting with 0x, making copy-pasting from datasheets or code more of a hassle. 4. I wanted to play around with Qt. About Simple Qt-based programming calculator Resources Readme License GPL-3.0 license Stars 100 stars Watchers 3 watching Forks 2 forks Releases No releases published Packages 0 No packages published Languages * Python 100.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.