Summary: | The constructor of the Picture class: Picture(window,url) returns error | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Yiwen Mao <yiwenv> |
Component: | scripting | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Yiwen Mao
2008-06-13 18:17:54 UTC
Modified documentation in bind_picture.h The same error still exists kst> url="http://extragear.kde.org/apps/kst/images/kstdemo.png" http://extragear.kde.org/apps/kst/images/kstdemo.png kst> w=new Window() Window kst> p=new Picture(w,url) Error: SyntaxError: Picture: Unexpected number of arguments. The documentation now states that the constructors are: Picture ( parent ) Picture ( window ) In order to create a picture you need to do the following: w=new Window() p=new Picture(w) url="http://extragear.kde.org/apps/kst/images/kstdemo.png" p.load(url) |