Andrew Dorrell writes:
> 2. place-grip disappears:
>
> thomas:~/working/mavis> stk-3.99.2
> Welcome to the STk interpreter version 3.99.2 [Linux-2.X-ix86]
> Copyright © 1993-1998 Erick Gallesio - I3S - CNRS / ESSI <eg_at_unice.fr>
> STk> (require "Tk-classes")
> "Tk-classes"
> STk> (define p (make <VPaned> :width 200 :height 200))
> p
> STk> (pack p)
> ()
> STk> (place-grip p)
>
> *** Error:
> unbound variable: place-grip
>
>
> Compiled with gcc 2.7.2. Any suggestions much appreciated,
Place-grip didn't disappeared, it is now hidden in the module
STklos+Tk. I could have exported it, but it seems that this method is
clearly private to the Paned classes (this function is bound to a
mouse event). I must admit that I don't understand why you want to use
it directly.
However if you really need you can do:
(with-module STklos+Tk (export place-grip))
or even
(define my-place-grip (with-module STklos+Tk place-grip))
Since ~ is also a "shortcut" for with-module You can also use the
Unixish (imho) expression (~ STklos+Tk place-grip) to access to this
method.
-- Erick
Received on Sun Jul 26 1998 - 15:53:36 CEST
This archive was generated by hypermail 2.3.0
: Mon Jul 21 2014 - 19:38:59 CEST