Can someone write me a small wxPython program - Simple calculation

  • Context: Python 
  • Thread starter Thread starter nukeman
  • Start date Start date
  • Tags Tags
    Calculation Program
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
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.
 
Physics 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.