Hello Robin & NG,
I don't know if this post should go here or on wxPython-dev. Please correct me if I am doing something wrong by sending this email here.
I have just tried the new test build (just to see how it works, I don’t have any particular “hurry” to get the new version). I got the same unusual behavior of the latest 2.6.2 prerelease built by Kevin, so I think it’s something strange in wxWidgets itself (or maybe in my code ).
The strange thing I found regards wx.StatusBar: it seems impossible to set a different statusbar height (other than the default). If you want to test it, try this small piece of code:
CODE BEGIN
import wx
app = wx.PySimpleApp()
frame = wx.Frame(None, -1, “Ciao”, (400,400))
statusbar = frame.CreateStatusBar()
No Matter Which Height You Specify, The StatusBar
Height Is Reset Back To Default
statusbar.SetMinHeight(150)
statusbar.SetFieldsCount(5)
frame.SetStatusBar(statusbar)
statusbar.SetStatusWidths([100, 200, 120, 130, -1])
frame.Show()
app.MainLoop()
CODE END
The statusbar height is the default value, not 150. This is affecting somewhat EnhancedStatusBar… even if I think that no one is using it but me, it’s probably something that should be at least noted.
Or am I missing something obvious? I didn’t see any particular change in the statusbar behavior in wxWidgets anns… this is Windows 2000/XP, wxPython 2.6.2.1 prerelease (ansi), Python 2.4.1.
Thanks a lot for every suggestion.
Andrea.
“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.virgilio.it/infinity77