Webbrowser user interface for python.
import jsui
ui = jsui.UI()
thing = Thing()
ui.start({'thing': thing})
Support both synchronous and asynchronous (eventually) operations.
Support both explicit and inspected (eventually) object specificiations.
spec:
'name': # name of the thing to expose
'type': # function/number/string/etc...
'ui': # ui element to use
'js': # ui payload (may also be processingjs)
'html': # html payload
'css': # css payload
-- Functions --
call grab (js) -> call grab (py) -> wait -> get images (py) -> get images (js)
get new stage positions (js) -> positions (py) -> new positions (py) -> new stage positions (js)
move stage (js) -> move stage (py)
change config (js) -> change config (py)
to turn a variable into a function. This needs to 'capture' the variable
def funcify(v):
def f(*args):
if len(args):
v = args[0]
return v
import jsui
ui = jsui.UI()
thing = Thing()
ui.start({'thing': thing})
Support both synchronous and asynchronous (eventually) operations.
Support both explicit and inspected (eventually) object specificiations.
spec:
'name': # name of the thing to expose
'type': # function/number/string/etc...
'ui': # ui element to use
'js': # ui payload (may also be processingjs)
'html': # html payload
'css': # css payload
-- Functions --
call grab (js) -> call grab (py) -> wait -> get images (py) -> get images (js)
get new stage positions (js) -> positions (py) -> new positions (py) -> new stage positions (js)
move stage (js) -> move stage (py)
change config (js) -> change config (py)
to turn a variable into a function. This needs to 'capture' the variable
def funcify(v):
def f(*args):
if len(args):
v = args[0]
return v
Metadata
Release files for jsui 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jsui-0.0.2.tar.gz | 5.2 kB | Details |
Release files / jsui-0.0.2.tar.gz
| Download URL | jsui-0.0.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16ae0f4911cb85781ace7891b087727354ed4f4d53bcb2fd107b63495b2cfe73
|
|
BLAKE2b-256 checksum How to use checksums |
a767b89209e3fc45f9fdaba680d01b32338bb118a64c87a4f496fb6182b77255
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |