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
Click For Summary

Discussion Overview

The discussion revolves around creating a small wxPython program for a GUI calculator intended for an astronomy project. Participants explore different approaches to implementing the calculator, including the use of a graphical user interface versus a command line interface.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant requests a wxPython GUI calculator that takes inputs for gigahertz and distance between hot spots, performing a specific calculation.
  • Another participant suggests using a command line interface instead of a GUI, arguing it would be simpler and effective for the task.
  • Some participants mention that wxPython tutorials may already contain relevant code for a calculator.
  • There is a suggestion to consider the aesthetic appeal of using a command line script over a GUI.

Areas of Agreement / Disagreement

Participants express differing opinions on whether to use a GUI or a command line interface, indicating no consensus on the best approach for the calculator.

Contextual Notes

Participants have not resolved the question of which interface is more suitable, and there are no specific assumptions or definitions discussed regarding the requirements of the program.

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.
 

Similar threads

  • · Replies 28 ·
Replies
28
Views
5K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 22 ·
Replies
22
Views
7K
Replies
4
Views
5K
  • · Replies 21 ·
Replies
21
Views
6K