Hello all,
Pardon my newness but is there a simple method/class to track the '.IsModified()' property of ALL of the text controls widgets on a panel (20) ?
I know I can bind each one, I'm just wondering if there is a way to monitor them all at once. I don't care which one was modified I just need to know that it was modified.
Thanks,
Scott
···
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.336 / Virus Database: 267.8.15/49 - Release Date: 7/14/2005
Hello all,
Pardon my newness but is there a simple method/class to track the
'.IsModified()' property of ALL of the text controls widgets on a panel
(20) ?
I know I can bind each one, I'm just wondering if there is a way to
monitor them all at once. I don't care which one was modified I just
need to know that it was modified.
well, the only way I am aware of, is that you can store some kind of self.mytextctrls
list of TextCtrls, and then do something like:
for txt in self.textctrls:
txt.Bind(wx.EVT_CHAR, self.OnChar)
or whatever event you want.
But probably there are better ways that other will suggest you.
Hello all,
Pardon my newness but is there a simple method/class to track the
'.IsModified()' property of ALL of the text controls widgets on a panel
(20) ?
I know I can bind each one, I'm just wondering if there is a way to
monitor them all at once. I don't care which one was modified I just
need to know that it was modified.
Text events inherit from wx.CommandEvent, which means that they will
propagate upward. Simply place the event binding on your panel,
instead.
Text events inherit from wx.CommandEvent, which means that they will
> propagate upward. Simply place the event binding on your panel,
> instead.
Are you saying Bind the Panel to the EVT_CHAR ?
Do I write like this?
self.Bind(wx.EVT_CHAR, self.onChar)
scott
Chris Mellon wrote:
···
On 7/15/05, scott <scott@ebbyfish.com> wrote:
Hello all,
Pardon my newness but is there a simple method/class to track the
'.IsModified()' property of ALL of the text controls widgets on a panel
(20) ?
I know I can bind each one, I'm just wondering if there is a way to
monitor them all at once. I don't care which one was modified I just
need to know that it was modified.
Text events inherit from wx.CommandEvent, which means that they will
propagate upward. Simply place the event binding on your panel,
instead.
Thanks,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.336 / Virus Database: 267.8.15/49 - Release Date: 7/14/2005
> Text events inherit from wx.CommandEvent, which means that they will
> propagate upward. Simply place the event binding on your panel,
> instead.
Are you saying Bind the Panel to the EVT_CHAR ?
Do I write like this?
self.Bind(wx.EVT_CHAR, self.onChar)
scott
Exactly, but you want EVT_TEXT instead of EVT_CHAR
···
On 7/15/05, scott <scott@ebbyfish.com> wrote:
Chris Mellon wrote:
> On 7/15/05, scott <scott@ebbyfish.com> wrote:
>
>>Hello all,
>>Pardon my newness but is there a simple method/class to track the
>>'.IsModified()' property of ALL of the text controls widgets on a panel
>>(20) ?
>>
>>I know I can bind each one, I'm just wondering if there is a way to
>>monitor them all at once. I don't care which one was modified I just
>>need to know that it was modified.
>
>
> Text events inherit from wx.CommandEvent, which means that they will
> propagate upward. Simply place the event binding on your panel,
> instead.
>
>
>>Thanks,
>>
>>Scott
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>
>
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.336 / Virus Database: 267.8.15/49 - Release Date: 7/14/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
> Text events inherit from wx.CommandEvent, which means that they will
> propagate upward. Simply place the event binding on your panel,
> instead.
Are you saying Bind the Panel to the EVT_CHAR ?
Do I write like this?
self.Bind(wx.EVT_CHAR, self.onChar)
scott
Exactly, but you want EVT_TEXT instead of EVT_CHAR
Chris Mellon wrote:
On 7/15/05, scott <scott@ebbyfish.com> wrote:
Hello all,
Pardon my newness but is there a simple method/class to track the
'.IsModified()' property of ALL of the text controls widgets on a panel
(20) ?
I know I can bind each one, I'm just wondering if there is a way to
monitor them all at once. I don't care which one was modified I just
need to know that it was modified.
Text events inherit from wx.CommandEvent, which means that they will
propagate upward. Simply place the event binding on your panel,
instead.
Thanks,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.336 / Virus Database: 267.8.15/49 - Release Date: 7/14/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.336 / Virus Database: 267.8.15/49 - Release Date: 7/14/2005