15 lines
317 B
Plaintext
15 lines
317 B
Plaintext
|
svg = new PlasmaSvg('tiger');
|
||
|
plasmoid.setAction("myAction", "Select Me!", "plasma");
|
||
|
|
||
|
plasmoid.action_myAction = function()
|
||
|
{
|
||
|
print("myAction triggered!");
|
||
|
plasmoid.removeAction("myAction");
|
||
|
}
|
||
|
|
||
|
plasmoid.paintInterface = function(painter)
|
||
|
{
|
||
|
svg.resize( plasmoid.size() );
|
||
|
svg.paint( painter, 0,0 );
|
||
|
}
|