Debian Codegraph @

tests/test_sys_argv/test_sys_argv.qml

raw
1 import QtQuick 2.0
2 import io.thp.pyotherside 1.5
3
4 Text {
5 id: txt
6
7 Python {
8 Component.onCompleted: {
9 importModule('sys', function() {
10 var args = evaluate('sys.argv');
11 for (var i=0; i<args.length; i++) {
12 txt.text += 'Arg ' + i + ': "' + args[i] + '"\n';
13 }
14 });
15 }
16 }
17 }