Debian Codegraph @

tests/test_nested_import/example_api12.qml

raw
1 import QtQuick 2.0
2 import io.thp.pyotherside 1.2
3
4 Python {
5 Component.onCompleted: {
6 addImportPath(Qt.resolvedUrl('.'));
7 importModule('thp_io.pyotherside.nested', function () {
8 console.log('"nested" imported successfully');
9 console.log('repr of the module: ' + evaluate('repr(thp_io.pyotherside.nested)'));
10 call('thp_io.pyotherside.nested.info', [], function (result) {
11 console.log('from nested.info(): ' + result);
12 });
13 importModule('thp_io.pyotherside.nested.module', function () {
14 console.log('"nested.module" imported successfully');
15 call('thp_io.pyotherside.nested.module.info', [], function (result) {
16 console.log('from nested.module.info(): ' + result);
17 console.log('nested.module.value: ' + evaluate('thp_io.pyotherside.nested.module.value'));
18 Qt.quit();
19 });
20 });
21 });
22 }
23 }