On May 12, 2009, at 5:58 PM, Paul McNett wrote:

> Select all the text in getString()
>
> Diff:
> Modified: trunk/dabo/ui/uiwx/__init__.py
> ===================================================================
> --- trunk/dabo/ui/uiwx/__init__.py    2009-05-10 21:38:31 UTC (rev 5210)
> +++ trunk/dabo/ui/uiwx/__init__.py    2009-05-12 22:58:52 UTC (rev 5211)
> @@ -710,6 +710,7 @@
>                       hs.append(self.strVal, 1)
>                       self.Sizer.append(hs, "expand")
>                       dabo.ui.callAfter(self.strVal.setFocus)
> +                     dabo.ui.callAfter(self.strVal.selectAll)
>
>       if defaultValue:
>               kwargs["Value"] = defaultValue


        Curious: why should we always select the text, instead of passing  
SelectOnEntry=True when we want that behavior?


-- Ed Leafe




_______________________________________________
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]

Reply via email to