Modal Widget


In [1]:
import os,sys
sys.path.insert(0, os.path.abspath('..'))
from hublib.ui import Modal



In [2]:
def modal_callback(val):
    print("Modal Dialog Returned", val)

In [3]:
Modal(body="This is a test modal dialog.",
      title='TEST DIALOG',
      buttons=['CANCEL', 'OK'], 
      cb=modal_callback)


MODAL INIT