[racket-dev] frame:editor-mixin not happy with a text%

2011-12-27 Thread Marijn
-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%20bindingsq=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


Re: [racket-dev] frame:editor-mixin not happy with a text%

2011-12-27 Thread Robby Findler
Thanks. I've fixed this in git.

Robby

On Tue, Dec 27, 2011 at 4:20 AM, Marijn hk...@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%20bindingsq=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

_
  Racket Developers list:
  http://lists.racket-lang.org/dev