/Graphical-Node-Editor

Node editor using PyGame and Tkinter

Primary LanguagePythonMIT LicenseMIT

Graphical Node Editor

Node editor using PyGame and Tkinter
Example

Usage

Download latest release https://github.com/michael-gif/Graphical-Node-Editor/releases
Run the installer nodeeditor_setup.exe

Requirements

  • Python 3.8
  • Pygame 1.9.6
  • Tkinter (comes with Python)

Toolbar

Button Description
Exit Exits the application
New Node Opens the create node dialog
Edit Node Opens the edit node dialog
Import Allows you to import a file
Export Opents the export dialog

Export node tree to a file

Export settings

  • Click the button with the three dots to select a save location
  • Select the export format (only JSON is currently supported)
  • Click on Export settings to change the export settings
  • Export will export the file to the specified format with the configured export settings

Export settings

Export settings

  • Check or uncheck each of the attributes to include or exlude them in the exported file
  • Change the name of an attribute to change its name in the exported file

Building from source code

  • Download this repository
  • Install Python 3.8 if you don't have it already https://www.python.org/downloads/release/python-380/
  • Navigate to the Python38 folder where python.exe is located
    On windows: C:\..\AppData\Local\Programs\Python\Python38\
  • Install Pygame 1.9.6 for Python 3.8
    python.exe -m pip install -Iv pygame==1.9.6
  • Go to the folder of the respository

Compiling to exe

It doesn't matter whether you use the PyInstaller scripts or the py2exe scripts, just pick one

  • Standard compilation
    • PyInstaller: build_pyinstaller.bat
    • py2exe: build_py2exe.bat
  • Minimal file compilation
    • PyInstaller: build_pyinstaller_onefile.bat
    • py2exe: build_py2exe_onefile.bat

Building the installer

The installer is automatically built for you when you build NodeEditor.exe, and is located in the installer directory as nodeeditor_setup.exe
However if you want to build the installer youself:

Method 1

  • Run build_installer.ps1 from PowerShell
  • You will end up with nodeeditor_setup.exe in the installer folder

Method 2

  • Open installer_script.iss in Inno Setup Compiler, making sure the name of the script corresponds to the build script you used to generate the app exe.
  • Go to Build > Compile and wait for installer to compile
  • You will end up with nodeeditor_setup.exe in the installer folder