英文:
How to draw or create a Horizontal Divider in a Python FMX GUI App?
问题
如何创建一个如上截图所示的水平分割线,位于按钮之上:
如何在 Python 的 FMX GUI 应用程序 中实现这个效果?
英文:
How do I create a Horizontal Divider Line as can be seen in the screenshot above the buttons:
How can this be accomplished in an FMX GUI App for Python?
答案1
得分: 0
有一个名为Line
的组件,你可以创建它。我在这里创建了一个:
self.myLine = Line(self)
self.myLine.Parent = self
self.myLine.Align = "Center"
self.myLine.Position.X = 100
self.myLine.Position.Y = 100
self.myLine.Width = 1000
self.myLine.Height = 5
self.myLine.LineType = "Top"
这是它在Form
上的样子:
你可以根据需要移动和放置它,选择大小和其他属性。
英文:
There's a Line
component that you can create. I've created one here:
self.myLine = Line(self)
self.myLine.Parent = self
self.myLine.Align = "Center"
self.myLine.Position.X = 100
self.myLine.Position.Y = 100
self.myLine.Width = 1000
self.myLine.Height = 5
self.myLine.LineType = "Top"
And here's how it looks on a Form
:
You can obviously move and place it where you want it as well as choose the size and other properties.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论