Inno setup编译器如何在应用加载期间设置启动图像 [英] Inno setup compiler How to set launching image during app loading
问题描述
当用户启动使用inno setup编译器编译的应用程序
时,如何启用显示加载图片?
How do I enable showing a loading image when user launches my app compiled with inno setup compiler?
例如,如果您启动ms word,主应用会在
完全加载之前看到加载图像。
For example if you launch ms word, you will see a loading image before the main app loads in full.
可以用Inno Setup完成吗?
Can this be done with Inno Setup?
我希望我的应用像大多数应用一样在完全加载之前显示徽标吗?
I want my app to show a logo before loading fully, just as most app do?
谢谢
推荐答案
我已经解决了上述问题:)。由于我将wxpython用作GUI,因此wxpython演示软件中提供了SplashScreen和AdvancedSplash上的演示代码。
I have gotten solution to my question above :) . Since I used wxpython for my GUI, there is a demo code on SplashScreen and AdvancedSplash things available within wxpython demo software.
顺便说一下@TLama,谢谢
这里是工作代码;
#For wx.SplashScreen
bitmap = wx.Bitmap('splashImage.png', wx.BITMAP_TYPE_PNG)
splash = wx.SplashScreen(bitmap, wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT, 10000, None, style = wx.SIMPLE_BORDER | wx.STAY_ON_TOP | wx.SPLASH_CENTRE_ON_PARENT)
wx.Yield()
#wx.AdvancedSplash
import wx
import wx.lib.agw.advancedsplash as AS
app = wx.App(0)
frame = wx.Frame(None, -1, "AdvancedSplash Test")
imagePath = "my_splash_image.png"
bitmap = wx.Bitmap(imagePath, wx.BITMAP_TYPE_PNG)
shadow = wx.WHITE
splash = AS.AdvancedSplash(frame, bitmap=bitmap, timeout=5000, agwStyle=AS.AS_TIMEOUT | AS.AS_CENTER_ON_PARENT | AS.AS_SHADOW_BITMAP, shadowcolour=shadow)
app.MainLoop()
这篇关于Inno setup编译器如何在应用加载期间设置启动图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!