Thread: [Boa Constr] wxMaskTextctrl
Status: Beta
Brought to you by:
riaan
From: acidblue <ac...@ea...> - 2004-05-26 04:17:01
|
Does Boa have mask Edit contrls? I'm trying to make a textctrl formated for entering the date. I looked in preferences and didn't see it. |
From: Oleg D. <ru...@kh...> - 2004-05-26 07:24:42
|
acidblue wrote: > Does Boa have mask Edit contrls? Yes, it supports masked controls in version 0.2.8. But you have to download updated versions of controls themselves from boa site. > I'm trying to make a textctrl formated for entering the date. > I looked in preferences and didn't see it. Anyway I prefer to not use masked controls and use regular text controls with validators. -- Oleg Deribas, http://copi.ru/14000/ |
From: acidblue <ac...@ea...> - 2004-05-26 18:34:05
|
Ok I have ver. 0.2.8, but where on the Boa site do I download new controls? Been to thier site several times don't see it. Is it in cvs? if so where? ----- Original Message ----- From: "Oleg Deribas" <ru...@kh...> To: <boa...@li...> Sent: Wednesday, May 26, 2004 12:15 AM Subject: Re: [Boa Constr] wxMaskTextctrl > acidblue wrote: > > > Does Boa have mask Edit contrls? > > Yes, it supports masked controls in version 0.2.8. But you have to > download updated versions of controls themselves from boa site. > > > I'm trying to make a textctrl formated for entering the date. > > I looked in preferences and didn't see it. > > Anyway I prefer to not use masked controls and use regular text controls > with validators. > > -- > Oleg Deribas, > http://copi.ru/14000/ > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users |
From: Werner F. B. <wer...@fr...> - 2004-05-27 12:20:15
|
I think if you have wxPython 2.4.2.4 then the correct maskedit.py (my version is 1.1.2.9) etc is included. See you Werner acidblue wrote: > Ok I have ver. 0.2.8, but where on the Boa site do I download new controls? > Been to thier site several times don't see it. Is it in cvs? if so where? > > ----- Original Message ----- > From: "Oleg Deribas" <ru...@kh...> > To: <boa...@li...> > Sent: Wednesday, May 26, 2004 12:15 AM > Subject: Re: [Boa Constr] wxMaskTextctrl > > > >>acidblue wrote: >> >> >>>Does Boa have mask Edit contrls? >> >>Yes, it supports masked controls in version 0.2.8. But you have to >>download updated versions of controls themselves from boa site. >> >> >>>I'm trying to make a textctrl formated for entering the date. >>>I looked in preferences and didn't see it. >> >>Anyway I prefer to not use masked controls and use regular text controls >>with validators. >> >>-- >>Oleg Deribas, >>http://copi.ru/14000/ >> >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: Oracle 10g >>Get certified on the hottest thing ever to hit the market... Oracle 10g. >>Take an Oracle 10g class now, and we'll give you the exam FREE. >>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click >>_______________________________________________ >>Boa-constructor-users mailing list >>Boa...@li... >>https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click |
From: Oleg D. <ru...@kh...> - 2004-05-27 13:05:39
|
Werner F. Bruhin wrote: > I think if you have wxPython 2.4.2.4 then the correct maskedit.py (my > version is 1.1.2.9) etc is included. Riaan think different: http://sourceforge.net/mailarchive/message.php?msg_id=6930284 -- Oleg Deribas, http://copi.ru/14000/ |
From: Werner F. B. <wer...@fr...> - 2004-05-27 17:21:46
|
Oleg, I am not 100% sure, but I believe that Riaan's msg pre-dated the release of 2.4.2.4. At the time I did quit a bit of testing for Will Sadkin on the maskedit stuff and as I use Boa also with Riaan to check the integration. I use maskedit extensively for both textctrl and combobox and the version I currently have seems to work fine for me - obviously that does NOT mean that it all works for someone else. See you Werner Oleg Deribas wrote: > Werner F. Bruhin wrote: > >> I think if you have wxPython 2.4.2.4 then the correct maskedit.py (my >> version is 1.1.2.9) etc is included. > > > Riaan think different: > http://sourceforge.net/mailarchive/message.php?msg_id=6930284 > |
From: Oleg D. <ru...@kh...> - 2004-05-28 07:07:51
|
Werner F. Bruhin wrote: > I am not 100% sure, but I believe that Riaan's msg pre-dated the release > of 2.4.2.4. I'm interested myself, so I did the search on archives and found these: 02 Oct 2003 wxPython 2.4.2.4 announcement: http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?1:mss:78:200310:enbnhnkpgfojjhnihnai and 15 Dec 2003 boa 0.2.8 CVS update announcement: http://sourceforge.net/mailarchive/message.php?msg_id=6745954 > I use maskedit extensively for both textctrl and combobox and the > version I currently have seems to work fine for me - obviously that does > NOT mean that it all works for someone else. Can you check following? Create maskededit control with mask, for example, 'XXX', and try to paste from clipboard something longer than 3 chars. I have exception. These controls do not support locale, also. Maybe these bugs fixed in wxPython 2.5, but I'm using boa, so I can't use 2.5... -- Oleg Deribas, http://copi.ru/14000/ |
From: Werner F. B. <wer...@fr...> - 2004-05-28 17:47:30
|
Hi Oleg, Oleg Deribas wrote: > Werner F. Bruhin wrote: > >> I am not 100% sure, but I believe that Riaan's msg pre-dated the >> release of 2.4.2.4. > > > I'm interested myself, so I did the search on archives and found these: > > 02 Oct 2003 wxPython 2.4.2.4 announcement: > http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?1:mss:78:200310:enbnhnkpgfojjhnihnai > > > and 15 Dec 2003 boa 0.2.8 CVS update announcement: > http://sourceforge.net/mailarchive/message.php?msg_id=6745954 > That means that I must have gotten my version from Will at the time, but I can't find the e-mail anymore as I cleaned out a while ago. If mine (# RCS-ID: $Id: maskededit.py,v 1.1.2.9 2003/10/01 19:30:46 RD Exp $) is newer I can post it here if you want. >> I use maskedit extensively for both textctrl and combobox and the >> version I currently have seems to work fine for me - obviously that >> does NOT mean that it all works for someone else. > > > Can you check following? Create maskededit control with mask, for > example, 'XXX', and try to paste from clipboard something longer than 3 > chars. I have exception. On mine I can paste no problem 3 or less chars, when I try to paste more then three nothing happens. According to doc it should raise a ValueError exception - see line 348 and following in maskedit.py That looks like a bug/issue with maskededit - what version are you using? > These controls do not support locale, also. > > Maybe these bugs fixed in wxPython 2.5, but I'm using boa, so I can't > use 2.5... > Same here, due to Boa, but actually I wouldn't have time yet anyhow. I will wait for 2.6 and hopefully by then Riaan will have gotten around to update Boa. See you Werner |
From: Oleg D. <ru...@kh...> - 2004-05-28 18:24:04
Attachments:
wxApp1.py
wxFrame1.py
|
Hello Werner, > That means that I must have gotten my version from Will at the time, but > I can't find the e-mail anymore as I cleaned out a while ago. > > If mine (# RCS-ID: $Id: maskededit.py,v 1.1.2.9 2003/10/01 > 19:30:46 RD Exp $) is newer I can post it here if you want. I have the same file which is 355389 bytes long. It is version provided by Riaan. >> Can you check following? Create maskededit control with mask, for >> example, 'XXX', and try to paste from clipboard something longer than >> 3 chars. I have exception. > On mine I can paste no problem 3 or less chars, when I try to paste more > then three nothing happens. Hmm. It is strange. I've created simple BoaApp with wxMaskedTextCtrl and set mask to 'X'. All other properties have default values. I've attached sources. Please, run it and paste something longer than 1 char from clipboard, then press Tab and then close the window. When I press Tab, I have this exception: Traceback (most recent call last): File "D:\PYTHON23\lib\site-packages\wxPython\lib\maskededit.py", line 2707, in _OnChar keep_processing = self._keyhandlers[key](event) File "D:\PYTHON23\lib\site-packages\wxPython\lib\maskededit.py", line 3506, in _OnChangeField field = self._FindField(sel_to) File "D:\PYTHON23\lib\site-packages\wxPython\lib\maskededit.py", line 2895, in _FindField raise IndexError('position %s out of range of control' % str(pos)) IndexError: position 113 out of range of control And when I close the window I have two another IndexError exceptions. > According to doc it should raise a ValueError exception - see line 348 > and following in maskedit.py It should raise a ValueError exception when I call SetValue() from my program. But I just press Shift+Ins adn then press Tab. > That looks like a bug/issue with maskededit - what version are you using? It looks like I have the same version as you... -- Oleg Deribas, http://copi.ru/14000/ |
From: Werner F. B. <wer...@fr...> - 2004-05-30 07:35:08
|
Hi Oleg, Oleg Deribas wrote: > Hello Werner, > >> That means that I must have gotten my version from Will at the time, >> but I can't find the e-mail anymore as I cleaned out a while ago. >> >> If mine (# RCS-ID: $Id: maskededit.py,v 1.1.2.9 2003/10/01 >> 19:30:46 RD Exp $) is newer I can post it here if you want. > > > I have the same file which is 355389 bytes long. > It is version provided by Riaan. > >>> Can you check following? Create maskededit control with mask, for >>> example, 'XXX', and try to paste from clipboard something longer than >>> 3 chars. I have exception. >> >> On mine I can paste no problem 3 or less chars, when I try to paste >> more then three nothing happens. > > > Hmm. It is strange. I've created simple BoaApp with wxMaskedTextCtrl and > set mask to 'X'. All other properties have default values. > I've attached sources. Please, run it and paste something longer than 1 > char from clipboard, then press Tab and then close the window. > > When I press Tab, I have this exception: > > Traceback (most recent call last): > File "D:\PYTHON23\lib\site-packages\wxPython\lib\maskededit.py", line > 2707, in _OnChar > keep_processing = self._keyhandlers[key](event) > File "D:\PYTHON23\lib\site-packages\wxPython\lib\maskededit.py", line > 3506, in _OnChangeField > field = self._FindField(sel_to) > File "D:\PYTHON23\lib\site-packages\wxPython\lib\maskededit.py", line > 2895, in _FindField > raise IndexError('position %s out of range of control' % str(pos)) > IndexError: position 113 out of range of control > > And when I close the window I have two another IndexError exceptions. Not for me?! > >> According to doc it should raise a ValueError exception - see line 348 >> and following in maskedit.py > > > It should raise a ValueError exception when I call SetValue() from my > program. But I just press Shift+Ins adn then press Tab. > What OP system are you running? I am on Win XP Pro and for standard clipboard copy do CTRL-V, but I get same result if I use the Corel Clipboard which is configured to use SHIFT+INS. >> That looks like a bug/issue with maskededit - what version are you using? > > > It looks like I have the same version as you... > > Do you get the same problem when you do paste in the demo? See you Werner |
From: Riaan B. <riaan@e.co.za> - 2004-06-02 14:38:32
|
Hi Werner, Werner F. Bruhin wrote: >> And when I close the window I have two another IndexError exceptions. > > > Not for me?! Please mail me the version you have, I'll check it against the 0.2.8 release version. The CVS revision of the file does not necessary mean that much in this case. Thanks, Riaan. |
From: Riaan B. <riaan@e.co.za> - 2004-06-02 14:38:17
|
Hi Oleg, I also get this exception, but it's certainly a maskededit issue and not really a Boa problem. The same generated code does not seem to cause that error under wxPython 2.5, so it looks like that version of maskededit fixes the problem. The maskedit 2.5 code has already been updated so doesn't work under 2.4. Maybe we can get a fixed version from before the code update via some cvs revision, I'll try. Thanks, Riaan. Oleg Deribas wrote: > Hello Werner, > >> That means that I must have gotten my version from Will at the time, >> but I can't find the e-mail anymore as I cleaned out a while ago. >> >> If mine (# RCS-ID: $Id: maskededit.py,v 1.1.2.9 2003/10/01 >> 19:30:46 RD Exp $) is newer I can post it here if you want. > > > I have the same file which is 355389 bytes long. > It is version provided by Riaan. > >>> Can you check following? Create maskededit control with mask, for >>> example, 'XXX', and try to paste from clipboard something longer than >>> 3 chars. I have exception. >> >> On mine I can paste no problem 3 or less chars, when I try to paste >> more then three nothing happens. > > > Hmm. It is strange. I've created simple BoaApp with wxMaskedTextCtrl and > set mask to 'X'. All other properties have default values. > I've attached sources. Please, run it and paste something longer than 1 > char from clipboard, then press Tab and then close the window. > > When I press Tab, I have this exception: > > Traceback (most recent call last): > File "D:\PYTHON23\lib\site-packages\wxPython\lib\maskededit.py", line > 2707, in _OnChar > keep_processing = self._keyhandlers[key](event) > File "D:\PYTHON23\lib\site-packages\wxPython\lib\maskededit.py", line > 3506, in _OnChangeField > field = self._FindField(sel_to) > File "D:\PYTHON23\lib\site-packages\wxPython\lib\maskededit.py", line > 2895, in _FindField > raise IndexError('position %s out of range of control' % str(pos)) > IndexError: position 113 out of range of control > > And when I close the window I have two another IndexError exceptions. > >> According to doc it should raise a ValueError exception - see line 348 >> and following in maskedit.py > > > It should raise a ValueError exception when I call SetValue() from my > program. But I just press Shift+Ins adn then press Tab. > >> That looks like a bug/issue with maskededit - what version are you using? > > > It looks like I have the same version as you... > > > ------------------------------------------------------------------------ > > #!/usr/bin/env python > #Boa:App:BoaApp > > from wxPython.wx import * > > import wxFrame1 > > modules ={'wxFrame1': [1, 'Main frame of Application', 'wxFrame1.py']} > > class BoaApp(wxApp): > def OnInit(self): > wxInitAllImageHandlers() > self.main = wxFrame1.create(None) > self.main.Show() > self.SetTopWindow(self.main) > return True > > def main(): > application = BoaApp(0) > application.MainLoop() > > if __name__ == '__main__': > main() > > > ------------------------------------------------------------------------ > > #Boa:Frame:wxFrame1 > > from wxPython.wx import * > from wxPython.lib.maskededit import wxMaskedTextCtrl > > def create(parent): > return wxFrame1(parent) > > [wxID_WXFRAME1, wxID_WXFRAME1MASKEDTEXTCTRL1, > ] = map(lambda _init_ctrls: wxNewId(), range(2)) > > class wxFrame1(wxFrame): > def _init_ctrls(self, prnt): > # generated method, don't edit > wxFrame.__init__(self, id=wxID_WXFRAME1, name='', parent=prnt, > pos=wxPoint(472, 339), size=wxSize(217, 84), > style=wxDEFAULT_FRAME_STYLE, title='wxFrame1') > self.SetClientSize(wxSize(209, 57)) > > self.maskedTextCtrl1 = wxMaskedTextCtrl(id=wxID_WXFRAME1MASKEDTEXTCTRL1, > name='maskedTextCtrl1', parent=self, pos=wxPoint(0, 0), > size=wxSize(209, 57), style=0, value='') > self.maskedTextCtrl1.SetMask('X') > self.maskedTextCtrl1.SetAutoformat('') > self.maskedTextCtrl1.SetDatestyle('MDY') > self.maskedTextCtrl1.SetFormatcodes('') > self.maskedTextCtrl1.SetDescription('') > self.maskedTextCtrl1.SetExcludeChars('') > self.maskedTextCtrl1.SetValidRegex('') > > def __init__(self, parent): > self._init_ctrls(parent) > > > ------------------------------------------------------------------------ > > Scanned by evaluation version of Dr.Web antivirus Daemon > http://drweb.ru/unix/ > |