Robin Dunn wrote:
Metal3d wrote:
Hello... again...
So, now i have a strange trouble.
When i put image on a panel, image isn't drawn.I have no error, my widget is drawn, and image dosen't appear
Here is my code:
def __do_layout(self):
imgSizer = wx.BoxSizer(wx.HORIZONTAL)
splashImage = wx.StaticBitmap(self, -1, wx.Bitmap("./icons/splash.png", wx.BITMAP_TYPE_ANY))
imgSizer.Add(splashImage, 0,wx.ADJUST_MINSIZE, 0)
self.SetAutoLayout(True)
self.SetSizer(imgSizer)
imgSizer.Fit(self)
imgSizer.SetSizeHints(self)
self.Layout()
self.Centre()Add a line "print splashImage.GetBestSize()" and see what it says.
Shame on me... i never saw that WX has a SplashScreen widget... i use it now