PGUI System API

The PGUI System is a pseudo-graphical user interface created with html tags. It is used to wrap output data from the bot such as messages, images, etc and neatly present it to the server in the form of an html table with clean formatting.


Simple Pre-Configured PGUI

Use one of the two commands below:

  1. Simple PGUI with only text content:
    quick_gui(...)
  2. Simple PGUI with only text content and 1 image (with an optional caption):
    quick_gui_img(...)
Need a more custom PGUI to fit your needs? Make one from scratch as shown below with my 5-step guide.

Custom PGUI - 5 Step Guide

  1. Open the PGUI Container:
    open_box(...)
  2. Prepare PGUI Content:
    make_content(...)
  3. Fill the PGUI Container with PGUI Content:
    append_row(...)
  4. Close the PGUI Container:
    close_box(...)
  5. Display the PGUI:
    display_box(...)


PGUI API Quick Start For Custom Plugins:

Most plugins will probably only need the quick_gui and quick_img_gui methods to get pgui integration.
To send output data wrapped in a PGUI, you have the following methods available:

For the full comprehensive list of methods and pgui functionality, please check the pgui.py script in the lib directory.