Skip to content

CurrentYear.py

Psycho edited this page Oct 4, 2019 · 1 revision
import sqlite3

from core.base.model.Widget import Widget


class CurrentYear(Widget):

	SIZE = 'w_tall'
	OPTIONS: dict = dict()

	def __init__(self, data: sqlite3.Row):
		super().__init__(data)

The python backend for your widget, if the widget triggers actions on Project Alice, you can use ajax to bridge the interface with Project Alice core!

  • SIZE defines the widget size. Available sizes are:
    • w_tiny
    • w_tiny_wide
    • w_tiny_tall
    • w_small
    • w_small_wide
    • w_small_tall
    • w
    • w_wide
    • w_tall
    • w_large
    • w_large_wide
    • w_large_tall
    • w_extralarge
    • w_extralarge_wide
    • w_extralarge_tall
  • OPTIONS is not yet implemented