Re: Why doesn't changing window style flags work?
Tim Roberts <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Organization | Providenza & Boekelheide, Inc. |
| Message-ID | <[email protected]> |
ioprst wrote: > > Why does setting the wx.TE_READONLY flag (wx.TE_PASSWORD) for the > wx.TextCtrl window not work? Are you using Windows? Some of this is a limitation of the native widget. On Windows, setting the ES_READONLY style is not enough to have it actually take effect. You need to send the control an EM_SETREADONLY message. The "SetEditable" method does that. Please try that instead. That's the danger of something like wxWidgets. It makes you think the world is a lovely and consistent place, but there's a lot of chaos hiding underneath. -- Tim Roberts, [email protected] Providenza & Boekelheide, Inc. -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/3c1693ea-24e0-845e-3da7-9de0a2445bb6%40probo.com.
smime.p7s
(application/pkcs7-signature, 3.3 KB) - not displayed