Slightly OT? Properties File

>>>> I'm after a good library/class/etc to handle properties and
>>>
>>> settings
>>>> for my WXPython apps either in simple INI files or trendy XML.
>>>
>>> python .ini file - Google Suche
>>>
>>> The second hit:
>>>
>>> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65334
>>>
>> Another option would be to look into wx.Config, which I use and
>> really like.
>>
>
> Or wx.FileConfig, which will be a INI style file on all platforms.
>

I don't want to sound condescending but I think that if it is not related
to the GUI and it *IS* in python standard libraries.... the python variant
should be used *NOT* the wxPython. Reading a a config file has nothing to
do with the GUI.

I disagree. There are often many ways to skin a cat. People's brains work
in different ways, people come to the list with different backgrounds and
different levels of skill.

If there are three different ways to do something someone asks about, why
not present all three ways and let the person seeking to solve the problem
choose the way that works best for them?

My personal experience is that my brain appears to work more like Robin's
than Guido's. Or maybe it's that Robin has done things in a way that are
more accessible to self-trained, CS-ignorant slobs like me. I don't know
exactly what it is, but I often find the wxPython way easier to wrap my
brain around. If the Python way works better for you, great. But please
don't discourage people from sharing ideas about the ways that might work
better for me.

David

Stephen Waterbury wrote:

Vladimir Ignatov wrote:

Hi Stephen,

Is it possible to avoid selecting the cells of a
column when the column label is left-clicked? I've
tried binding EVT_GRID_LABEL_LEFT_CLICK to a
handler that does self.ClearSelection(), but that
doesn't appear to do anything, and I couldn't find
any other ideas in the wx docs nor by googling.

Just make an "empty" handler. _Does not_ invoke event.Skip(). It works for me (I am on MSW).

I tried that, too -- doesn't work. Hmm ... must be
another GTK problem.

It works fine here. What version of wxPython are you running?

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!