Hello NG,
1) Regarding the problem arose yesterday about wxStaticBitmap, on Windows
2000 it is still there. Icons added to wxStaticBitmap via:bmp = wx.Icon("myicon.ico", wx.BITMAP_TYPE_ICO)
mystb = wx.StaticBitmap(self, -1, bmp)have the correct background (the parent background, which means that their
transparency is maintained). Icons loaded via:imagelist = wx.ImageList(16,16)
imagelist.AddIcon(wx.Icon("myicon.ico", wx.BITMAP_TYPE_ICO))
mystb = wx.StaticBitmap(self, -1, imagelist.GetBitmap(0))do *not* have the correct background. It is black, instead of transparent.
This is on Windows 2000, Python 2.3.4 (or 2.3.5) and wxPython 2.6.0.0. On
XP everything is working as it should.
Does imagelist.GetBitmap(0).GetMask() return a mask or None? Does loading it like this make any difference?
bmp = wx.Bitmap("myicon.ico")
imagelist.Add(bmp)
Does bmp.GetMask() before adding to the image list give you anything?
2) I am using wxFileHistory. I have googled around and found some info (not
really clear, however) about this question:- Why the first item added to the file menu by wx.FileHistory does not have
full path?!? It shows only the filename, and this is (in my opinion) the
correct behavior: what happens if I change directory in my application and
I want to reload it? What happens if I save the filelist in a config file
using wx.FileHistory.Save() and tomorrow I load it using
wx.FileHistory.Load from a different directory? I think it will crash.Reading the few comments I found, there is no way to overwrite this
behavior. It is directly build on wxWindows, so I wouldn't expect a lot of
"reasonable" answers from wx-dev.But probably I am missing something really obvious, as usual, and it is
everything my fault
You always need to put the full path into the file history, but it will usually display those that are in the app's current working directory without the path. When you change directories then the items that used to display without a path will then be shown with the path. You can try this in the demo. Right-click and select a file. Then right click again and select a file in a different directory, and repeat a few times. Then right-click and select a file aready on the list. Right-click once more and you'll see that file and all others that are in the same folder will be shown without a path. When you select a file already in the history then you get the full path even if it is displayed without one.
ยทยทยท
andrea.gavana@agip.it wrote:
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!