Skip to main content

a graphical user interface for the package twobodyproblem

Project description

Two Body Problem – GUI

the GUI to the simulation

Welcome!

This is the repository for the graphical user interface of this simulation. For more information about the whole program, go there.

In this additional GUI, there are more possibilities than in the normal (CLI) program. For example, you can choose from presets instead of typing in your own parameters, save your settings and values and more.

Table of Contents

Installation Instructions

Usage

Installation Instructions

(You may need Microsoft Visual C++ to be able to run the program, so install it from here if needed.)

via PyPi

The Python package manager pip will install the last uploaded version from the Python Package Index PyPi. This will not always be the latest version, so if you want to install all the latest features, install it from GitHub (see below).

  1. Make sure Python and pip are installed correctly.
  2. Run these commands from a command line:
    1. pip3 install --upgrade pip setuptools wheel
    2. pip3 install --upgrade twobodyproblem_gui
  3. Now, the program is runnable with python -m twobodyproblem_gui or python3 -m twobodyproblem_gui.

via GitHub

  1. Install the CLI program.
  2. Run these commands from a command line:
    1. cd TwoBody (or whatever folder you stored the CLI program files in)
    2. git clone https://github.com/Two-Body-Problem/twobodyproblem-simulation-python-gui.git
    3. pip3 install twobodyproblem-simulation-python-gui
  3. Now, the program is runnable with python -m twobodyproblem_gui or python3 -m twobodyproblem_gui.

Usage

To learn more about how to run the program with different options, run python -m twbodyproblem_gui -h or python3 -m twbodyproblem_gui -h respectively.

To learn more about the CLI program / the simulation itself, read this first.

Run the program with python -m twobodyproblem_gui or python3 -m twobodyproblem_gui.

The program will open a window with some input fields. This is the main window where you input the values. To save values, press Ctrl+S. The values will then be saved into a file. If you do this action repeatedly, the former contents of the file (i.e. the saved values) will be overwritten! To load saved values from this file, press Ctrl+L. To save or load values through a file dialog, press Ctrl+Shift+S or Ctrl+Shift+L. It works the same way for saving and loading settings from the settings window (open it with Ctrl+I). These files will be saved in the YAML format (*.yml).

You can also select from a few presets (e.g. Sun, Moon, Earth) to fill in some values instead of typing your own. To do so, press Ctrl+E, select from the drop-down menus and press one of the two buttons in the lower right corner.

To start the simulation, press the button in the lower right corner in the main window.


Participation in this README is always welcome!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twobodyproblem_gui-1.0.0.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

twobodyproblem_gui-1.0.0-py3-none-any.whl (214.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page