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: Christoph Z. <ci...@on...> - 2006-02-28 14:09:15
|
Alex Tweedly wrote: > There's nothing terrible about "import wx"; in fact, it's much better to > have that than the "from wx import *" that you presumably have right now > to allow the use of > self.SetCursor(wxHOURGLASS_CURSOR) > > It would be a good thing to change that to > import wx > and do > self.SetCursor(wx.HOURGLASS_CURSOR) > > Not important - but a good practice to follow. Thanks for pointing that out. You're right. -- Christoph |
From: Alex T. <al...@tw...> - 2006-02-28 13:35:31
|
Christoph Zwerschke wrote: > Steve Christensen wrote: > >>> How can I force PythonCard to redraw the component immediately, so >>> that it is visible already during the long operation? >> >> >> Try wx.Yield() > > > Thanks, that was exactly what I was missing. I just saw the wx docu > says it's better to use self.application.Yield() in newer programs. > This has also the advantage that I don't need to import wx in my > PythonCard app. There's nothing terrible about "import wx"; in fact, it's much better to have that than the "from wx import *" that you presumably have right now to allow the use of self.SetCursor(wxHOURGLASS_CURSOR) It would be a good thing to change that to import wx and do self.SetCursor(wx.HOURGLASS_CURSOR) Not important - but a good practice to follow. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.1.1/270 - Release Date: 27/02/2006 |
From: Christoph Z. <ci...@on...> - 2006-02-28 11:23:31
|
Steve Christensen wrote: >> How can I force PythonCard to redraw the component >> immediately, so that it is visible already during the long operation? > > Try wx.Yield() Thanks, that was exactly what I was missing. I just saw the wx docu says it's better to use self.application.Yield() in newer programs. This has also the advantage that I don't need to import wx in my PythonCard app. -- Christoph |
From: Steve C. <stn...@xm...> - 2006-02-27 20:23:06
|
> Another question. I have an event handler basically like this one: > > def on_button_mouseClick(self, event): > make component xyz visible > self.SetCursor(wxHOURGLASS_CURSOR) > do something that takes some time > self.SetCursor(wxSTANDARD_CURSOR) > > Changing the mouse cursor works fine, but not making component xyz > visible (it will be only visible after the long operation when the event > is left again). How can I force PythonCard to redraw the component > immediately, so that it is visible already during the long operation? > > Any help is appreciated. Try wx.Yield() -Steve |
From: Christoph Z. <ci...@on...> - 2006-02-27 17:03:19
|
Another question. I have an event handler basically like this one: def on_button_mouseClick(self, event): make component xyz visible self.SetCursor(wxHOURGLASS_CURSOR) do something that takes some time self.SetCursor(wxSTANDARD_CURSOR) Changing the mouse cursor works fine, but not making component xyz visible (it will be only visible after the long operation when the event is left again). How can I force PythonCard to redraw the component immediately, so that it is visible already during the long operation? Any help is appreciated. -- Christoph |
From: Christoph Z. <ci...@on...> - 2006-02-27 12:35:25
|
I'm just making my first steps with PythonCard and I think I like it. However, I found that most string attributes are converted to 7-bit ascii by the resource editor. This makes it impossible to use text attributes with international characters like German Umlaute - they are simply swallowed. The culprit is the following code in resourceOutput.py: if isinstance(value, unicode): value = value.encode('ascii', 'ignore') After removing it, everything seems to work fine (no matter whether I have Unicode enabled wxpython installed or not). So is there any real reason that this conversion takes place? Maybe only historical reasons? -- Christoph |
From: Rajesh S. <raj...@gm...> - 2006-02-27 11:22:50
|
Hi, I am new to python and python card. I recently finished a project involving both and made an executable with py2exe. This is the list of dlls that py2exe did not copy: OLEAUT32.dll - C:\WINDOWS\System32\OLEAUT32.dll USER32.dll - C:\WINDOWS\System32\USER32.dll SHELL32.dll - C:\WINDOWS\System32\SHELL32.dll ole32.dll - C:\WINDOWS\System32\ole32.dll WINMM.dll - C:\WINDOWS\System32\WINMM.dll WSOCK32.dll - C:\WINDOWS\System32\WSOCK32.dll COMCTL32.dll - C:\WINDOWS\System32\COMCTL32.dll ADVAPI32.dll - C:\WINDOWS\System32\ADVAPI32.dll WS2_32.dll - C:\WINDOWS\System32\WS2_32.dll GDI32.dll - C:\WINDOWS\System32\GDI32.dll KERNEL32.dll - C:\WINDOWS\System32\KERNEL32.dll comdlg32.dll - C:\WINDOWS\System32\comdlg32.dll RPCRT4.dll - C:\WINDOWS\System32\RPCRT4.dll When I place the app on a thumb drive, the app will not work. Is there a wa= y around this? Thank You. |
From: Bill B. <bil...@pe...> - 2006-02-18 18:41:45
|
[Alex modifying Bill's code] > Why not simply do this in the OnDropFiles() function, > i.e. > <code> > class FileDropTarget(wx.FileDropTarget): > def __init__(self, obj): > wx.FileDropTarget.__init__(self) > self.obj = obj > > def OnDropFiles(self, x, y, filenames): > [self.obj.Append(f) for f in filenames] > print "component", self.obj.name, "received files", filenames > --- THIS > </code> > [Bill] >> When I drop files on the List, I can't seem to get the DROP_FILES event >> to fire. IOW, my program never prints 'files have been dropped'. >> >> Does anyone know what I'm doing wrong? >> [Alex] > I don't. > However, I think the event mechanism for dropping is different from the > usual one. If you could simply bind to EVT_DROP_FILES, then I think > there'd be no need for the SetDropTarget complexity, would there? > > However, I do know for sure that the above change works and prints out > the name of the component on which they've been dropped, and (just the > new) file names on a drop event, so it can be used even if you have > multiple drop targets. Alex, Thank you for the reply!! I'm just a python hobbyist which means - I'm not that good, yet :-) I hadn't considered putting the 'print' statement in the OnDropFiles function. How simple! BTW - I really don't want to print the names of the files. I was only using that as an example. I actually want to check: 1). If they're the type of files I want to accept (PDF & Tiff). 2). If the files are Landscape or Portrait. So now (using your suggestion), I can simply do something like this: <code> def OnDropFiles(self, x, y, filenames): if checkTheseFiles(filenames): [self.obj.Append(f) for f in filenames] </code> Where 'checkTheseFiles' is another function to maybe check the type and orientation. Although, I could check the file extension easily enough right within 'OnDropFiles'. Thanks again for the help!! Bill |
From: Alex T. <al...@tw...> - 2006-02-18 15:43:43
|
Bill Burns wrote: > I'm testing out adding drag and drop capabilities to my PythonCard app. > I'm looking to have files dropped onto a wxList. > > So far I have code like this: > > <snip> > The above works fine. I can drop the files on the wxList control and the > filenames are appended to the List. > > Now, I need to know when files have been dropped on the List, so I added > this line (under on_initialize): > Why not simply do this in the OnDropFiles() function, i.e. <code> class FileDropTarget(wx.FileDropTarget): def __init__(self, obj): wx.FileDropTarget.__init__(self) self.obj = obj def OnDropFiles(self, x, y, filenames): [self.obj.Append(f) for f in filenames] print "component", self.obj.name, "received files", filenames --- THIS </code> > When I drop files on the List, I can't seem to get the DROP_FILES event > to fire. IOW, my program never prints 'files have been dropped'. > > Does anyone know what I'm doing wrong? > I don't. However, I think the event mechanism for dropping is different from the usual one. If you could simply bind to EVT_DROP_FILES, then I think there'd be no need for the SetDropTarget complexity, would there? However, I do know for sure that the above change works and prints out the name of the component on which they've been dropped, and (just the new) file names on a drop event, so it can be used even if you have multiple drop targets. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 17/02/2006 |
From: Bill B. <bil...@pe...> - 2006-02-18 11:57:26
|
> <code> > class GUI(model.Background): > def on_initialize(self, event): > self.fileList = self.components.fileList > dropTarget = FileDropTarget(self.fileList) > self.fileList.SetDropTarget(dropTarget) > </code> > Oops - The above didn't come out correctly. The code (properly indented looks like this: <code> class GUI(model.Background): def on_initialize(self, event): self.fileList = self.components.fileList dropTarget = FileDropTarget(self.fileList) self.fileList.SetDropTarget(dropTarget) </code> Bill |
From: Bill B. <bil...@pe...> - 2006-02-18 11:50:28
|
I'm testing out adding drag and drop capabilities to my PythonCard app. I'm looking to have files dropped onto a wxList. So far I have code like this: <code> class FileDropTarget(wx.FileDropTarget): def __init__(self, obj): wx.FileDropTarget.__init__(self) self.obj = obj def OnDropFiles(self, x, y, filenames): [self.obj.Append(f) for f in filenames] </code> and then later (in my GUI class): <code> class GUI(model.Background): def on_initialize(self, event): self.fileList = self.components.fileList dropTarget = FileDropTarget(self.fileList) self.fileList.SetDropTarget(dropTarget) </code> The above works fine. I can drop the files on the wxList control and the filenames are appended to the List. Now, I need to know when files have been dropped on the List, so I added this line (under on_initialize): <code> self.fileList.Bind(wx.EVT_DROP_FILES, self.on_fileList_DropFiles) </code> and then later (in my code) I have a method that looks like this: <code> def on_fileList_DropFiles(self, event): print 'files have been dropped' </code> When I drop files on the List, I can't seem to get the DROP_FILES event to fire. IOW, my program never prints 'files have been dropped'. Does anyone know what I'm doing wrong? In case it matters, I'm also binding this event to the fileList: <code> self.fileList.Bind(wx.EVT_RIGHT_DOWN, self.on_fileList_RightDown) </code> and this event works fine. Here's my specifications: OS: Windows 2000 Pro SP4 PythonCard: 0.8.1 Python: 2.4.1 wxPython: 2.6.1.0 Thanks, Bill |
From: Brian M. <mrb...@gm...> - 2006-02-02 16:36:41
|
You are successfully loading the unicode u'a\u2019s' into the variable, s, with no problem other than displaying in a old-fashioned shell. The best I am able to do in my Emacs Python shell is >>> s.encode('cp1252') 'a\x92s' >>> print s.encode('cp1252') a\222s So, I don't get any error with CP-1252. I think if you want the quote mark to appear as a quote mark, you will have to work in a more modern GUI window, such as the Code Editor Shell. This article "Unicode in Python" by Jason Orendorff helped me understand a similar DOS window Python unicode problem. http://www.jorendorff.com/articles/unicode/python.html Search the article for the word "unfortunately" and read from that point. He concludes with " So in general it is not possible to determine what encoding to use with print. It is therefore better to send Unicode output to files or Unicode-aware GUIs, not to sys.stdout." I have not found anything to contradict this conclusion. I found that from the links collected in another good article, "Unicode Secrets" by Uche Ogbuji May 18, 2005 http://www.xml.com/pub/a/2005/05/18/unicode.html Good luck |
From: Thomas H. <th...@py...> - 2006-02-02 12:44:19
|
Alex Tweedly <al...@tw...> writes: > If I start up the Python interpreter (i.e. open a DOS shell box, and > type "python") I get my Python interpreter. I then type in the > following two lines, and get an error : > >> C:\Documents and Settings\Eleane>python >> Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit >> (Intel)] on win32 >> Type "help", "copyright", "credits" or "license" for more information. >> >>> s = u'a\u2019s' >> >>> print s >> Traceback (most recent call last): >> File "<stdin>", line 1, in ? >> File "C:\Python24\lib\encodings\cp850.py", line 18, in encode >> return codecs.charmap_encode(input,errors,encoding_map) >> UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' >> in position >> 1: character maps to <undefined> >> >>> There are unicode characters (maybe the correct term is codepoint, but I'm far from an expert) that can not be converted to code page 850, which the console uses in your case (*). It is not that obvious for the apostrophe-like character you have above, but obvious for, say, chinese or japanese characters if you are using a western windows. > If instead I start the PythonCard codeEditor, and start a Shell (F5), > and type the same two lines, it works properly. Is that a graphical shell? If so, it probably understands unicode (obviously). (*) The windows XP console, at least, is able to handle unicode, but afaik Python uses the ansi apis to write to stdout. Thomas |
From: Alex T. <al...@tw...> - 2006-02-02 12:09:48
|
No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.0/248 - Release Date: 01/02/2006 |
From: bartek w. <ba...@re...> - 2006-02-02 10:07:11
|
Citing Alex Tweedly <al...@tw...>: > If I start up the Python interpreter (i.e. open a DOS shell box, and > type "python") I get my Python interpreter. I then type in the following > two lines, and get an error : > > > C:\Documents and Settings\Eleane>python > > Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] > > on win32 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> s = u'a\u2019s' > > >>> print s > > Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > File "C:\Python24\lib\encodings\cp850.py", line 18, in encode > > return codecs.charmap_encode(input,errors,encoding_map) > > UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' > > in position > > 1: character maps to <undefined> > > >>> > > If instead I start the PythonCard codeEditor, and start a Shell (F5), > and type the same two lines, it works properly. > > I tried the basic python interpreter adding the imports that are visible > within the codeEditor shell, but still get the same problem. > > > > C:\Documents and Settings\Eleane>python > > Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] > > on win32 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> import os > > >>> import sys > > >>> import wx > > >>> from PythonCard import dialog, util > > >>> s = u'a\u2019s' > > >>> print s > > Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > File "C:\Python24\lib\encodings\cp850.py", line 18, in encode > > return codecs.charmap_encode(input,errors,encoding_map) > > UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' > > in position > > 1: character maps to <undefined> > > >>> > > Anyone got any clues ? > Does the code editor do something non-obvious that makes this all work > right when it opens a shell ? > Or is there something additional I could try ? > > [I don't really care about what the code editor does - just about being > able to get my app working, perhaps by doing the same as the codeEditor.] > > (for now, I'm working around it by doing > s = s.encode('ascii', 'replace') > which simply replaces all the odd characters by '?'s - ok for the short > term, but I do need to figure out a better answer). > > This is caused by the fact that, according to PEP 100, when you try to "print" a unicode string u, python implicitly calls u.encode(sys.getdefaultencoding()). The "recommended way" is to use always u.encode("something") when you print unicode, but you can try to look at these posts: http://faassen.n--tree.net/blog/view/weblog/2005/08/02/0 http://www.pycs.net/users/0000323/stories/14.html to find out how to change the default encoding and why is it considered harmful. Hope that helps Bartek |
From: Kenneth P. <ken...@ce...> - 2006-02-02 03:46:27
|
On Wed, Feb 01, 2006 at 09:41:18PM -0600, Kenneth Pronovici wrote: > On Thu, Feb 02, 2006 at 03:10:23AM +0000, Alex Tweedly wrote: > > If I start up the Python interpreter (i.e. open a DOS shell box, and=20 > > type "python") I get my Python interpreter. I then type in the followin= g=20 > > two lines, and get an error : > >=20 > > >C:\Documents and Settings\Eleane>python > > >Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]= =20 > > >on win32 > > >Type "help", "copyright", "credits" or "license" for more information. > > >>>> s =3D u'a\u2019s' > > >>>> print s > > >Traceback (most recent call last): > > > File "<stdin>", line 1, in ? > > > File "C:\Python24\lib\encodings\cp850.py", line 18, in encode > > > return codecs.charmap_encode(input,errors,encoding_map) > > >UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019'= =20 > > >in position > > > 1: character maps to <undefined> > > >>>> > >=20 > > If instead I start the PythonCard codeEditor, and start a Shell (F5),= =20 > > and type the same two lines, it works properly. > >=20 > > I tried the basic python interpreter adding the imports that are visibl= e=20 > > within the codeEditor shell, but still get the same problem. >=20 > Unicode in Python drives me batty. Every time I think I understand > what's going on, something else strange happens, and I begin to doubt my > comprehension. So, it's not just you. :) >=20 > I get this same behavior on Linux (python 2.3.5). On that platform, > I suspect (but haven't had time to prove) that the problem is > locale-related. However, even if I figure it out there, I'm not sure > how that solution would translate to other platforms like Windows. >=20 > I suggest writing python-devel with "unicode" in the subject somewhere. > Posts with that subject often get quite excellent replies from Martin v. > L=F6wis, who has in fact helped me out several times. Ugh, I have Debian on the brain. I meant <pyt...@py...>, not python-devel. KEN --=20 Kenneth J. Pronovici <pro...@ie...> http://www.cedar-solutions.com/ |
From: Kenneth P. <ken...@ce...> - 2006-02-02 03:41:24
|
On Thu, Feb 02, 2006 at 03:10:23AM +0000, Alex Tweedly wrote: > If I start up the Python interpreter (i.e. open a DOS shell box, and=20 > type "python") I get my Python interpreter. I then type in the following= =20 > two lines, and get an error : >=20 > >C:\Documents and Settings\Eleane>python > >Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]=20 > >on win32 > >Type "help", "copyright", "credits" or "license" for more information. > >>>> s =3D u'a\u2019s' > >>>> print s > >Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > File "C:\Python24\lib\encodings\cp850.py", line 18, in encode > > return codecs.charmap_encode(input,errors,encoding_map) > >UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019'=20 > >in position > > 1: character maps to <undefined> > >>>> >=20 > If instead I start the PythonCard codeEditor, and start a Shell (F5),=20 > and type the same two lines, it works properly. >=20 > I tried the basic python interpreter adding the imports that are visible= =20 > within the codeEditor shell, but still get the same problem. Unicode in Python drives me batty. Every time I think I understand what's going on, something else strange happens, and I begin to doubt my comprehension. So, it's not just you. :) I get this same behavior on Linux (python 2.3.5). On that platform, I suspect (but haven't had time to prove) that the problem is locale-related. However, even if I figure it out there, I'm not sure how that solution would translate to other platforms like Windows. I suggest writing python-devel with "unicode" in the subject somewhere. Posts with that subject often get quite excellent replies from Martin v. L=F6wis, who has in fact helped me out several times. KEN --=20 Kenneth J. Pronovici <pro...@ie...> http://www.cedar-solutions.com/ |
From: Alex T. <al...@tw...> - 2006-02-02 03:10:27
|
If I start up the Python interpreter (i.e. open a DOS shell box, and type "python") I get my Python interpreter. I then type in the following two lines, and get an error : > C:\Documents and Settings\Eleane>python > Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] > on win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> s = u'a\u2019s' > >>> print s > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "C:\Python24\lib\encodings\cp850.py", line 18, in encode > return codecs.charmap_encode(input,errors,encoding_map) > UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' > in position > 1: character maps to <undefined> > >>> If instead I start the PythonCard codeEditor, and start a Shell (F5), and type the same two lines, it works properly. I tried the basic python interpreter adding the imports that are visible within the codeEditor shell, but still get the same problem. > C:\Documents and Settings\Eleane>python > Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] > on win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> import os > >>> import sys > >>> import wx > >>> from PythonCard import dialog, util > >>> s = u'a\u2019s' > >>> print s > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "C:\Python24\lib\encodings\cp850.py", line 18, in encode > return codecs.charmap_encode(input,errors,encoding_map) > UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' > in position > 1: character maps to <undefined> > >>> Anyone got any clues ? Does the code editor do something non-obvious that makes this all work right when it opens a shell ? Or is there something additional I could try ? [I don't really care about what the code editor does - just about being able to get my app working, perhaps by doing the same as the codeEditor.] (for now, I'm working around it by doing s = s.encode('ascii', 'replace') which simply replaces all the odd characters by '?'s - ok for the short term, but I do need to figure out a better answer). -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.25/247 - Release Date: 31/01/2006 |
From: Ronny De W. <ron...@gm...> - 2006-01-26 12:33:55
|
There is indeed a difference with the themes. The examples below are with the default Windows XP theme. When i switch to Classic theme the situation is a little bit better but still not good, ie. the mp3player from the samples shows buttons at the bottom, but only the top half. I can work around with the 2 tips you gave me, thanks. However thinking on other people who would like to give Pythoncard a try, when they get similar results as the ones below they will probably stop using Pythoncard, which is a shame. PythonCard has potential for becoming a very powerful and productive tool. Ronny Alex Tweedly wrote: > Ronny De Winter wrote: > >> This problem was reported on this mailing list 17-19 dec 2005. Since >> no solution was found i've put the info in a bug record. >> http://sourceforge.net/tracker/index.php?func=detail&aid=1415287&group_id=19015&atid=119015 >> >> > Thanks for recording it (and sorry I didn't get anywhere with it in > December - busy time of year and it got buried back then). > >> Layout/font problems with resource editor/samples >> ------------------------------------------------- >> >> I have problems with some of the PythonCard samples, ie. in the >> mp3player the buttons almost completely dissappear at the bottom of >> the window. Another example is minimalList which ads an horizontal >> scrollbar. >> >> This seems to be a PythonCard problem on my Windows configuration, >> my setup: WinXP, python 2.4.2, wxPython 2.6.1.0, pythoncard 0.8.1 >> >> some examples: >> >> http://www.5consulting.com/img/tmp/screen1.jpg >> resourceEditor Property Editor: >> - incomplete button at the right bottom >> > I think we'll need a bit more info from you, on system settings. > > When I look at this same window, on a very similar set-up (WinXP, > python 2.4.1, wxPython 2.6.1, pythoncard cvs latest), what I get is > > the *overall* window size is the same > the window title bar is smaller > the status bar is smaller > (therefore the "usable" part of the window is larger vertically) > the font used in the list fields (and presumably in the button also) > are smaller > > I'm guessing the difference is due to different XP "themes" (is that > what they're called?) and/or different default system fonts. Both > areas that I know nothing about - but if you happen to know anything > about them, could you send the relevant info please ? > > If you can send that info, I hope to be able to reproduce it here - > and so confirm that it is a system setting / font issue. That won't > mean that we'll be able to fix it any time soon, I'm afraid. > > The resourceEditor (and indeed most of the samples) do not use sizers, > and therefore are not able to adapt themselves for differing font > issues. They also do not specify a font to use, allowing it to default > to the system font. > > Both of these impose limitations between systems - these have largely > been worked around by adding a certain amount of "slack" in the sizing > of windows and in the positioning of components, enough for MacOS and > common Linux variants to work OK. > > The long-term fix, I believe, will have to involve the use of sizers. > We have struggled to find a way to use sizers compatible with the > simplicity of PythonCard (and will probably continue to struggle for a > while longer). > > If I were you, what I'd do is: > > 1. make any small work-arounds to make the Pythoncard tools usable on > your system > 2. consider developing any apps as sizer-based, to ensure they do > look OK on your system as well as others > > For 1, I'd edit (with a text editor) > {pythoncard}/tools/resourceEditor/modules/proprertyEditor.rsrc.py, and > change > >> 'title':'resourceEditor Property Editor', >> 'size':(405, 270), > > > to make the size bigger (maybe 450,290) > > Note that cvs latest of Pythoncard does contain a simple Sizer layout, > which can help, though only with fairly simple layouts - e.g. most > though not all of the samples, and all of the PythonCard tools except > findfiles (which already uses sizers). > BUT the one thing it does not do is resize the entire window, so it > wouldn't solve the problem with the resourceEditor. However, you may > find it useful for your own apps. > > |
From: Alex T. <al...@tw...> - 2006-01-26 11:24:58
|
Ronny De Winter wrote: > This problem was reported on this mailing list 17-19 dec 2005. Since > no solution was found i've put the info in a bug record. > http://sourceforge.net/tracker/index.php?func=detail&aid=1415287&group_id=19015&atid=119015 > > Thanks for recording it (and sorry I didn't get anywhere with it in December - busy time of year and it got buried back then). > Layout/font problems with resource editor/samples > ------------------------------------------------- > > I have problems with some of the PythonCard samples, ie. in the > mp3player the buttons almost completely dissappear at the bottom of > the window. Another example is minimalList which ads an horizontal > scrollbar. > > This seems to be a PythonCard problem on my Windows configuration, > my setup: WinXP, python 2.4.2, wxPython 2.6.1.0, pythoncard 0.8.1 > > some examples: > > http://www.5consulting.com/img/tmp/screen1.jpg > resourceEditor Property Editor: > - incomplete button at the right bottom > I think we'll need a bit more info from you, on system settings. When I look at this same window, on a very similar set-up (WinXP, python 2.4.1, wxPython 2.6.1, pythoncard cvs latest), what I get is the *overall* window size is the same the window title bar is smaller the status bar is smaller (therefore the "usable" part of the window is larger vertically) the font used in the list fields (and presumably in the button also) are smaller I'm guessing the difference is due to different XP "themes" (is that what they're called?) and/or different default system fonts. Both areas that I know nothing about - but if you happen to know anything about them, could you send the relevant info please ? If you can send that info, I hope to be able to reproduce it here - and so confirm that it is a system setting / font issue. That won't mean that we'll be able to fix it any time soon, I'm afraid. The resourceEditor (and indeed most of the samples) do not use sizers, and therefore are not able to adapt themselves for differing font issues. They also do not specify a font to use, allowing it to default to the system font. Both of these impose limitations between systems - these have largely been worked around by adding a certain amount of "slack" in the sizing of windows and in the positioning of components, enough for MacOS and common Linux variants to work OK. The long-term fix, I believe, will have to involve the use of sizers. We have struggled to find a way to use sizers compatible with the simplicity of PythonCard (and will probably continue to struggle for a while longer). If I were you, what I'd do is: 1. make any small work-arounds to make the Pythoncard tools usable on your system 2. consider developing any apps as sizer-based, to ensure they do look OK on your system as well as others For 1, I'd edit (with a text editor) {pythoncard}/tools/resourceEditor/modules/proprertyEditor.rsrc.py, and change > 'title':'resourceEditor Property Editor', > 'size':(405, 270), to make the size bigger (maybe 450,290) Note that cvs latest of Pythoncard does contain a simple Sizer layout, which can help, though only with fairly simple layouts - e.g. most though not all of the samples, and all of the PythonCard tools except findfiles (which already uses sizers). BUT the one thing it does not do is resize the entire window, so it wouldn't solve the problem with the resourceEditor. However, you may find it useful for your own apps. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.23/240 - Release Date: 25/01/2006 |
From: Ronny De W. <ron...@gm...> - 2006-01-26 10:15:05
|
This problem was reported on this mailing list 17-19 dec 2005. Since no solution was found i've put the info in a bug record. http://sourceforge.net/tracker/index.php?func=detail&aid=1415287&group_id=19015&atid=119015 Layout/font problems with resource editor/samples ------------------------------------------------- I have problems with some of the PythonCard samples, ie. in the mp3player the buttons almost completely dissappear at the bottom of the window. Another example is minimalList which ads an horizontal scrollbar. This seems to be a PythonCard problem on my Windows configuration, my setup: WinXP, python 2.4.2, wxPython 2.6.1.0, pythoncard 0.8.1 some examples: http://www.5consulting.com/img/tmp/screen1.jpg resourceEditor Property Editor: - incomplete button at the right bottom PythonCard Samples: custdb: http://www.5consulting.com/img/tmp/screen2.jpg - overlapping fields dbBrowser: http://www.5consulting.com/img/tmp/screen3.jpg - database text field only half visible minimalList: http://www.5consulting.com/img/tmp/screen4.jpg - horizontal scrollbar shouldn't be there ? moderator: http://www.5consulting.com/img/tmp/screen5.jpg - fonts look too big, ie. "Time Left:" does not fit mp3player: http://www.5consulting.com/img/tmp/screen6.jpg - buttons disappear at bottom of the window I also looked at the wxPython samples and they look ok. After some searching on the internet i found the following on http://www.wxwindows.org/prepare.htm concerning preparing for wxWidgets 2: " Be aware that under Windows, *font sizes will change* to match standard Windows font sizes (for example, a 12-point font will appear bigger than before). Write your application to be flexible where fonts are concerned. Don't rely on fonts being similarly-sized across platforms, as they were (by chance) between Windows and X under wxWidgets 1.66. Yes, this is not easy... but I think it's better to conform to the standards of each platform, and currently the size difference makes it difficult to conform to Windows UI standards. You may eventually wish to build in a global 'fudge-factor' to compensate for size differences. The old font sizing will still be available via wx_setup.h, so do not panic... " Does that give any clue ? Ronny De Winter http://quotesviewer.sourceforge.net |
From: Alex T. <al...@tw...> - 2006-01-25 00:01:50
|
Bernie Hogan wrote: >Hi Everyone, > >I'm trying to create a child window that pops-up a list of things to be >toggled on and off. The list length will not be known ahead of time (think >the little checkboxes next to songs in iTunes). So two things came to mind: >1. ListCtrl with some widget embedded in the cells (seems hard). >2. A scrolled pane. > >I don't recall a scrolled pane being a part of pythoncard, but I'm >interested learning how I could implement it and talk to it like a >pythoncard background rather than a wxPython pane. > >I'm also interested in other suggestions. > > How about a Grid, using wxGridCellBoolEditor and wxGridCellBoolRenderer to get the checkboxes ? (note there is a basic grid component in components/grid.py, and a sample in samples/simplegrid.py I modified this by adding > mygrid.SetCellValue(1, 0, "1") > mygrid.SetCellEditor(1, 0, grid.GridCellBoolEditor()) > mygrid.SetCellRenderer(1, 0, grid.GridCellBoolRenderer()) to verify the basic idea). -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.21/236 - Release Date: 20/01/2006 |
From: Kevin A. <al...@se...> - 2006-01-24 22:22:08
|
On Jan 20, 2006, at 10:27 AM, Luca Mandolesi wrote: > Hi, I follow any instrunctions about the installation > of wxPython on my MacOs X 10.3, but when I install > Pythoncard, the terminal tell me that: "-bash: bob%: > command not found". > Why? I am a beginner in the world of unix command and > I guess I have to change bob in the name of my user. > It's correct? > Thank you for the help. > Luca Hi Luca, you just need to type the commands after the prompt character, which should be a % sign followed by a single space. You can ignore the machine, directory, and username part of the prompt. I'll make a note to change that in the updated install instructions. In addition, it appears the directory name was never updated for release 0.8.1, so the actual commands you should type are: cd ~/Desktop/PythonCard-0.8.1 sudo python setup.py install I think that should do it. ka |
From: Bernie H. <ber...@ut...> - 2006-01-24 19:16:55
|
Hi Everyone, I'm trying to create a child window that pops-up a list of things to be toggled on and off. The list length will not be known ahead of time (think the little checkboxes next to songs in iTunes). So two things came to mind: 1. ListCtrl with some widget embedded in the cells (seems hard). 2. A scrolled pane. I don't recall a scrolled pane being a part of pythoncard, but I'm interested learning how I could implement it and talk to it like a pythoncard background rather than a wxPython pane. I'm also interested in other suggestions. Take Care, BERNiE -- |
From: Luca M. <man...@ya...> - 2006-01-20 18:28:00
|
Hi, I follow any instrunctions about the installation of wxPython on my MacOs X 10.3, but when I install Pythoncard, the terminal tell me that: "-bash: bob%: command not found". Why? I am a beginner in the world of unix command and I guess I have to change bob in the name of my user. It's correct? Thank you for the help. Luca ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it |