Peter Wurmsdobler wrote:
and the SpinLog
control, which does not work yet.
from wxPython.wx import *
class wxSpinFloat(wxBoxSizer):
def __init__(self,parent,ID=-1,minval=0.0,maxval=1.0,initial=0.0,rate=1.0):
wxBoxSizer.__init__(self,wxHORIZONTAL)
Hmm, It is an Odd choice to derive this from wxBoxSizer. You are not
making a new type of Sizer, you are making a new type of wxWindow. You
probably want to derive from wxWindow, and maybe wxPanel, not
wxBoxSizer. You probably want to use a wxBoxSizer to do your layout
instead.
It's confusing, as a wxWindows is a container, and youd think that a
Sizer would be a container, but it's not, it's just a object that lays
things out (and Sizes them, of course).
As said, it does not work under
windows correctly.
Lucky for you, I've got Windows booted up today, which is a rare
occasion. I'll take a look.
-Chris
···
-------
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov