当我使用窗口的边界图标时
当我将Delphivcl用于python时,我没有安装Delphi,因此我介绍了表格的问题。这些应用程序按预期工作,只是当我按下表单的边界图标时表单不会最小化的事实。它是正常的,或者仅在我使用的计算机上具有这种行为。我在Windows 10上使用Python 3.10。 以后编辑: 这是示例代码:
from delphivcl import *
def main():
Application.Initialize()
Application.Title = "Template Python GUI Delphi VCL"
app = Form(Application)
app.SetProps(Caption = "Welcome")
app.Show()
FreeConsole()
Application.Run()
app.Destroy()
As I use DelphiVCL for Python where I don't have Delphi installed I stepped on an issue with the forms. The apps work as expected except the fact that the form doesn't minimize when I press the minimize border icon of the form. It is normal or only on the computers I use have this behavior. I'm using Python 3.10 on Windows 10.
Later edit:
Here is the sample code:
from delphivcl import *
def main():
Application.Initialize()
Application.Title = "Template Python GUI Delphi VCL"
app = Form(Application)
app.SetProps(Caption = "Welcome")
app.Show()
FreeConsole()
Application.Run()
app.Destroy()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将以下代码添加到
def main()
函数:添加该代码后,最小化窗口按钮将按预期工作。
application.mainformontaskbar
默认设置为false
,需要手动设置为true
You need to add the following code to your
def main()
function:Once you've added that code, then the minimize window button will work as expected.
Application.MainFormOnTaskBar
is set toFalse
by default and need to manually be set toTrue