openSUSE 10.3
python 2.5.x
wxPython 2.8.9.1
Dabo svn as of today.
If you want I'll create a entry in tracker.
I get a random error when using dSpinners.
"Name 'dSpinner' is already in use"
But I don't always get it (strange). I haven't been able to strace why I get
the error. But I do know where it comes from dPemMixin.py approximately line
2277. Just place a print statement just before the "raise NameError".
Something like
If name=='dSpinner':
print "hey this is wrong"
IMO the name== dSpinner should not get there - but it does.
The second issue I have is dSpinner is not working correctly when I set the
Min, Max and Increment. First is the float of "0.50" is not working even
when I force a cast to decimal and second is the spinner up and down does not
work with the settings. See below app.
This has been reported (not in this detail) in the past and has continued to
bug me. But I don't know how to fix it. I attach a simple program to demo the
issues.
import dabo
import dabo.dEvents as dEvents
import dabo.dException as dException
dabo.ui.loadUI('wx')
class MainForm(dabo.ui.dForm):
def afterInit(self):
self.Sizer=vs=dabo.ui.dSizer('v')
vs.append(dabo.ui.dLabel(self,Caption='Start Time'))
vs.append(dabo.ui.dSpinner(self,Width = 80))
vs.append(dabo.ui.dLabel(self,Caption='End Time'))
vs.append(dabo.ui.dSpinner(self,RegID='endtimeID',SpinnerWrap =
True,Value=3.00,Min=1.00,Max=9.00,Increment = 0.50,Width = 80))
if __name__ == "__main__":
app = dabo.dApp()
app.MainFormClass = MainForm
app.start()
--
John Fabiani
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]