[wx-dev] [wxMac] spell checker off in wxTextCtrl by default ?

Stefan Csomor csomor at advancedconcepts.ch
Thu Jun 14 16:23:21 PDT 2007


>
>>> As a side note, I really, really wish we had the ability to pass
>>> in some sort of wxSettings data structure to a class constructor
>>> as an extension of the flags system we currently use, using an
>>> approach similar to wxSystemOptions. We could even have a static
>>> wxWindow::SetDefaultSettings(wxSettings) which would effectively
>>> allow us to customize the default settings each control is created
>>> with similar to wxSystemOptions, but in IMHO a more logical place
>>> and more flexible too. There is frequently debate when adding
>>> flags about them filling up, and IMHO we really need an
>>> alternative without such limitations.
>>>       =

>> Or use flags that are objects, not bits in an integer.  With
>> operator overloading it could be made to behave nearly the same as
>> the bits do today, but instead of an integer the widget would be
>> getting an instance of some flags container class that can be asked
>> if a particular flag is set.  There would then be no limits on how
>> many flags are possible, and we could even eventually have some
>> sort of validation checks that asserts if a particular flag is not
>> applicable to a specific widget type.
>>     =

>
> I like this idea. What about just re-using the wxSystemOptions API
> for this?
>
> The only possible issue I see with this is that the API isn't
> particularly Python-friendly, but if we could have a tuple or dict
> conversion as is done with wxSize, etc. then it would actually be
> quite nice. e.g. wx.TextCtrl(parent, -1, settings=3D{"check_spelling":
> True, "multiline":True}) In fact, I dare say that something like this
> might get us called more "Pythonic"... ;-)
>   =

when the extended RTTI is available on all platforms, then we might =

arrive with a proper templatized variant at simple dictionaries / =

parameter tuples, that's what I meant with a dictionary for Create as =

parameter

Best,

Stefan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20070615/d0cd2=
dfc/attachment.htm


More information about the wx-dev mailing list