You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
(45) |
May
(185) |
Jun
|
Jul
(36) |
Aug
(205) |
Sep
(98) |
Oct
(107) |
Nov
(6) |
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(1) |
Feb
(2) |
Mar
(19) |
Apr
(26) |
May
(18) |
Jun
|
Jul
(12) |
Aug
(16) |
Sep
(22) |
Oct
(7) |
Nov
(11) |
Dec
(74) |
2006 |
Jan
(14) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(14) |
Jun
(5) |
Jul
(20) |
Aug
(10) |
Sep
(1) |
Oct
|
Nov
(4) |
Dec
(1) |
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(14) |
Aug
|
Sep
|
Oct
(6) |
Nov
(1) |
Dec
|
From: Kevin A. <ka...@us...> - 2004-08-09 17:33:12
|
Update of /cvsroot/pythoncard/PythonCard/samples/webserver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13183/samples/webserver Modified Files: readme.txt Log Message: updated port, Mac and Linux info for running CGIs Index: readme.txt =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/webserver/readme.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** readme.txt 14 Jun 2002 05:53:08 -0000 1.4 --- readme.txt 9 Aug 2004 17:32:44 -0000 1.5 *************** *** 5,9 **** After you've started the server you should be able to connect to it from ! your machine using the URL http://localhost/ or http://127.0.0.1/ You'll need to add additional IP addresses to the validIPList if you would --- 5,9 ---- After you've started the server you should be able to connect to it from ! your machine using the URL http://localhost:8000/ or http://127.0.0.1:8000/ You'll need to add additional IP addresses to the validIPList if you would *************** *** 17,21 **** unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x) for CGIs that process or output binary data to work correctly, but this may ! no longer be necessary with Python 2.2.1. For comparison, I've also provided a console_server.py file which will run --- 17,21 ---- unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x) for CGIs that process or output binary data to work correctly, but this may ! no longer be necessary with Python 2.2.1 or later. For comparison, I've also provided a console_server.py file which will run *************** *** 29,40 **** ! Mac OS X Notes: ! The default port for the webserver script is port 80, so on Mac OS X, you must ! use sudo to start the server or change the script to use an unreserved port number ! above 1024 such as 8000. ! ! The CGI scripts don't seem to work on OS X and I don't know why, but it looks like ! a problem with the Python Standard Libraries CGIHTTPServer module and not ! wxPython or PythonCard. --- 29,36 ---- ! Mac OS X and Linux Notes: ! In order to run CGI scripts on Mac OS X or Linux you will first have to do ! a chmod +x on the CGI scripts. You may also have to change the #!/usr/bin/python ! at the top of each CGI script. *************** *** 46,50 **** the xmlrpclib module. Then try this in the shell: ! >>> server = xmlrpclib.Server('http://localhost/cgi-bin/webservices.py') >>> server.system.listMethods() {'sample.helloWorld()': 'None', 'examples.getStateName(stateIndex)': 'None', 'system.listMethods()': 'None'} --- 42,46 ---- the xmlrpclib module. Then try this in the shell: ! >>> server = xmlrpclib.Server('http://localhost:8000/cgi-bin/webservices.py') >>> server.system.listMethods() {'sample.helloWorld()': 'None', 'examples.getStateName(stateIndex)': 'None', 'system.listMethods()': 'None'} |
From: Kevin A. <ka...@us...> - 2004-08-09 17:22:54
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10707 Modified Files: model.py Removed Files: fixdc.py Log Message: added clean exit code to model.py removed fixdc.py since wxPython 2.5.2 is the minimum required version Index: model.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/model.py,v retrieving revision 1.178 retrieving revision 1.179 diff -C2 -d -r1.178 -r1.179 *** model.py 17 Jul 2004 17:20:10 -0000 1.178 --- model.py 9 Aug 2004 17:22:44 -0000 1.179 *************** *** 6,22 **** import os, sys - # some things might work with lesser - # versions, but this is a reasonable base - assert sys.version_info >= (2, 3) - # sys.modules relative path fix - sys.path[0] = os.path.abspath(sys.path[0]) - #sys.path = [os.path.abspath(p) for p in sys.path] ! import wx ! assert wx.VERSION >= (2, 5) - # KEA 2004-05-01 - # temporary fix for wxPython 2.5.1.5 - import fixdc import configuration --- 6,40 ---- import os, sys ! # KEA 2004-08-09 ! # assert some minimum requirements and attempt to exit cleanly ! # if they aren't met ! ! try: ! # some things might work with lesser ! # versions, but this is a reasonable base ! assert sys.version_info >= (2, 3) ! # sys.modules relative path fix ! sys.path[0] = os.path.abspath(sys.path[0]) ! #sys.path = [os.path.abspath(p) for p in sys.path] ! ! import wx ! assert wx.VERSION >= (2, 5, 2) ! except: ! from wxPython.wx import wxPySimpleApp, wxFrame, wxMessageDialog, wxICON_EXCLAMATION, wxOK, wxVERSION_STRING ! app = wxPySimpleApp() ! frame = wxFrame(None, -1, "Minimum Requirements Not Met") ! #frame.Show(1) ! message = "PythonCard minimum requirements:\nPython 2.3 and wxPython 2.5.2\n\n" + \ ! "You are using Python %s\nand wxPython %s.\n\nClick OK to exit." % (sys.version, wxVERSION_STRING) ! dialog = wxMessageDialog(frame, message, ! "Minimum Requirements Not Met", ! wxICON_EXCLAMATION | wxOK) ! dialog.ShowModal() ! dialog.Destroy() ! #app.MainLoop() ! sys.exit(0) ! import configuration --- fixdc.py DELETED --- |
From: Kevin A. <ka...@us...> - 2004-08-08 18:32:02
|
Update of /cvsroot/pythoncard/PythonCard/tools/codeEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29050/tools/codeEditor Modified Files: codeEditor.py Log Message: switched to docs.pytho.org in URLs Index: codeEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/codeEditor/codeEditor.py,v retrieving revision 1.120 retrieving revision 1.121 diff -C2 -d -r1.120 -r1.121 *** codeEditor.py 8 Aug 2004 15:30:33 -0000 1.120 --- codeEditor.py 8 Aug 2004 18:31:53 -0000 1.121 *************** *** 53,57 **** shell_url = util.documentationURL("shell.html") ! help_url = "http://www.python.org/doc/current/" if sys.platform.startswith("win"): fn = os.path.dirname(os.__file__) --- 53,57 ---- shell_url = util.documentationURL("shell.html") ! help_url = "http://docs.python.org/" if sys.platform.startswith("win"): fn = os.path.dirname(os.__file__) |
From: Kevin A. <ka...@us...> - 2004-08-08 18:32:02
|
Update of /cvsroot/pythoncard/PythonCard/samples/redemo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29050/samples/redemo Modified Files: redemo.py Log Message: switched to docs.pytho.org in URLs Index: redemo.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/redemo/redemo.py,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** redemo.py 5 May 2004 16:53:28 -0000 1.15 --- redemo.py 8 Aug 2004 18:31:53 -0000 1.16 *************** *** 115,119 **** def on_menuHelpReModule_select(self, event): ! module_url = "http://www.python.org/doc/current/lib/module-re.html" if sys.platform.startswith('win'): fn = os.path.dirname(os.__file__) --- 115,119 ---- def on_menuHelpReModule_select(self, event): ! module_url = "http://docs.python.org/lib/module-re.html" if sys.platform.startswith('win'): fn = os.path.dirname(os.__file__) |
From: Kevin A. <ka...@us...> - 2004-08-08 18:32:01
|
Update of /cvsroot/pythoncard/PythonCard/samples/fpop In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29050/samples/fpop Modified Files: emailfilter.py preview.py Log Message: switched to docs.pytho.org in URLs Index: preview.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/fpop/preview.py,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** preview.py 10 May 2004 00:45:18 -0000 1.20 --- preview.py 8 Aug 2004 18:31:53 -0000 1.21 *************** *** 183,187 **** # see the email module documentation ! # http://www.python.org/doc/current/lib/module-email.html # this probably isn't the best way to put together a message def displayMessage(self, msg, msgNumber, headers): --- 183,187 ---- # see the email module documentation ! # http://docs.python.org/lib/module-email.html # this probably isn't the best way to put together a message def displayMessage(self, msg, msgNumber, headers): Index: emailfilter.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/fpop/emailfilter.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** emailfilter.py 9 May 2004 19:46:05 -0000 1.5 --- emailfilter.py 8 Aug 2004 18:31:53 -0000 1.6 *************** *** 17,22 **** # module documentation is at: ! # http://www.python.org/doc/current/lib/module-poplib.html ! # http://www.python.org/doc/current/lib/module-email.html import sys --- 17,22 ---- # module documentation is at: ! # http://docs.python.org/lib/module-poplib.html ! # http://docs.python.org/lib/module-email.html import sys *************** *** 155,159 **** encodedSubject = message.get('subject') # handle internationalized subject line ! # http://www.python.org/doc/current/lib/module-email.Header.html subject, encoding = Header.decode_header(encodedSubject)[0] #print i, "Subject:", subject, encoding --- 155,159 ---- encodedSubject = message.get('subject') # handle internationalized subject line ! # http://docs.python.org/lib/module-email.Header.html subject, encoding = Header.decode_header(encodedSubject)[0] #print i, "Subject:", subject, encoding |
From: Kevin A. <ka...@us...> - 2004-08-08 18:32:01
|
Update of /cvsroot/pythoncard/PythonCard/samples/companies In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29050/samples/companies Modified Files: parse_companies.py Log Message: switched to docs.pytho.org in URLs Index: parse_companies.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/companies/parse_companies.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** parse_companies.py 14 Apr 2004 02:38:48 -0000 1.8 --- parse_companies.py 8 Aug 2004 18:31:53 -0000 1.9 *************** *** 7,11 **** # adapted from ! # http://www.python.org/doc/current/lib/dom-example.html import os --- 7,11 ---- # adapted from ! # http://docs.python.org/lib/dom-example.html import os |
From: Kevin A. <ka...@us...> - 2004-08-08 18:21:37
|
Update of /cvsroot/pythoncard/PythonCard/samples/turtle/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27334/samples/turtle/scripts Modified Files: fourBugs.py pentests.py Log Message: added WXMAC workaround to update display during drawing Index: pentests.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/turtle/scripts/pentests.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pentests.py 8 Aug 2004 18:07:45 -0000 1.2 --- pentests.py 8 Aug 2004 18:21:28 -0000 1.3 *************** *** 1,4 **** --- 1,7 ---- from wrappers import Turtle + # KEA 2004-08-08 + # workaround for Mac not updating display until idle + import wx def draw(canvas): *************** *** 42,45 **** --- 45,52 ---- eval('t' + i + '.forward(50)') eval('t' + i + '.pd()') + # KEA 2004-08-08 + # workaround for Mac not updating display until idle + if wx.Platform == '__WXMAC__': + canvas.redraw() tList = [t1, t2, t3] *************** *** 51,53 **** --- 58,64 ---- # huge delay so we can see the turtle #for j in range(1000000): pass + # KEA 2004-08-08 + # workaround for Mac not updating display until idle + if wx.Platform == '__WXMAC__': + canvas.redraw() Index: fourBugs.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/turtle/scripts/fourBugs.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fourBugs.py 11 May 2004 01:12:51 -0000 1.1 --- fourBugs.py 8 Aug 2004 18:21:27 -0000 1.2 *************** *** 6,9 **** --- 6,10 ---- from wrappers import Turtle + import wx def draw(canvas): *************** *** 65,68 **** --- 66,71 ---- bList[b].fd(1) canvas.refresh() + if wx.Platform == '__WXMAC__': + canvas.redraw() canvas.autoRefresh = tempAutoRefresh |
From: Kevin A. <ka...@us...> - 2004-08-08 18:08:22
|
Update of /cvsroot/pythoncard/PythonCard/samples/life In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25454/samples/life Modified Files: lexicon.py Log Message: replaced tabs with spaces Index: lexicon.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/life/lexicon.py,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** lexicon.py 10 May 2004 00:45:19 -0000 1.15 --- lexicon.py 8 Aug 2004 18:07:43 -0000 1.16 *************** *** 17,32 **** suggested by Bill Gosper, noting that the phase shown below displays the period in binary. ! ....**......**.... ! ...*.*......*.*... ! ...*..........*... ! **.*..........*.** ! **.*.*..**..*.*.** ! ...*.*.*..*.*.*... ! ...*.*.*..*.*.*... ! **.*.*..**..*.*.** ! **.*..........*.** ! ...*..........*... ! ...*.*......*.*... ! ....**......**.... """ --- 17,32 ---- suggested by Bill Gosper, noting that the phase shown below displays the period in binary. ! ....**......**.... ! ...*.*......*.*... ! ...*..........*... ! **.*..........*.** ! **.*.*..**..*.*.** ! ...*.*.*..*.*.*... ! ...*.*.*..*.*.*... ! **.*.*..**..*.*.** ! **.*..........*.** ! ...*..........*... ! ...*.*......*.*... ! ....**......**.... """ |
From: Kevin A. <ka...@us...> - 2004-08-08 18:07:55
|
Update of /cvsroot/pythoncard/PythonCard/samples/turtle/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25454/samples/turtle/scripts Modified Files: coordinates.py pentests.py spingon.py Log Message: replaced tabs with spaces Index: pentests.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/turtle/scripts/pentests.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pentests.py 11 May 2004 01:12:51 -0000 1.1 --- pentests.py 8 Aug 2004 18:07:45 -0000 1.2 *************** *** 13,17 **** t1 = Turtle(canvas) ! t1.setBackColor('black') # background is shared among all turtles t1.color('red') t1.showTurtle() --- 13,18 ---- t1 = Turtle(canvas) ! # background is shared among all turtles ! t1.setBackColor('black') t1.color('red') t1.showTurtle() *************** *** 45,50 **** for i in range(6): [t.fd(80) for t in tList] ! #for j in range(1000000): pass # huge delay so we can see the turtle [t.rt(60) for t in tList] ! #for j in range(1000000): pass # huge delay so we can see the turtle --- 46,53 ---- for i in range(6): [t.fd(80) for t in tList] ! # huge delay so we can see the turtle ! #for j in range(1000000): pass [t.rt(60) for t in tList] ! # huge delay so we can see the turtle ! #for j in range(1000000): pass Index: spingon.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/turtle/scripts/spingon.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** spingon.py 11 May 2004 01:12:51 -0000 1.1 --- spingon.py 8 Aug 2004 18:07:45 -0000 1.2 *************** *** 87,92 **** """ ! t.color(0, 0, 0) # same as t.color('black') ! t.color(50, 100, 200) # any r, g, b values between 0 - 255 are valid """""" --- 87,94 ---- """ ! # same as t.color('black') ! t.color(0, 0, 0) ! # any r, g, b values between 0 - 255 are valid ! t.color(50, 100, 200) """""" Index: coordinates.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/turtle/scripts/coordinates.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** coordinates.py 11 May 2004 01:12:51 -0000 1.1 --- coordinates.py 8 Aug 2004 18:07:44 -0000 1.2 *************** *** 42,46 **** t.lt(i) t.fd(i * 2) ! #print t._angle # change this to write on screen, DrawText or something t.write("%d" % t._angle) t.bk(i * 2) --- 42,47 ---- t.lt(i) t.fd(i * 2) ! #print t._angle ! # change this to write on screen, DrawText or something t.write("%d" % t._angle) t.bk(i * 2) |
From: Kevin A. <ka...@us...> - 2004-08-08 18:07:55
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25454/tools/resourceEditor Modified Files: resourceEditor.py Log Message: replaced tabs with spaces Index: resourceEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/resourceEditor.py,v retrieving revision 1.202 retrieving revision 1.203 diff -C2 -d -r1.202 -r1.203 *** resourceEditor.py 8 Aug 2004 15:30:33 -0000 1.202 --- resourceEditor.py 8 Aug 2004 18:07:45 -0000 1.203 *************** *** 478,482 **** self.startGlobalOffset = [self.startGlobalOffset[0] - 1, self.startGlobalOffset[1] - 1] elif ['PasswordField', 'TextField', 'TextArea'].count(t): ! self.startGlobalOffset = [self.startGlobalOffset[0] + 3, self.startGlobalOffset[1] + 3] #print "globalPosition", globalPosition #print "self.startGlobalPosition", self.startGlobalPosition --- 478,482 ---- self.startGlobalOffset = [self.startGlobalOffset[0] - 1, self.startGlobalOffset[1] - 1] elif ['PasswordField', 'TextField', 'TextArea'].count(t): ! self.startGlobalOffset = [self.startGlobalOffset[0] + 3, self.startGlobalOffset[1] + 3] #print "globalPosition", globalPosition #print "self.startGlobalPosition", self.startGlobalPosition *************** *** 946,950 **** self.application.pw.selectComponentsList('topLeft', 'Image') else: ! self.application.pw.selectComponentsList('topLeft', 'ImageButton') # KEA 2002-02-23 self.propertyEditorWindow.clearComponentList() self.propertyEditorWindow.clearPropertyList() --- 946,951 ---- self.application.pw.selectComponentsList('topLeft', 'Image') else: ! self.application.pw.selectComponentsList('topLeft', 'ImageButton') ! # KEA 2002-02-23 self.propertyEditorWindow.clearComponentList() self.propertyEditorWindow.clearPropertyList() |
From: Kevin A. <ka...@us...> - 2004-08-08 18:07:54
|
Update of /cvsroot/pythoncard/PythonCard/tools/codeEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25454/tools/codeEditor Modified Files: macbuild.py Log Message: replaced tabs with spaces Index: macbuild.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/codeEditor/macbuild.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** macbuild.py 22 Jul 2004 22:15:12 -0000 1.1 --- macbuild.py 8 Aug 2004 18:07:45 -0000 1.2 *************** *** 36,40 **** myapp.resources.append(os.path.join(packageroot, "scriptlets")) myapp.resources.append(os.path.join(packageroot, "codeEditor.rsrc.py")) ! myapp.resources.append(os.path.join(packageroot, "modules", "runOptionsDialog.rsrc.py")) # bundlebuilder does not yet have the capability to detect what shared libraries --- 36,40 ---- myapp.resources.append(os.path.join(packageroot, "scriptlets")) myapp.resources.append(os.path.join(packageroot, "codeEditor.rsrc.py")) ! myapp.resources.append(os.path.join(packageroot, "modules", "runOptionsDialog.rsrc.py")) # bundlebuilder does not yet have the capability to detect what shared libraries |
From: Kevin A. <ka...@us...> - 2004-08-08 18:07:53
|
Update of /cvsroot/pythoncard/PythonCard/samples/moderator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25454/samples/moderator Modified Files: moderator.py Log Message: replaced tabs with spaces Index: moderator.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/moderator/moderator.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** moderator.py 30 Jul 2004 14:17:31 -0000 1.4 --- moderator.py 8 Aug 2004 18:07:44 -0000 1.5 *************** *** 11,15 **** # maximum time per speaker in seconds MAX_TIME = 5 * 60 ! #MAX_TIME = 180 DELEGATE_FILE = "delegates.txt" class Moderator(model.Background): --- 11,16 ---- # maximum time per speaker in seconds MAX_TIME = 5 * 60 ! #MAX_TIME = 180 ! DELEGATE_FILE = "delegates.txt" class Moderator(model.Background): |
From: Kevin A. <ka...@us...> - 2004-08-08 17:44:06
|
Update of /cvsroot/pythoncard/PythonCard/samples/mp3player In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21645/samples/mp3player Modified Files: mp3player.py Log Message: replaced CR with LF Index: mp3player.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/mp3player/mp3player.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mp3player.py 3 Aug 2004 17:09:19 -0000 1.1 --- mp3player.py 8 Aug 2004 17:43:56 -0000 1.2 *************** *** 36,42 **** filename = self.components.filename.text ! ## NOTE WE DON'T IMPORT PYGAME UNTIL NOW. Don't put "import pygame" at the top of the file. import pygame self.movie = pygame.movie.Movie(filename) self.movie.play() ! # it was a good idea at first, but mixer simply doesn't work, at least on the Mac ## assert os.path.exists(filename) ## from pygame import mixer ## mixer.init(44100, 2) --- 36,46 ---- filename = self.components.filename.text ! ## NOTE WE DON'T IMPORT PYGAME UNTIL NOW. Don't put "import pygame" at the top of the file. ! import pygame ! self.movie = pygame.movie.Movie(filename) ! self.movie.play() ! # it was a good idea at first, but mixer simply doesn't work, at least on the Mac ! ## assert os.path.exists(filename) ## from pygame import mixer ## mixer.init(44100, 2) |
From: Kevin A. <ka...@us...> - 2004-08-08 15:30:48
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2614/tools/resourceEditor Modified Files: resourceEditor.py Log Message: added try/except blocks for graceful exit when on_initialize doesn't finish Index: resourceEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/resourceEditor.py,v retrieving revision 1.201 retrieving revision 1.202 diff -C2 -d -r1.201 -r1.202 *** resourceEditor.py 27 Jul 2004 15:43:14 -0000 1.201 --- resourceEditor.py 8 Aug 2004 15:30:33 -0000 1.202 *************** *** 1619,1625 **** def on_close(self, event): ! if self.doExit(): ! self.saveConfig() ! self.doCleanup() event.skip() --- 1619,1632 ---- def on_close(self, event): ! try: ! # KEA 2004-04-08 ! # if an exception occurs during on_initialize ! # then doCleanup and saveConfig could fail because some windows ! # might not exist, so in that situation just exit gracefully ! if self.doExit(): ! self.saveConfig() ! self.doCleanup() ! event.skip() ! except: event.skip() |
From: Kevin A. <ka...@us...> - 2004-08-08 15:30:48
|
Update of /cvsroot/pythoncard/PythonCard/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2614/docs Modified Files: changelog.txt Log Message: added try/except blocks for graceful exit when on_initialize doesn't finish Index: changelog.txt =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/docs/changelog.txt,v retrieving revision 1.294 retrieving revision 1.295 diff -C2 -d -r1.294 -r1.295 *** changelog.txt 21 Jul 2004 20:24:09 -0000 1.294 --- changelog.txt 8 Aug 2004 15:30:33 -0000 1.295 *************** *** 3,6 **** --- 3,8 ---- Release 0.8 2004-08-?? + changed Calendar component to CAL_SEQUENTIAL_MONTH_SELECTION style + added mp3player sample switched to using wx.lib.statbmp.GenStaticBitmap on GTK for Image component Created unit-test facility. |
From: Kevin A. <ka...@us...> - 2004-08-08 15:30:48
|
Update of /cvsroot/pythoncard/PythonCard/tools/codeEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2614/tools/codeEditor Modified Files: codeEditor.py Log Message: added try/except blocks for graceful exit when on_initialize doesn't finish Index: codeEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/codeEditor/codeEditor.py,v retrieving revision 1.119 retrieving revision 1.120 diff -C2 -d -r1.119 -r1.120 *** codeEditor.py 3 Aug 2004 06:03:32 -0000 1.119 --- codeEditor.py 8 Aug 2004 15:30:33 -0000 1.120 *************** *** 430,434 **** def on_close(self, event): if self.doExit(): ! self.saveConfig() self.fileHistory = None self.printer = None --- 430,441 ---- def on_close(self, event): if self.doExit(): ! try: ! # KEA 2004-04-08 ! # if an exception occurs during on_initialize ! # then saveConfig could fail because some windows ! # might not exist, so in that situation just exit gracefully ! self.saveConfig() ! except: ! pass self.fileHistory = None self.printer = None |
From: Kevin A. <ka...@us...> - 2004-08-08 15:20:48
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1706/components Modified Files: calendar.py Log Message: changed to CAL_SEQUENTIAL_MONTH_SELECTION style Index: calendar.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/calendar.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** calendar.py 4 May 2004 04:40:20 -0000 1.18 --- calendar.py 8 Aug 2004 15:20:38 -0000 1.19 *************** *** 81,86 **** style = wx.CLIP_SIBLINGS | wx.NO_FULL_REPAINT_ON_RESIZE | calendar.CAL_SHOW_HOLIDAYS | ! calendar.CAL_SHOW_SURROUNDING_WEEKS, ! #calendar.CAL_SEQUENTIAL_MONTH_SELECTION, name = aResource.name ) --- 81,86 ---- style = wx.CLIP_SIBLINGS | wx.NO_FULL_REPAINT_ON_RESIZE | calendar.CAL_SHOW_HOLIDAYS | ! calendar.CAL_SHOW_SURROUNDING_WEEKS | ! calendar.CAL_SEQUENTIAL_MONTH_SELECTION, name = aResource.name ) |
From: Kevin A. <ka...@us...> - 2004-08-03 17:12:30
|
Update of /cvsroot/pythoncard/PythonCard/samples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30072 Modified Files: samples.rsrc.py Log Message: added mp3player Index: samples.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/samples.rsrc.py,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -d -r1.59 -r1.60 *** samples.rsrc.py 10 May 2004 05:01:59 -0000 1.59 --- samples.rsrc.py 3 Aug 2004 17:12:20 -0000 1.60 *************** *** 57,64 **** 'position':(0, 0), 'size':(150, 218), ! 'items':['addresses', 'chat', 'companies', 'conversions', 'custdb', 'dbBrowser', \ 'dialogs', 'doodle', 'flatfileDatabase', 'gadflyDatabase', \ 'hopalong', 'jabberChat', 'life', 'lsystem', 'minimal', 'minimalList', 'minimalTree', \ ! 'moderator', 'montyhall', 'multicolumnexample', 'noresource', \ 'pictureViewer', 'proof', 'pysshed', 'radioclient', 'redemo', 'reversi', 'rpn', \ 'samples', 'saveClipboardBitmap', 'searchexplorer', \ --- 57,64 ---- 'position':(0, 0), 'size':(150, 218), ! 'items':['addresses', 'ataxx', 'chat', 'companies', 'conversions', 'custdb', 'dbBrowser', \ 'dialogs', 'doodle', 'flatfileDatabase', 'gadflyDatabase', \ 'hopalong', 'jabberChat', 'life', 'lsystem', 'minimal', 'minimalList', 'minimalTree', \ ! 'moderator', 'montyhall', 'mp3player', 'multicolumnexample', 'noresource', \ 'pictureViewer', 'proof', 'pysshed', 'radioclient', 'redemo', 'reversi', 'rpn', \ 'samples', 'saveClipboardBitmap', 'searchexplorer', \ |
From: Kevin A. <ka...@us...> - 2004-08-03 17:09:28
|
Update of /cvsroot/pythoncard/PythonCard/samples/mp3player In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29478 Added Files: .cvsignore mp3player.py mp3player.rsrc.py readme.txt Log Message: added mp3player sample --- NEW FILE: mp3player.py --- #!/usr/bin/python """ __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2004/08/03 17:09:19 $" """ from PythonCard import dialog, model import os class MyBackground(model.Background): def on_initialize(self, event): # KEA 2004-08-03 # this is only going to work on the Mac # so it will need to be generalized later try: home = os.environ['HOME'] self.buildList(os.path.join(home, 'Music/iTunes/iTunes Music')) except: pass # http://www.pygame.org/docs/ref/Movie.html def on_load_mouseClick(self, event): filename = self.components.filename.text path, filename = os.path.split(filename) wildcard = "MP3 files (*.mp3)|*.mp3" result = dialog.openFileDialog(self, 'Open', path, filename, wildcard ) if result['accepted']: path = result['paths'][0] self.components.filename.text = path def on_play_mouseClick(self, event): filename = self.components.filename.text ## NOTE WE DON'T IMPORT PYGAME UNTIL NOW. Don't put "import pygame" at the top of the file. import pygame self.movie = pygame.movie.Movie(filename) self.movie.play() # it was a good idea at first, but mixer simply doesn't work, at least on the Mac ## assert os.path.exists(filename) ## from pygame import mixer ## mixer.init(44100, 2) ## mixer.music.load(filename) ## mixer.music.play() ## print mixer.music.get_busy() ## #time.sleep(5) ## #mixer.music.stop() def on_pause_mouseClick(self, event): try: self.movie.pause() except: pass def on_stop_mouseClick(self, event): try: self.movie.stop() self.movie.rewind() except: pass def buildList(self, path): mp3s = [] names = [] for root, dirs, files in os.walk(path): for name in files: if name.endswith('.mp3'): mp3s.append((root, name)) names.append(name) self.mp3s = mp3s self.components.mp3s.items = names def on_mp3s_select(self, event): sel = event.target.selection self.components.filename.text = os.path.join(self.mp3s[sel][0], self.mp3s[sel][1]) if __name__ == '__main__': app = model.Application(MyBackground) app.MainLoop() --- NEW FILE: .cvsignore --- .cvsignore *.pyc *.log .DS_Store --- NEW FILE: mp3player.rsrc.py --- {'application':{'type':'Application', 'name':'Template', 'backgrounds': [ {'type':'Background', 'name':'bgTemplate', 'title':'simple mp3player', 'size':(404, 362), 'menubar': {'type':'MenuBar', 'menus': [ {'type':'Menu', 'name':'menuFile', 'label':'&File', 'items': [ {'type':'MenuItem', 'name':'menuFileExit', 'label':'E&xit', 'command':'exit', }, ] }, ] }, 'components': [ {'type':'List', 'name':'mp3s', 'position':(10, 10), 'size':(384, 168), 'items':[], }, {'type':'Button', 'name':'pause', 'position':(190, 310), 'size':(109, -1), 'label':'Pause/Resume', }, {'type':'TextArea', 'name':'filename', 'position':(15, 190), 'size':(370, 100), }, {'type':'Button', 'name':'load', 'position':(15, 310), 'size':(74, -1), 'label':'Load', }, {'type':'Button', 'name':'play', 'position':(105, 310), 'size':(74, -1), 'label':'Play', }, {'type':'Button', 'name':'stop', 'position':(310, 310), 'size':(74, -1), 'label':'Stop', }, ] # end components } # end background ] # end backgrounds } } --- NEW FILE: readme.txt --- mp3player is a quick sample I wrote during one of the VanPy Workshop '04 presentations. mp3player uses the Movie class of PyGame to do all the real work. It might make more sense to just roll MP3 support into the PythonCard.sound module except that it will require PyGame to work and Movie has a lot more playback options than the WAV file playback in wxPython. |
From: Kevin A. <ka...@us...> - 2004-08-03 16:57:14
|
Update of /cvsroot/pythoncard/PythonCard/samples/mp3player In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27006/mp3player Log Message: Directory /cvsroot/pythoncard/PythonCard/samples/mp3player added to the repository |
From: Kevin A. <ka...@us...> - 2004-08-03 15:57:41
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14376 Modified Files: flatfileDatabase.py Log Message: fixed path issue with config loading Index: flatfileDatabase.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/flatfileDatabase.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** flatfileDatabase.py 30 Apr 2004 23:51:03 -0000 1.22 --- flatfileDatabase.py 3 Aug 2004 15:57:32 -0000 1.23 *************** *** 770,775 **** def getDataFile(self, filename): # assume the ini file is in the same directory as the script ! path = os.path.join(os.path.dirname(sys.argv[0]), filename) parser = ConfigParser.ConfigParser() parser.read(path) --- 770,778 ---- def getDataFile(self, filename): + # KEA 2004-08-03 + # this should probably be made more flexible by passing in a full path + # so that we can switch to using the config directory... # assume the ini file is in the same directory as the script ! path = os.path.join(self.application.applicationDirectory, filename) parser = ConfigParser.ConfigParser() parser.read(path) |
From: Kevin A. <ka...@us...> - 2004-08-03 15:57:21
|
Update of /cvsroot/pythoncard/PythonCard/samples/gadflyDatabase In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14211/gadflyDatabase Modified Files: gadflyDatabase.py Log Message: fixed path issue with config loading Index: gadflyDatabase.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/gadflyDatabase/gadflyDatabase.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** gadflyDatabase.py 14 Apr 2004 02:38:48 -0000 1.3 --- gadflyDatabase.py 3 Aug 2004 15:57:12 -0000 1.4 *************** *** 24,28 **** if __name__ == '__main__': # assume the ini file is in the same directory as the script ! path = os.path.join(os.path.dirname(sys.argv[0]), CONFIG_FILE) parser = ConfigParser.ConfigParser() parser.read(path) --- 24,28 ---- if __name__ == '__main__': # assume the ini file is in the same directory as the script ! path = os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), CONFIG_FILE) parser = ConfigParser.ConfigParser() parser.read(path) |
From: Kevin A. <ka...@us...> - 2004-08-03 15:57:21
|
Update of /cvsroot/pythoncard/PythonCard/samples/twistedEchoClient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14211/twistedEchoClient Modified Files: twistedEchoClient.rsrc.py Log Message: fixed path issue with config loading Index: twistedEchoClient.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/twistedEchoClient/twistedEchoClient.rsrc.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** twistedEchoClient.rsrc.py 10 May 2004 05:02:45 -0000 1.2 --- twistedEchoClient.rsrc.py 3 Aug 2004 15:57:12 -0000 1.3 *************** *** 37,41 **** 'name':'buttonLogin', 'position':(22, 140), ! 'size':(117, 26), 'label':'Login', }, --- 37,41 ---- 'name':'buttonLogin', 'position':(22, 140), ! 'size':(117, -1), 'label':'Login', }, *************** *** 58,62 **** 'name':'buttonSend', 'position':(151, 140), ! 'size':(125, 25), 'label':'Send', }, --- 58,62 ---- 'name':'buttonSend', 'position':(151, 140), ! 'size':(125, -1), 'label':'Send', }, |
From: Kevin A. <ka...@us...> - 2004-08-03 15:57:20
|
Update of /cvsroot/pythoncard/PythonCard/samples/flatfileDatabase In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14211/flatfileDatabase Modified Files: flatfileDatabase.py Log Message: fixed path issue with config loading Index: flatfileDatabase.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/flatfileDatabase/flatfileDatabase.py,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** flatfileDatabase.py 14 Apr 2004 02:38:47 -0000 1.20 --- flatfileDatabase.py 3 Aug 2004 15:57:05 -0000 1.21 *************** *** 23,27 **** if __name__ == '__main__': # assume the ini file is in the same directory as the script ! path = os.path.join(os.path.dirname(sys.argv[0]), CONFIG_FILE) parser = ConfigParser.ConfigParser() parser.read(path) --- 23,27 ---- if __name__ == '__main__': # assume the ini file is in the same directory as the script ! path = os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), CONFIG_FILE) parser = ConfigParser.ConfigParser() parser.read(path) |
From: Kevin A. <ka...@us...> - 2004-08-03 06:03:41
|
Update of /cvsroot/pythoncard/PythonCard/tools/codeEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18010/tools/codeEditor Modified Files: codeEditor.py Log Message: fixed bad line endings Index: codeEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/codeEditor/codeEditor.py,v retrieving revision 1.118 retrieving revision 1.119 diff -C2 -d -r1.118 -r1.119 *** codeEditor.py 22 Jul 2004 22:15:12 -0000 1.118 --- codeEditor.py 3 Aug 2004 06:03:32 -0000 1.119 *************** *** 25,29 **** import webbrowser ! # KEA 2004-07-22 # force imports for components used in .rsrc.py file # so we can do a make standalones with py2exe and bundlebuilder from PythonCard.components import codeeditor USERCONFIG = 'user.config.txt' --- 25,32 ---- import webbrowser ! # KEA 2004-07-22 ! # force imports for components used in .rsrc.py file ! # so we can do a make standalones with py2exe and bundlebuilder ! from PythonCard.components import codeeditor USERCONFIG = 'user.config.txt' |