Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
42 lines (23 loc) · 1.11 KB

File metadata and controls

42 lines (23 loc) · 1.11 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

API categories | API index

JavascriptCallback (object)

You can pass a callback function from Javascript to Python, when you do that, what you get in Python is a JavascriptCallback object that you can use to call javascript function back.

If you call the javascript callback and it fails, instead of js exception what you get is a python exception that exits the application by default (see sys.excepthook in examples).

See also JavascriptBindings.

See also Issue #11 (Throw JS / Python exceptions according to execution context).

Table of contents:

Methods

Call

Parameter Type
[params..] mixed
Return mixed

Call the javascript callback function.

For a list of allowed types for mixed see JavascriptBindings.IsValueAllowed().

GetName

Return string

Get the javascript function's name. If that is an anonymous function you will get some random name like "É☺«".

Morty Proxy This is a proxified and sanitized view of the page, visit original site.