如何在 Python FMX GUI 应用程序中绘制或创建水平分隔线?

问题描述 投票:0回答:1

如何创建水平分隔线,如按钮上方的屏幕截图所示:

如何在 Python 的 FMX GUI 应用程序中完成

python user-interface firemonkey horizontal-line
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
上的样子:

您显然可以将其移动并放置在您想要的位置,还可以选择大小和其他属性。

© www.soinside.com 2019 - 2024. All rights reserved.