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

huangapple go评论105阅读模式
英文:

How to draw or create a Horizontal Divider in a Python FMX GUI App?

问题

如何创建一个如上截图所示的水平分割线,位于按钮之上:

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

如何在 Python 的 FMX GUI 应用程序 中实现这个效果?

英文:

How do I create a Horizontal Divider Line as can be seen in the screenshot above the buttons:

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

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上的样子:

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

你可以根据需要移动和放置它,选择大小和其他属性。

英文:

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:

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

You can obviously move and place it where you want it as well as choose the size and other properties.

huangapple
  • 本文由 发表于 2023年3月7日 03:58:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/75655292.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定