【发布时间】:2023-02-26 17:26:52
【问题描述】:
我正在使用 DelphiFMX GUI library for Python 并尝试更改标签组件上的字体大小,但它不起作用。
我有以下代码在我的表单上创建表单和标签:
from delphifmx import *
class HelloForm(Form):
def __init__(self, owner):
self.Caption = 'Hello World'
self.Width = 1000
self.Height = 500
self.Position = "ScreenCenter"
self.myLabel = Label(self)
self.myLabel.Parent = self
self.myLabel.Text = "Hello World!"
self.myLabel.Align = "Client"
self.myLabel.TextSettings.Font.Size = 50
self.myLabel.TextSettings.HorzAlign = "Center"
我的“你好世界!”标签应该比它显示的大得多。
【问题讨论】:
标签: python firemonkey