我有一个小示例脚本,其中有一个圆(半径:40),它会落到地面上。但是当我将其半径增加到 80 时,似乎只有圆的图形发生了变化,但物理原理没有变化:
<html>
<body></body>
</html>
<script src="matter.js"></script>
<script>
var Engine = Matter.Engine,
World = Matter.World,
Bodies = Matter.Bodies
engine = Engine.create(document.body,{render:{options:{wireframes: false}}})
engine.render.options.background = "#7f7f7f"
ground = Bodies.rectangle(400,590,800,20,{isStatic:true})
World.add(engine.world, ground)
circle = Bodies.circle(400,20,40,{render:{fillStyle:"#0000ff"}})
World.add(engine.world, circle)
Engine.run(engine)
setTimeout(increaseRadius, 1500)
function increaseRadius(){
circle.circleRadius = 80
}
</script>
Run Code Online (Sandbox Code Playgroud)
我想要一个表格,但是当我意识到 python 中没有表格时,我决定用两个列表框来修复它。
关键是,我不希望它们之间有边界。
所以我的问题是:如何从Python中的Tk列表框中删除边框?
即使它会变白我有一个解决方案......