type of control

Hi,

how can I get the type of a control (TextBox, CheckBox, ...)?
Thanks for every hint.

Andreas

Use type(object) for getting the explicit type.
Use isinstance(object, typ) for checking if an object is of a specific
type.

- Josiah

ยทยทยท

Andreas Kaiser <listen@vocote.de> wrote:

Hi,

how can I get the type of a control (TextBox, CheckBox, ...)?
Thanks for every hint.

Hi Josiah,

Josiah Carlson schrieb:

how can I get the type of a control (TextBox, CheckBox, ...)?
Thanks for every hint.

Use type(object) for getting the explicit type.
Use isinstance(object, typ) for checking if an object is of a specific
type.

Thanks! This was the way I was going. I've forgot to do this into a try except loop. Now it's working well.

Thanks a lot!
Andreas