华丽的布局分为3个面板,以创建自定义布局

2024-09-28 22:13:03 发布

您现在位置:Python中文网/ 问答频道 /正文

有什么办法可以把版面分成三份吗?我从网上得到这个片段

self.window.set_layout({
    "cols": [0, 0.5, 1],
    "rows": [0, 0.5, 1],
    "cells": [[0, 0, 1, 1], [1, 0, 2, 1],
              [0, 1, 1, 2], [1, 1, 2, 2]]
})

但这会一分为二。我想这样 enter image description here

有什么想法吗?我试着改变这些值,但没有成功


Tags: selfwindowrowscolslayoutsetcells办法
1条回答
网友
1楼 · 发布于 2024-09-28 22:13:03

您的键映射设置(首选项->键绑定用户->添加内括号

{ "keys": ["alt+shift+7"],
    "caption": "2 cols (full - 3)",
    "command": "set_layout",
    "args":
        { "cols": [0.0, 0.5, 1.0],
          "rows": [0.0, 0.33, 0.66, 1.0],
          "cells": [ [0, 0, 1, 3], [1, 0, 2, 1], [1, 1, 2, 2], [1, 2, 2, 3] ]
        }
}

崇高的视野:

enter image description here

这种结构有助于你在崇高的文本中做出任何设计。在

^{pr2}$

相关问题 更多 >