qtk, interfaz

David López deibyd at gmail.com
Tue Oct 3 05:12:40 CEST 2006


hi everyone, thanks any way but juast i fix this problem

i just install mozart-stdlib and link the script with:

[QTk]={Module.link ["/usr/local/oz/cache/x-oz/system/wp/QTk.ozf"]}

thank all anyway

David López wrote:
> Hi everyone
> 
> first that all, thanks for all answer.
> 
> I have studied to make an interface and thus process my data.
> 
> The problem is that when running following script:
> 
> declare
> [QTk]={Module.link ["http://www.info.ucl.ac.be/people/ned/qtk/QTk.ozf"]}
> 
> proc{SaveText}
>    Name={QTk.dialogbox save($)}
> in
>    try
>       File={New Open.file init(name:Name flags:[write create truncate])}
>       Contents={TextHandle get($)}
>    in
>       {File write(vs:Contents)}
>       {File close}
>    catch _ then skip end
> end
> 
> proc{LoadText}
>    Name={QTk.dialogbox load($)}
> in
>    try
>       File={New Open.file init(name:Name)}
>       Contents={File read(list:$ size:all)}
>    in
>       {TextHandle set(Contents)}
>       {File close}
>    catch _ then skip end
> end
> 
> Toolbar=lr(glue:we
>            tbbutton(text:"Save" glue:w action:SaveText)
>            tbbutton(text:"Load" glue:w action:LoadText)
>            tbbutton(text:"Quit" glue:w action:toplevel#close))
> 
> TextHandle
> 
> Window={QTk.build td(Toolbar
>                      text(glue:nswe handle:TextHandle bg:white
> tdscrollbar:true))}
> 
> {Window show}
> 
> 
> it leaves the following error to me:
> 
> %********************** Error: module manager *******************
> %**
> %** Could not link module
> %**
> %** Could not load functor at URL:
> http://www.info.ucl.ac.be/people/ned/qtk/QTk.ozf
> %**--------------------------------------------------------------
> 
> 
> 
> why is it?.
> 
> 
> 
> thanks for the answer
> 
> 
> 
> 




More information about the mozart-users mailing list