[racket-dev] frame:editor-mixin not happy with a text%
Thanks. I've fixed this in git.
Robby
On Tue, Dec 27, 2011 at 4:20 AM, Marijn <hkBst at gentoo.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> according to the docs a frame:editor-mixin requires an editor%
> argument that is an editor%[1], but it really wants its argument to be
> a editor:basic-mixin.
>
>
> #lang racket/gui
>
> (require framework)
>
> (application:current-app-name "Land Usage Calculator")
>
> (define root-frame (new (frame:editor-mixin
> (frame:standard-menus-mixin frame:basic%))
> (filename "Untitled")
> (editor% (editor:basic-mixin text%))
> #;(editor% text%) ))
>
> (define root (send root-frame get-area-container))
>
> (send root-frame show #t)
>
>
> Marijn
>
> [1]:http://docs.racket-lang.org/framework/Frame.html?q=default%20key%20bindings&q=menu-bar#%28def._%28%28lib._framework/main..rkt%29._frame~3aeditor-mixin%29%29
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.18 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk75m/wACgkQp/VmCx0OL2zetgCfQc/xnXrXOtoDW53tOwIajL3Z
> nqgAnjoc4L2tO6AGp/0QEJeA4le1Nmu7
> =G+DM
> -----END PGP SIGNATURE-----
> _________________________
> Racket Developers list:
> http://lists.racket-lang.org/dev