Hello NG,
I have updated FloatSpin with most of the suggestions from Alexander,
except the "changing the value highlighted with the mouse", because I am
still not convinced about it.
However, these are the news:
- Now Shift, Ctrl and Alt keys work also with the SpinButton;
- All the keys should work without errors (remembering the error with the
<ESC> key...);
- The demo has now the possibility to set the increment for FloatSpin;
- FloatSpin raises an error if increment < 1/pow(10, digits)
You can find the new version here:
http://xoomer.virgilio.it/infinity77/eng/freeware.html#floatspin
As other news (and Alexander will probably be happier now ), I have
updated my web page and splitted it in different html pages, to avoid
useless reloading of the same page. You can refer to the main page as:
http://xoomer.virgilio.it/infinity77/eng/freeware.html
All the old links (from old messages in the wxPython-users list) should
still work.
Thanks a lot for all your comments.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77
Hi
- Now Shift, Ctrl and Alt keys work also with the SpinButton;
hmm ... No it doesn't work for me.
But I think, you've uploaded an old version, cause in the functions
OnSpinUp and OnSpinDown there is just no code that handles the keys...
But I've found another bug in the demo
The function OnSetFont should look like this...
def OnSetFont(self, event):
[...]
if dlg.ShowModal() == wx.ID_OK:
data = dlg.GetFontData()
font = data.GetChosenFont()
colour = data.GetColour()
# You can't change the font, if there is no new font data
floatspin.SetFont(font)
floatspin.GetTextCtrl().SetForegroundColour(colour)
floatspin.Refresh()
# Don't destroy the dialog until you get everything you need from the
# dialog!
dlg.Destroy()
As other news (and Alexander will probably be happier now ), I have
updated my web page and splitted it in different html pages, to avoid
useless reloading of the same page.
Thanks that makes life much easier At least until I get some faster
connection... *grrr*
cu boesi
···
Am 20.11.2005 21:35:56 schrieb Andrea Gavana:
--
So stellt sich der Atheist doch die
Unsterblichkeit vor - Lokalverbot
auf dem Friedhof.