Skip to content

Getting Started

Installation

To get a local copy up and running choose one of the below install instructions and follow the steps provided.

Install With PIP

The simplest way to install the PyMD Editor is to use pip:

pip install pymd-editor

Install From Source

Alternatively you can install from source by following the steps below:

  1. Clone the repo:
    git clone https://github.com/hreikin/pymd-editor.git
    cd pymd-editor/
    
  2. Create and source a Python virtual environment:
    python3 -m venv .venv
    source .venv/bin/activate
    
  3. Install requirements with pip:
    pip install -r requirements.txt
    

Usage

Standalone

To start the standalone editor simply run the following:

python3 -m pymd_editor

Embedded

To use the ttkbootstrap styled EditorFrame in one of your own python scripts:

from pymd_editor.pymd_editor_frame import EditorFrame

import tkinter as tk
import ttkbootstrap as ttk
from ttkbootstrap.constants import *

root = ttk.Window(themename="darkly")
app = EditorFrame(root)
app.pack(fill="both", expand=1)
app.mainloop()

Last update: 2022-04-06
Back to top