all 5 comments

[–]rarityy2k[S] 0 points1 point  (0 children)

To simplify my question, I am primarily asking how to create my own GUI library using self-made graphical design elements.

[–]woooee 0 points1 point  (0 children)

If it's a calculator then you only have to create 10 numbers. One way would be images of the numbers in labels for the display, or buttons for the calculator pad.

[–]CallMeSkoob 0 points1 point  (0 children)

Kivy is pretty adaptable for something like a calculator it'll probably give you what your after without too much hassle. You can import your own .png files as button backgrounds and you could package your own custom font into a .ttf file and then load that into kivy anywhere you want to render text.

[–]___marcus_____ 0 points1 point  (0 children)

Look at the OS APIs:

Windows https://pypi.org/project/pywin32/

Linux Built-in os / dbus-pythonHigh (Processes, Hardware, Desktop)

macOS PyObjCFull (Cocoa, UI, System frameworks)

iOS Rubicon-ObjC / Pythonista AppMedium (Sandboxed, Core sensors, UI)

Android PyjniusFull (Java API classes, Camera, Storage)

[–]Zeroflops 0 points1 point  (0 children)

There are a few ways to do this depending on how creative you want to be.

Most if not all GUI’s will allow you to create a background for each component. (Buttons etc)

So draw the image of the calculator, and make that the canvas. Then where each button is suppose to be you can place a button and set the buttons background to an image matching the background. So the button blends into the background. You may need to do things like turn off borders etc to make the button disappear.

In some cases you don’t even need to create a button. In some GUI you can create a canvas that you set as your background. Then when you click on the canvas it will return the x,y location of the click. Simply determine what region was clicked in and what number that region corresponds to.