Python Can someone write me a small wxPython program - Simple calculation

AI Thread Summary
The discussion revolves around a user seeking help to create a simple GUI calculator in Python using wxPython for an astronomy project. The user requires a program that takes inputs for gigahertz and the distance between hotspots, performing a calculation that multiplies the distance by two and then by the gigahertz value. However, several contributors suggest that instead of developing a GUI, a command-line interface (CLI) script would be more efficient and sufficient for the task. They argue that a CLI script can effectively handle the input and calculations while maintaining a professional appearance. The consensus leans towards creating a straightforward command-line solution rather than a more complex GUI application.
nukeman
Messages
651
Reaction score
0
Hey guys,

I started toying around with Python and wxpython with the help from people here. I'm moving along the tutorials, but I am working on an astronomy project that will require the program I wanted to make impossible, in terms of how long it would take me to learn to proper code.

(this program has nothing to do with school)

All I need is a GUI calculator with imputs.

The variables are for example

Please enter the number of gigahertz

after you imput that, it will ask

Please enter the distance between hot spots

and when it does this calculation, it automatically timeses by 2

so it will calculate the number of gigahertz x (distance between hot spots x 2)

And it gives an answer.


Can anyone do this for me? I can pay you a couple bucks if you need it.
 
Technology news on Phys.org
I think the wxPython tutorial has code for an example calculator.
 
I don't think you should use a GUI for this.

Just write a simple script that let's you input parameters through the command line.

That way you can call the script, it will ask you the input requirements above and the user can enter them. Followed by the calculations being performed.

It will do the job perfectly well and let's face it, it will look good if you use the command line and talk about the scripts. They'll think you just took a GUI base from the net.
 
I agree. Just run it through the CLI or IDLE.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.

Similar threads

Replies
10
Views
3K
Replies
3
Views
2K
Replies
2
Views
2K
Replies
21
Views
5K
Back
Top