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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file twobodyproblem_gui-1.0.0.tar.gz.

File metadata

  • Download URL: twobodyproblem_gui-1.0.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for twobodyproblem_gui-1.0.0.tar.gz
Algorithm Hash digest
SHA256 34e9bacf29301e2fabb5cf6547c6cefbba2eb50972a349143ee3cc9599ca6760
MD5 b17ea68ec067753ab3a098c35e1b0d09
BLAKE2b-256 bf47e277758e3e5aa23d080e6f0859be7de81140fc3c37ea159553bbce92bcfb

See more details on using hashes here.

File details

Details for the file twobodyproblem_gui-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: twobodyproblem_gui-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 214.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for twobodyproblem_gui-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aca94bad2693e18689417530d5bc46a209d0ef66d392fa57e6baccb7444725f6
MD5 d05fec7a7b1e0b4e08e2bb08a605a5df
BLAKE2b-256 76438058e560f28766127b055907c4598936a8602c2307a192f1781fbd528b50

See more details on using hashes here.

Supported by

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