#!/usr/bin/env kjscmd // Create the UI var mw = new KParts_MainWindow(); var ac = mw.actionCollection(); var split = new QSplitter( mw ); mw.setCentralWidget( split ); var view = Factory.createROPart( "text/html", split, "html" ); view.openStream( 'text/html', 'file:///index.html' ); view.writeStream( '

Inserting Data Directly

This shows how ' ); view.writeStream( 'you can send data to a part directly from a script. ' ); view.closeStream(); // // Activate XMLGUI and show the window // StdAction.quit( mw, 'close()', mw.actionCollection() ); mw.resize( 700, 500 ); mw.show(); application.exec();