You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(116) |
Sep
(146) |
Oct
(78) |
Nov
(69) |
Dec
(70) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(188) |
Feb
(142) |
Mar
(143) |
Apr
(131) |
May
(97) |
Jun
(221) |
Jul
(127) |
Aug
(89) |
Sep
(83) |
Oct
(66) |
Nov
(47) |
Dec
(70) |
2003 |
Jan
(77) |
Feb
(91) |
Mar
(103) |
Apr
(98) |
May
(134) |
Jun
(47) |
Jul
(74) |
Aug
(71) |
Sep
(48) |
Oct
(23) |
Nov
(37) |
Dec
(13) |
2004 |
Jan
(24) |
Feb
(15) |
Mar
(52) |
Apr
(119) |
May
(49) |
Jun
(41) |
Jul
(34) |
Aug
(91) |
Sep
(169) |
Oct
(38) |
Nov
(32) |
Dec
(47) |
2005 |
Jan
(61) |
Feb
(47) |
Mar
(101) |
Apr
(130) |
May
(51) |
Jun
(65) |
Jul
(71) |
Aug
(96) |
Sep
(28) |
Oct
(20) |
Nov
(39) |
Dec
(62) |
2006 |
Jan
(13) |
Feb
(19) |
Mar
(18) |
Apr
(34) |
May
(39) |
Jun
(50) |
Jul
(63) |
Aug
(18) |
Sep
(37) |
Oct
(14) |
Nov
(56) |
Dec
(32) |
2007 |
Jan
(30) |
Feb
(13) |
Mar
(25) |
Apr
(3) |
May
(15) |
Jun
(42) |
Jul
(5) |
Aug
(17) |
Sep
(6) |
Oct
(25) |
Nov
(49) |
Dec
(10) |
2008 |
Jan
(12) |
Feb
|
Mar
(17) |
Apr
(18) |
May
(12) |
Jun
(2) |
Jul
(2) |
Aug
(6) |
Sep
(4) |
Oct
(15) |
Nov
(45) |
Dec
(9) |
2009 |
Jan
(1) |
Feb
(3) |
Mar
(18) |
Apr
(8) |
May
(3) |
Jun
|
Jul
(13) |
Aug
(2) |
Sep
(1) |
Oct
(9) |
Nov
(13) |
Dec
|
2010 |
Jan
(2) |
Feb
(3) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
(4) |
2011 |
Jan
|
Feb
|
Mar
(10) |
Apr
(44) |
May
(9) |
Jun
(22) |
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
|
Jul
(3) |
Aug
(8) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Brian D. <deb...@ho...> - 2005-02-28 14:31:07
|
Hi there, Thanks Alex the code works fine and it really is easier to read. But requesting more help how do I mix the text length and the numbers only validation??? Thanks in advance. Brian _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Alex T. <al...@tw...> - 2005-02-28 14:25:55
|
Brian Debuire wrote: > Hi there, > > I was working on my text length limited widget, also I worked on a > text field that only accepts numbers, and this is my code, hope it helps. > > > def on_initialize(self, event): > self.type = True Unnecessary (at least in the code shown here) - every path through on_txtText_keyPress sets it before using it. Is it used elsewhere ? > > def on_txtText_keyPress(self, event): > keyCode = event.keyCode > if len(self.components.txtText.text) == 10: > if keyCode in [8,316,317,318,319,127,314,315]: > self.type = True > else: > self.type = False > else: > self.type = True > if self.type: > event.Skip() > else: > self.type = True > > > Any suggestions or ideas on how to optmize this code, specially the > text leght validation, are more than welcome. I may be missing some subtlety - but why not simply > def on_txtText_keyPress(self, event): > if len(self.components.txtText.text) < 10 or event.keyCode in > [8,316,317,318,319,127,314,315]: > event.Skip() btw - I don't think this will be significantly more efficient - but I find it easier to read -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27/02/2005 |
From: Brian D. <deb...@ho...> - 2005-02-28 13:37:07
|
Hi there, I was working on my text length limited widget, also I worked on a text field that only accepts numbers, and this is my code, hope it helps. def on_initialize(self, event): self.type = True def on_txtText_keyPress(self, event): keyCode = event.keyCode if keyCode in range(48,58) or keyCode in [8,316,317,318,319,127,314,315]: event.Skip() def on_txtText_keyPress(self, event): keyCode = event.keyCode if len(self.components.txtText.text) == 10: if keyCode in [8,316,317,318,319,127,314,315]: self.type = True else: self.type = False else: self.type = True if self.type: event.Skip() else: self.type = True Any suggestions or ideas on how to optmize this code, specially the text leght validation, are more than welcome. Regards, Brian _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Brian D. <deb...@ho...> - 2005-02-28 13:36:39
|
Hi there, I was working on my text length limited widget, also I worked on a text field that only accepts numbers, and this is my code, hope it helps. def on_initialize(self, event): self.type = True def on_txtText_keyPress(self, event): keyCode = event.keyCode if keyCode in range(48,58) or keyCode in [8,316,317,318,319,127,314,315]: event.Skip() def on_txtText_keyPress(self, event): keyCode = event.keyCode if len(self.components.txtText.text) == 10: if keyCode in [8,316,317,318,319,127,314,315]: self.type = True else: self.type = False else: self.type = True if self.type: event.Skip() else: self.type = True Any suggestions or ideas on how to optmize this code, specially the text leght validation, are more than welcome. Regards, Brian _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Ronny De W. <ron...@gm...> - 2005-02-27 19:57:50
|
Kevin, Thanks, using redraw() and Yield() solved my problem: def on_Test_mouseClick(self, event): if self.loading: return self.loading = True print "*** button clicked" self.components.Test.enabled = False self.components.Test.redraw() time.sleep(5) wx.Yield() self.loading = False self.components.Test.enabled = True Cheers/ rdw Kevin Altis wrote: > Try Test.redraw(), the redraw method was made specifically for this > purpose. The method is defined in widget.py > > def redraw(self): > """Force an immediate redraw without waiting for an event > handler to finish.""" > self.Refresh() > self.Update() > > Actually, I think using a timer is the right way to reenable the > button. You may also need to consider calling SafeYield() depending on > how responsive you want the UI to be during your processing. There are > many samples that do long processing, so take a look at them for more > examples. |
From: Kevin A. <al...@se...> - 2005-02-27 16:56:29
|
On Feb 27, 2005, at 5:22 AM, Ronny De Winter wrote: > Liam Clarke wrote: > >> def on_Test_mouseClick(self, event): >> print "*** button clicked" >> # why can i not disable the button with: >> self.components.Test.enabled = False >> >> time.sleep(5) >> self.components.Test.enabled = True >> >> Because, you're not repainting in there - alternately, you could use >> wx.timer instead. >> (This is straight copy and paste from the Pythoncard manual.) >> >> You have to force a repaint, iirc, and how do that is >> buried deep within wxPython. >> >> > I tried with > self.components.Test.Update() > > after disabling the button, without success. Try Test.redraw(), the redraw method was made specifically for this purpose. The method is defined in widget.py def redraw(self): """Force an immediate redraw without waiting for an event handler to finish.""" self.Refresh() self.Update() > > wx.timer is no alternative for me, in fact i don't sleep(5) but do > some processing for about 5 secs (didnt post the whole processing > since it > is not relevant to the problem). Actually, I think using a timer is the right way to reenable the button. You may also need to consider calling SafeYield() depending on how responsive you want the UI to be during your processing. There are many samples that do long processing, so take a look at them for more examples. > Forcing the repaint is the message, but how ? > How to best explore the deeply buried functionality of > wxPython/wxWidgets ? > Do you use specific tools for that ? published API documentation > on the internet ? dynamic exploration via debuggers, ... ? > > A couple of days ago i posted a similar question about autosizing the > columns of a multicolumnlist. Also there the answer is probably buried > in wxPython/wxWidgets. > What is the fastest way to find the answer to these kind of problems ? > > Best regards, > Ronny De Winter > For wxPython questions, please post your quest on wxPython-users. http://www.wxpython.org/maillist.php ka |
From: Ronny De W. <ron...@gm...> - 2005-02-27 13:22:59
|
Liam Clarke wrote: >def on_Test_mouseClick(self, event): > print "*** button clicked" > # why can i not disable the button with: > self.components.Test.enabled = False > > time.sleep(5) > self.components.Test.enabled = True > >Because, you're not repainting in there - alternately, you could use >wx.timer instead. >(This is straight copy and paste from the Pythoncard manual.) > >You have to force a repaint, iirc, and how do that is >buried deep within wxPython. > > > I tried with self.components.Test.Update() after disabling the button, without success. wx.timer is no alternative for me, in fact i don't sleep(5) but do some processing for about 5 secs (didnt post the whole processing since it is not relevant to the problem). Forcing the repaint is the message, but how ? How to best explore the deeply buried functionality of wxPython/wxWidgets ? Do you use specific tools for that ? published API documentation on the internet ? dynamic exploration via debuggers, ... ? A couple of days ago i posted a similar question about autosizing the columns of a multicolumnlist. Also there the answer is probably buried in wxPython/wxWidgets. What is the fastest way to find the answer to these kind of problems ? Best regards, Ronny De Winter |
From: Liam C. <cy...@gm...> - 2005-02-27 04:12:27
|
Hey Brian, Check out \lib\site-packages\Pythoncard\tools\resourceeditor.py That's the cool bit. :) Regards, Liam Clarke On Sat, 26 Feb 2005 18:26:26 -0500, Brian van den Broek <bv...@po...> wrote: > Peter C. Norton said unto the world upon 2005-02-26 18:00: > > > On Sat, Feb 26, 2005 at 04:10:30PM -0500, Brian van den Broek wrote: > > > >>Hi all, > >> > >>new to the list and (trying to be) new to Pythoncard. > >> > >>I've downloaded PythonCard-0.8.1.win32.exe, trying to install Pcard on > >>my WinMe system with Python 2.4 and wxPython 2.5.3.1. > >> > >>When I run the .exe installer, I get an error message right before the > >>installation has finished (right before finished as assessed by the > > <SNIP> > > >>Any suggestions most appreciated. Thanks and best, > >> > >>Brian vdB > >> > > Brian, > > > > Pythoncard needs to be re-packaged for python2.4 on windows. In the > > mean time you can launch all of the programs. The installation is > > complete but bombs out. > > > > Irritating isn't it? > > > > -Peter > > Hi Peter, > > thanks for the response. Yep, a bit irksome, but I can cope :-) > > I was all ready to follow up with `OK, but which programs, exactly?' > But, a few minutes poking in the bundled docs, and I think I've got > what I need -- I'll take a clumsy install with good docs over smooth > install and poor docs any day! > > Thanks again, > > Brian vdB > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- 'There is only one basic human right, and that is to do as you damn well please. And with it comes the only basic human duty, to take the consequences. |
From: Liam C. <cy...@gm...> - 2005-02-27 03:54:55
|
def on_Test_mouseClick(self, event): print "*** button clicked" # why can i not disable the button with: self.components.Test.enabled = False time.sleep(5) self.components.Test.enabled = True Because, you're not repainting in there - alternately, you could use wx.timer instead. (This is straight copy and paste from the Pythoncard manual.) from wxPython import wx def on_Test_mouseClick(self, event): self.myTimer = wx.wxTimer(self.components.Test, -1) # create a timer self.components.Test.enabled = False self.myTimer.Start(5000) # launch timer, to fire every 5000ms (5 seconds) def on_Test_timer(self, event): self.myTimer.Stop() self.components.Test.enabled = True That's guaranteed to do it for you but it's a bit of a hackish brute way of doing it. You have to force a repaint, iirc, and how do that is buried deep within wxPython. On Sun, 27 Feb 2005 00:00:31 +0100, ronny de winter <ron...@gm...> wrote: > Hello, > > I have a Test button which should perform an action, like sleeping > 5 secs in the example below. During this action the button should not accept > any event. So one should not be able to click the button again before the action > related to the button is finished. During the action any Test button > clicks should > be ignored. > > How can i do that? > Why doe the code below does not show this behavious ? > > def on_Test_mouseClick(self, event): > print "*** button clicked" > # why can i not disable the button with: > self.components.Test.enabled = False > time.sleep(5) > self.components.Test.enabled = True > > Ronny De Winter > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- 'There is only one basic human right, and that is to do as you damn well please. And with it comes the only basic human duty, to take the consequences. |
From: Brian v. d. B. <bv...@po...> - 2005-02-27 01:00:21
|
Peter C. Norton said unto the world upon 2005-02-26 18:00: > On Sat, Feb 26, 2005 at 04:10:30PM -0500, Brian van den Broek wrote: > >>Hi all, >> >>new to the list and (trying to be) new to Pythoncard. >> >>I've downloaded PythonCard-0.8.1.win32.exe, trying to install Pcard on >>my WinMe system with Python 2.4 and wxPython 2.5.3.1. >> >>When I run the .exe installer, I get an error message right before the >>installation has finished (right before finished as assessed by the <SNIP> >>Any suggestions most appreciated. Thanks and best, >> >>Brian vdB >> > Brian, > > Pythoncard needs to be re-packaged for python2.4 on windows. In the > mean time you can launch all of the programs. The installation is > complete but bombs out. > > Irritating isn't it? > > -Peter Hi Peter, thanks for the response. Yep, a bit irksome, but I can cope :-) I was all ready to follow up with `OK, but which programs, exactly?' But, a few minutes poking in the bundled docs, and I think I've got what I need -- I'll take a clumsy install with good docs over smooth install and poor docs any day! Thanks again, Brian vdB |
From: ronny de w. <ron...@gm...> - 2005-02-26 23:00:40
|
Hello, I have a Test button which should perform an action, like sleeping 5 secs in the example below. During this action the button should not accept any event. So one should not be able to click the button again before the action related to the button is finished. During the action any Test button clicks should be ignored. How can i do that? Why doe the code below does not show this behavious ? def on_Test_mouseClick(self, event): print "*** button clicked" # why can i not disable the button with: self.components.Test.enabled = False time.sleep(5) self.components.Test.enabled = True Ronny De Winter |
From: Peter C. N. <spa...@le...> - 2005-02-26 23:00:37
|
Brian, Pythoncard needs to be re-packaged for python2.4 on windows. In the mean time you can launch all of the programs. The installation is complete but bombs out. Irritating isn't it? -Peter On Sat, Feb 26, 2005 at 04:10:30PM -0500, Brian van den Broek wrote: > Hi all, > > new to the list and (trying to be) new to Pythoncard. > > I've downloaded PythonCard-0.8.1.win32.exe, trying to install Pcard on > my WinMe system with Python 2.4 and wxPython 2.5.3.1. > > When I run the .exe installer, I get an error message right before the > installation has finished (right before finished as assessed by the > progress bar). An error window pops up, saying > > Python-card-0 > > Python-card-0 has caused an error in > KERNEL32.DLL > > Pythoncard-0 will now close. > > > I end up with many Pythoncard related files (most in > C:\Python24\Lib\site-packages\PythonCard), but no icons, nor any > filename that would be the obvious one to try to run (eg pythoncard.py). > > I tried a search of this list's archives for Kernel32, and a google > for pythoncard kernel32, both to no avail. I also tried running the > pythoncard 0.8 .exe installer with the same results. > > I am new to GUI tools in python, too. But I wonder if it is possible > that my wxPython (2.5.3.1) is too new for Pythoncard? > > Any suggestions most appreciated. Thanks and best, > > Brian vdB > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users -- The 5 year plan: In five years we'll make up another plan. Or just re-use this one. |
From: Brian v. d. B. <bv...@po...> - 2005-02-26 21:11:56
|
Hi all, new to the list and (trying to be) new to Pythoncard. I've downloaded PythonCard-0.8.1.win32.exe, trying to install Pcard on my WinMe system with Python 2.4 and wxPython 2.5.3.1. When I run the .exe installer, I get an error message right before the installation has finished (right before finished as assessed by the progress bar). An error window pops up, saying Python-card-0 Python-card-0 has caused an error in KERNEL32.DLL Pythoncard-0 will now close. I end up with many Pythoncard related files (most in C:\Python24\Lib\site-packages\PythonCard), but no icons, nor any filename that would be the obvious one to try to run (eg pythoncard.py). I tried a search of this list's archives for Kernel32, and a google for pythoncard kernel32, both to no avail. I also tried running the pythoncard 0.8 .exe installer with the same results. I am new to GUI tools in python, too. But I wonder if it is possible that my wxPython (2.5.3.1) is too new for Pythoncard? Any suggestions most appreciated. Thanks and best, Brian vdB |
From: Peter C. N. <spa...@le...> - 2005-02-26 20:26:47
|
On Sat, Feb 26, 2005 at 10:55:28AM -0800, Kevin Altis wrote: > This should work, but it is broken for me too, so this is a bug and I'm > not sure if it is Pycrust or my minor subclass. I'll check and report > back after I look at Windows and Mac. I just checked this under macosx jaguar with the same results. > If you do a normal copy (ctrl+c) you don't get the >>> and ... preface > chars, but ctrl+shift+c will get them. Paste strips the preface > characters. Good to know, thanks. -Peter -- The 5 year plan: In five years we'll make up another plan. Or just re-use this one. |
From: Kevin A. <al...@se...> - 2005-02-26 18:56:13
|
On Feb 26, 2005, at 9:34 AM, Peter C. Norton wrote: > On Sat, Feb 26, 2005 at 08:00:26AM -0800, Kevin Altis wrote: >> http://pythoncard.sourceforge.net/shell.html >> >> Ctrl+Shift+V is what you're looking for to run multiple lines from a >> paste. >> >> ka > > Hmm... this almost works. However it now messes up the indentation on > the way into the python shell. > > I.e.: > > var = "boogie" > if "bookie" == var: > print "test" > else: > print "not boogie" > > becomes: > > var = "boogie" > if "bookie" == var: > pass > else: > print "not boogie" > File "<input>", line 3 > else: > ^ > SyntaxError: invalid syntax > var = "boogie" > if "bookie" == var: > print "test" > else: > print "not boogie" > File "<input>", line 3 > else: > ^ > SyntaxError: invalid syntax > > Copy-n-paste from the shell is eliminating the ">>>" and "..." from > the output, but you know where they are. > > Does anyone know if the shell can be made to not try to autoindent on > paste? > > -Peter > This should work, but it is broken for me too, so this is a bug and I'm not sure if it is Pycrust or my minor subclass. I'll check and report back after I look at Windows and Mac. If you do a normal copy (ctrl+c) you don't get the >>> and ... preface chars, but ctrl+shift+c will get them. Paste strips the preface characters. ka |
From: Peter C. N. <spa...@le...> - 2005-02-26 17:35:06
|
On Sat, Feb 26, 2005 at 08:00:26AM -0800, Kevin Altis wrote: > http://pythoncard.sourceforge.net/shell.html > > Ctrl+Shift+V is what you're looking for to run multiple lines from a > paste. > > ka Hmm... this almost works. However it now messes up the indentation on the way into the python shell. I.e.: var = "boogie" if "bookie" == var: print "test" else: print "not boogie" becomes: var = "boogie" if "bookie" == var: pass else: print "not boogie" File "<input>", line 3 else: ^ SyntaxError: invalid syntax var = "boogie" if "bookie" == var: print "test" else: print "not boogie" File "<input>", line 3 else: ^ SyntaxError: invalid syntax Copy-n-paste from the shell is eliminating the ">>>" and "..." from the output, but you know where they are. Does anyone know if the shell can be made to not try to autoindent on paste? -Peter -- The 5 year plan: In five years we'll make up another plan. Or just re-use this one. |
From: Kevin A. <al...@se...> - 2005-02-26 16:05:50
|
On Feb 26, 2005, at 4:45 AM, Liam Clarke wrote: > Kia ora, > > I'm playing around with text fields, and I'm trying to control what a > user can type. > So, I've used the following - > > def on_TextField1_keyPress(self, event): > print 'foo' > > to test my theory. Now, I can press a key, and 'foo' will be printed > to my console all day long, but the text isn't entered in the text > field, so obviously I've overridden the default key press behaviour. > > My problem is, I can't find the default key press behaviour for a > text field widget. > I've looked in model.py, event.py, and widget.py, and if it's there, > I've missed it. (which is highly likely, I ran out of coffee > yesterday.) > > Is anyone able to point me at the right module? > > It would be much appreciated. > > Regards, > > Liam Clarke > -- > 'There is only one basic human right, and that is to do as you damn > well please. > And with it comes the only basic human duty, to take the consequences. > If you want the text to appear you need to add event.skip() on the line after your print statement. There are number of samples and tools that use keyDown, keyUp, and keyPress handlers, so you the findfiles tool to search for more examples that look at the keyCode... ka |
From: Kevin A. <al...@se...> - 2005-02-26 16:01:16
|
http://pythoncard.sourceforge.net/shell.html Ctrl+Shift+V is what you're looking for to run multiple lines from a paste. ka On Feb 25, 2005, at 8:24 AM, Peter C. Norton wrote: > I've tried to copy and paste code from the editor window to the shell, > but it seems that once multiple lines are pasted that the shell > doesn't evaluate the code. Its in the command line history as a block > that I can return to using <ctrl>-<up-arrow>, but when I hit enter its > not evaluated again. > > Is this something fixed? This is in the debian pythoncard > distribution. > > An example of this is the following snippet: > >>>> time = "now" > ... second_part = "is the time" > ... if time == "now": > ... print second_part >>>> >>>> time = "now" > ... second_part = "is the time" > ... if time == "now": > ... print second_part >>>> > [ Starting herer is where I did a line-by-line cut-n-paste] >>>> time = "now" >>>> second_part = "is the time" >>>> if time == "now": > ... print second_part > ... > is the time >>>> > > -Peter > > -- > The 5 year plan: > In five years we'll make up another plan. > Or just re-use this one. |
From: Liam C. <cy...@gm...> - 2005-02-26 12:45:49
|
Kia ora, I'm playing around with text fields, and I'm trying to control what a user can type. So, I've used the following - def on_TextField1_keyPress(self, event): print 'foo' to test my theory. Now, I can press a key, and 'foo' will be printed to my console all day long, but the text isn't entered in the text field, so obviously I've overridden the default key press behaviour. My problem is, I can't find the default key press behaviour for a text field widget. I've looked in model.py, event.py, and widget.py, and if it's there, I've missed it. (which is highly likely, I ran out of coffee yesterday.) Is anyone able to point me at the right module? It would be much appreciated. Regards, Liam Clarke -- 'There is only one basic human right, and that is to do as you damn well please. And with it comes the only basic human duty, to take the consequences. |
From: Liam C. <cy...@gm...> - 2005-02-26 11:35:27
|
Hi Peter, AFAIK this is an issue with all Python shells, from IDLE through to PythonWin. Although, you can paste line by line IIRC. Regards, Liam Clarke On Fri, 25 Feb 2005 08:24:22 -0800, Peter C. Norton <spa...@le...> wrote: > I've tried to copy and paste code from the editor window to the shell, > but it seems that once multiple lines are pasted that the shell > doesn't evaluate the code. Its in the command line history as a block > that I can return to using <ctrl>-<up-arrow>, but when I hit enter its > not evaluated again. > > Is this something fixed? This is in the debian pythoncard > distribution. > > An example of this is the following snippet: > > >>> time = "now" > ... second_part = "is the time" > ... if time == "now": > ... print second_part > >>> > >>> time = "now" > ... second_part = "is the time" > ... if time == "now": > ... print second_part > >>> > [ Starting herer is where I did a line-by-line cut-n-paste] > >>> time = "now" > >>> second_part = "is the time" > >>> if time == "now": > ... print second_part > ... > is the time > >>> > > -Peter > > -- > The 5 year plan: > In five years we'll make up another plan. > Or just re-use this one. > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- 'There is only one basic human right, and that is to do as you damn well please. And with it comes the only basic human duty, to take the consequences. |
From: Peter C. N. <spa...@le...> - 2005-02-25 16:24:24
|
I've tried to copy and paste code from the editor window to the shell, but it seems that once multiple lines are pasted that the shell doesn't evaluate the code. Its in the command line history as a block that I can return to using <ctrl>-<up-arrow>, but when I hit enter its not evaluated again. Is this something fixed? This is in the debian pythoncard distribution. An example of this is the following snippet: >>> time = "now" ... second_part = "is the time" ... if time == "now": ... print second_part >>> >>> time = "now" ... second_part = "is the time" ... if time == "now": ... print second_part >>> [ Starting herer is where I did a line-by-line cut-n-paste] >>> time = "now" >>> second_part = "is the time" >>> if time == "now": ... print second_part ... is the time >>> -Peter -- The 5 year plan: In five years we'll make up another plan. Or just re-use this one. |
From: Paulo S. <ps...@ig...> - 2005-02-25 15:32:42
|
Hi, i have an wxPython application running on windows perfectly, but when i tried to run it on linux (debian) it gave the following error: Traceback (most recent call last): File "confServ.py", line 88, in ? app = model.Application(CConfServ) File "/usr/lib/python2.3/site-packages/PythonCard/model.py", line 365, in __init__ wx.App.__init__(self, 0) File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py", line 5311, in __init__ self._BootstrapApp() File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py", line 4990, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/lib/python2.3/site-packages/PythonCard/model.py", line 417, in OnInit self._initBackgrounds(self.resource) File "/usr/lib/python2.3/site-packages/PythonCard/model.py", line 410, in _initBackgrounds bg = self.frameClass(None, bgRsrc) File "/usr/lib/python2.3/site-packages/PythonCard/model.py", line 626, in __init__ aBgRsrc.name) File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_windows.py", line 408, in __init__ newobj = _windows_.new_Frame(*args, **kwargs) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 21: ordinal not in range(128) On windows i had a similarly problem with coding but the statement # "#-*- coding: cp1252 -*-" resolved the problem. Thanks in advance, Paulo Sérgio. |
From: Andy T. <an...@ha...> - 2005-02-24 07:44:30
|
Peter C. Norton wrote: > Andy, > > Are you the maintainer of pythoncard? I'm asking because I'm > interested in getting the installation with python2.4 and windows > working. Do you have any ideas about this? > > Thanks, > > -Peter > > On Wed, Feb 09, 2005 at 07:25:15PM +1100, Andy Todd wrote: > [snip] > Peter, I'm not *the* maintainer, although I do have CVS commit privileges. PythonCard is an open source project so anyone can contribute code, documentation, or sample applications. Providing your contribution doesn't break anything it is likely to be accepted into PythonCard. I'm currently (very slowly) looking at some of the issues that have come up in this thread but haven't begun to address the installation 'features' that occur with the binary package of PythonCard under Python 2.4 on Windows - mainly because I don't have a development machine running Windows. As previously stated installing the source distribution doesn't (as far as I know) have any problems and this is the recommended work around for now. I suspect to stop the post installation errors that people are seeing all we need to do is build a binary distribution using Python 2.4 (as well as Python 2.3) for the next release. Ideally I would like to have some independent verification that this is the case and that no other action needs to be taken. To that end I am happy to provide help and advice to anyone else who wants to investigate this further this before I get round to it - which may be some time. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: ronny de w. <ron...@gm...> - 2005-02-24 07:19:13
|
I would expect the columwidth for the column in a MultiColumnList are automatically sized to the size of the longest item in the column. This doesn't seem to happen always. Double clicking in the header line on the border of the colums does the job. Any ideas on how to automate this so that it happens on initialisation and on any update of the list ? Ronny De Winter |
From: Kevin A. <al...@se...> - 2005-02-23 18:34:40
|
On Feb 23, 2005, at 3:17 AM, pie...@ba... wrote: > Hello, > > I was wondering if it is possible to create a hierarchical menu=20 > structure in PythonCard? > For example a menu structure like this: > > file-| > =A0=A0=A0=A0 |-new--| > =A0=A0=A0=A0 |=A0=A0=A0=A0=A0 |- New item 1 > =A0=A0=A0=A0 |=A0=A0=A0=A0=A0 |- New item 2 > =A0=A0=A0=A0 | > =A0=A0=A0=A0 |-save- > > I'm using PythonCardPrototype 0.7.3.1 > > Any help would be appreciated... > > Regards, > > Pieter > In order to do that you'll have to create the menu manually, it isn't=20 supported by the resource file format or the resourceEditor. Since the=20= PythonCard menus are just subclasses of wxPython menus, you should be=20 able to insert a submenu at runtime relatively easily just using plain=20= wxPython code. ka |