pluginplayer.plugin_player

Classes

PluginPlayer

A class to open a python Kivy application for the PluginPlayer GUI.

Module Contents

class pluginplayer.plugin_player.PluginPlayer

A class to open a python Kivy application for the PluginPlayer GUI.

This GUI will allow users to import plugins from their filesystem, view each of their module’s information, and create a tree structure of modules to run. Creating a tree structure, they are able to link modules together, add submodules, property types, and inputs for each module.

Parameters:

App (kivy.app.App) – The Kivy App class

Returns:

returns a built app

Return type:

kivy.app.App

build()

Builds the main window from the plugin_player_setup.kv file, and creates instances of helper classes to alter the imported plugins and tree structure.

Returns:

The built Kivy application

Return type:

kivy.app.App

add_message(message)

Add a string message to the message section

Parameters:

message (str) – The string to add to the message section

create_popup(widget, description, dismiss, size)

Set up a basic popup given a scrolling widget, name, description, and dismissal protocol

Parameters:
  • widget (kivy.uix.widget.Widget) – The widget to be displayed in the popup

  • description (str) – The description of the popup

  • dismiss (bool) – True if you want the popup to autodismiss, False if not

create_image(filepath, new_filepath, size)

Resize an image using Pillow to fit the pixel size desired.

Parameters:
  • filepath (str) – The filepath of the image to be resized

  • new_filepath (str) – The filepath of the new resized image

  • size ((int, int)) – The desired size of the new image

on_stop()

On the closing of the application, the saved resized images used in the application are located and deleted.