wxPython component name

Hi Mark,

What is the purpose of the name parameter in most component
constructors? Or rather, when would using it be useful?

I almost never used it, but in my database-GUI application I have a
wx.ListCtrl base class which I customize depending on a name I pass to
it, i.e. I call this base class in many different places in my app
with different names: based on the name, I set/unset some attributes
or I call some different methods and so on. It is just another way to
identify a specific class/widget when you have to re-use it dozens of
times in the most different places in your app.
Other than that, I have no idea when you may use it :smiley:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

ยทยทยท

On Dec 13, 2007 8:17 PM, Mark Erbaugh wrote: