Hello,
On page 220 of wxPython in Action figure 7.15 shows 'A pull-down choice,
with no selection'. The text field is empty. However when I run exactly
this script, Listing 7.14, the text field gets the initial value of
'zero'. I prefer the blank field, because nothing is selected yet.
Why is there a difference ? And how can i reproduce the book version ?
Thanks,
e
Hello,
On page 220 of wxPython in Action figure 7.15 shows 'A pull-down choice,
with no selection'. The text field is empty. However when I run exactly
this script, Listing 7.14, the text field gets the initial value of
'zero'. I prefer the blank field, because nothing is selected yet.
Why is there a difference ? And how can i reproduce the book version ?
It only works that way on Windows. If you want to have a real empty choice value then you need to have "" in the list of choices.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!