`'root` menu bar has some problems
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 领域
- desktop
调研方向
运行 issue 中的两个最小 racket/gui 程序,并重现根菜单栏的两个故障,包括命令行情况。跟踪相关 GUI 入口点中的根菜单栏行为;完成的标准是关闭窗口后 cmd-o 输出 "open",并且运行第二个程序会显示它自己的根菜单栏。
由索引模型根据 Issue 内容生成。
描述
There seem to be two problems (or two symptoms of the same problem).
- run this first program and then close the window. The type cmd-o. This should produce the printout "open", but it beeps instead.
#lang racket/gui
(define mb (new menu-bar% [parent 'root]))
(define m (new menu% [label "File"] [parent mb]))
(define mi (new menu-item% [parent m] [label "Open"] [shortcut #\o] [callback (λ x (printf "open\n"))]))
(define f (new frame% [label "frame"] [width 100] [height 100]))
(send f show #t)
(yield (make-semaphore 0))
- this second program should show the root menu bar, but when running
racket f.rkt(where f.rkt contains this program) from the command line doesn't do that. It just seems to keep the previous menu bar from whatever app you used to run racket.
#lang racket/gui
(define mb (new menu-bar% [parent 'root]))
(define m (new menu% [label "File"] [parent mb]))
(define mi (new menu-item% [parent m] [label "Open"] [shortcut #\o] [callback (λ x (printf "open\n"))]))
(yield (make-semaphore 0))
- 主要语言
- Racket
- 星标
- 68
- 派生
- 83
- 平均合并
- 12 天 5 小时
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
racket/gui 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
Colorer messes up when given a lexer that supplies nonzero backups可能已有人在做 @otherjoel 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 45/100
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
KnifeLemon/Filee#363 ·
维护者通常 1 天内回复
-
bug good first issue help wanted
难度 2/5 1-3 小时 新手友好度 63/100
marcovisona/arca#5 ·
-
难度 2/5 1-3 小时 新手友好度 66/100
qbittorrent/qBittorrent#25117 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
longbridge/gpui-kit#3620 ·
维护者通常 1 天内回复