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-07-20 18:21:44
|
Update of /cvsroot/pythoncard/PythonCard/samples/financial In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26840/financial Log Message: Directory /cvsroot/pythoncard/PythonCard/samples/financial added to the repository |
From: Kevin A. <ka...@us...> - 2004-07-20 17:57:28
|
Update of /cvsroot/pythoncard/PythonCard/samples/lsystem In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20991/samples/lsystem Added Files: .cvsignore Log Message: added .cvsignore --- NEW FILE: .cvsignore --- .cvsignore *.pyc *.log .DS_Store |
From: Kevin A. <ka...@us...> - 2004-07-20 17:55:00
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20325/tools/resourceEditor Modified Files: resourceEditor.py Log Message: moved the createDC call and added a call on_resize for Mac Index: resourceEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/resourceEditor.py,v retrieving revision 1.198 retrieving revision 1.199 diff -C2 -d -r1.198 -r1.199 *** resourceEditor.py 14 May 2004 18:22:43 -0000 1.198 --- resourceEditor.py 20 Jul 2004 17:54:50 -0000 1.199 *************** *** 145,149 **** self.rsrc = resource.ResourceFile(path).getResource() - self.createDC() self.updatePanel(self.rsrc) # KEA 2004-05-14 --- 145,148 ---- *************** *** 206,209 **** --- 205,210 ---- 'bottomRight':self.on_bottomRight_mouseDrag } + + self.createDC() *************** *** 413,416 **** --- 414,421 ---- self.dc = dc + def on_size(self, event): + self.createDC() + event.skip() + def drawTheRect(self): position = [self.startGlobalPosition[0], self.startGlobalPosition[1]] |
From: Kevin A. <ka...@us...> - 2004-07-19 18:21:53
|
Update of /cvsroot/pythoncard/PythonCard/tools/codeEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18207/tools/codeEditor Modified Files: codeEditor.py codeEditor.rsrc.py Log Message: added menuShellChangeDirectory method to simplify changing dir in the shell Index: codeEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/codeEditor/codeEditor.py,v retrieving revision 1.116 retrieving revision 1.117 diff -C2 -d -r1.116 -r1.117 *** codeEditor.py 14 May 2004 19:23:11 -0000 1.116 --- codeEditor.py 19 Jul 2004 18:21:44 -0000 1.117 *************** *** 906,909 **** --- 906,923 ---- configuration.saveUserConfiguration(self.application) + def on_menuShellChangeDirectory_select(self, event): + try: + if self.documentPath: + path = os.path.dirname(self.documentPath) + else: + path = '' + result = dialog.directoryDialog(self, 'Choose a directory', path) + if result['accepted']: + path = result['path'] + os.chdir(path) + self.application.shell.run('os.getcwd()') + except: + pass + def on_menuScriptletSaveShellSelection_select(self, event): if self.application.shell is not None: Index: codeEditor.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/codeEditor/codeEditor.rsrc.py,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** codeEditor.rsrc.py 10 May 2004 05:02:48 -0000 1.32 --- codeEditor.rsrc.py 19 Jul 2004 18:21:45 -0000 1.33 *************** *** 273,276 **** --- 273,280 ---- }, {'type':'MenuItem', + 'name':'menuShellChangeDirectory', + 'label':'Change &Directory...', + }, + {'type':'MenuItem', 'name':'scriptletSep1', 'label':'-', |
From: Kevin A. <ka...@us...> - 2004-07-19 17:47:47
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11554/components Modified Files: image.py imagebutton.py Log Message: reverted back to default size of (-1, -1) this may cause problems with the resourceEditor now... Index: imagebutton.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/imagebutton.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** imagebutton.py 13 May 2004 02:40:24 -0000 1.17 --- imagebutton.py 19 Jul 2004 17:47:39 -0000 1.18 *************** *** 26,30 **** # KEA since 3d is Windows specific, make transparent the default 'border' : { 'presence' : 'optional', 'default' : 'transparent', 'values' : [ '3d', 'transparent', 'none' ] }, ! 'size' : { 'presence' : 'optional', 'default' : [ 50, 50 ] }, } widget.WidgetSpec.__init__( self, 'ImageButton', 'Image', events, attributes ) --- 26,30 ---- # KEA since 3d is Windows specific, make transparent the default 'border' : { 'presence' : 'optional', 'default' : 'transparent', 'values' : [ '3d', 'transparent', 'none' ] }, ! 'size' : { 'presence' : 'optional', 'default' : [ -1, -1 ] }, } widget.WidgetSpec.__init__( self, 'ImageButton', 'Image', events, attributes ) Index: image.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/image.py,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** image.py 13 May 2004 02:40:24 -0000 1.21 --- image.py 19 Jul 2004 17:47:39 -0000 1.22 *************** *** 20,24 **** # use ImageButton if you want images with transparent border #'border' : { 'presence' : 'optional', 'default' : '3d', 'values' : [ '3d', 'transparent', 'none' ] }, ! 'size' : { 'presence' : 'optional', 'default' : [ 50, 50 ] }, } widget.WidgetSpec.__init__( self, 'Image', 'Widget', events, attributes ) --- 20,24 ---- # use ImageButton if you want images with transparent border #'border' : { 'presence' : 'optional', 'default' : '3d', 'values' : [ '3d', 'transparent', 'none' ] }, ! 'size' : { 'presence' : 'optional', 'default' : [ -1, -1 ] }, } widget.WidgetSpec.__init__( self, 'Image', 'Widget', events, attributes ) |
From: Kevin A. <ka...@us...> - 2004-07-19 17:40:53
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10545/components Modified Files: textarea.py Log Message: removed PROCESS_TAB flag for 2.5.2.x Index: textarea.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/textarea.py,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** textarea.py 13 May 2004 02:40:24 -0000 1.25 --- textarea.py 19 Jul 2004 17:40:44 -0000 1.26 *************** *** 50,54 **** aResource.position, aResource.size, ! style = wx.TE_RICH2 | wx.TE_PROCESS_TAB | wx.TE_MULTILINE | borderStyle | \ textfield.getAlignment(aResource.alignment) | \ wx.NO_FULL_REPAINT_ON_RESIZE | wx.CLIP_SIBLINGS, --- 50,57 ---- aResource.position, aResource.size, ! # KEA 2004-07-19 ! # don't use wx.TE_PROCESS_TAB with 2.5.2 and later ! ## style = wx.TE_RICH2 | wx.TE_PROCESS_TAB | wx.TE_MULTILINE | borderStyle | \ ! style = wx.TE_RICH2 | wx.TE_MULTILINE | borderStyle | \ textfield.getAlignment(aResource.alignment) | \ wx.NO_FULL_REPAINT_ON_RESIZE | wx.CLIP_SIBLINGS, |
From: Kevin A. <ka...@us...> - 2004-07-18 16:46:02
|
Update of /cvsroot/pythoncard/PythonCard/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18946/tests Added Files: .cvsignore Log Message: added .cvsignore to tests --- NEW FILE: .cvsignore --- .cvsignore *.pyc *.log .DS_Store |
From: Kevin A. <ka...@us...> - 2004-07-18 16:43:37
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18518/tools/resourceEditor/modules Modified Files: resourceOutput.py Log Message: changed asTuple to Get removed 'font' attribute from Calendar component in widgets sample removed non-printable character in distance.py Index: resourceOutput.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/modules/resourceOutput.py,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** resourceOutput.py 10 May 2004 05:02:50 -0000 1.25 --- resourceOutput.py 18 Jul 2004 16:43:28 -0000 1.26 *************** *** 27,34 **** imgWidgets = ['Image', 'ImageButton'] comp = background.propertyEditorWindow.components ! dFgC = comp.wUpdate.foregroundColor.asTuple() ! dBgC = comp.wUpdate.backgroundColor.asTuple() dFont = repr(comp.wUpdate.font) ! dTextBgC = comp.wField.backgroundColor.asTuple() # make sure these primary attributes show up --- 27,34 ---- imgWidgets = ['Image', 'ImageButton'] comp = background.propertyEditorWindow.components ! dFgC = comp.wUpdate.foregroundColor.Get() ! dBgC = comp.wUpdate.backgroundColor.Get() dFont = repr(comp.wUpdate.font) ! dTextBgC = comp.wField.backgroundColor.Get() # make sure these primary attributes show up *************** *** 79,87 **** if key == 'backgroundColor' and \ aWidget.__class__.__name__ in txtWidgets and \ ! value.asTuple() == dTextBgC: continue ! if key == 'foregroundColor' and value.asTuple() == dFgC: continue ! if key == 'backgroundColor' and value.asTuple() == dBgC: continue if key == 'font' and repr(value) == dFont: --- 79,87 ---- if key == 'backgroundColor' and \ aWidget.__class__.__name__ in txtWidgets and \ ! value.Get() == dTextBgC: continue ! if key == 'foregroundColor' and value.Get() == dFgC: continue ! if key == 'backgroundColor' and value.Get() == dBgC: continue if key == 'font' and repr(value) == dFont: |
From: Kevin A. <ka...@us...> - 2004-07-18 16:43:36
|
Update of /cvsroot/pythoncard/PythonCard/samples/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18518/samples/widgets Modified Files: widgets.rsrc.py Log Message: changed asTuple to Get removed 'font' attribute from Calendar component in widgets sample removed non-printable character in distance.py Index: widgets.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/widgets/widgets.rsrc.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** widgets.rsrc.py 10 May 2004 05:02:47 -0000 1.22 --- widgets.rsrc.py 18 Jul 2004 16:43:28 -0000 1.23 *************** *** 114,118 **** 'name':'calCalendar', 'position':(299, 200), - 'font':{'faceName': 'Arial', 'family': 'sansSerif', 'size': 8}, }, --- 114,117 ---- |
From: Kevin A. <ka...@us...> - 2004-07-18 16:43:36
|
Update of /cvsroot/pythoncard/PythonCard/samples/turtle/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18518/samples/turtle/scripts Modified Files: distance.py Log Message: changed asTuple to Get removed 'font' attribute from Calendar component in widgets sample removed non-printable character in distance.py Index: distance.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/turtle/scripts/distance.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** distance.py 11 May 2004 01:12:51 -0000 1.1 --- distance.py 18 Jul 2004 16:43:28 -0000 1.2 *************** *** 27,31 **** t2.forward(100) d = t2.distance(t1) ! t2.write("%f" % d) # should display 100 # test the odometer reading --- 27,32 ---- t2.forward(100) d = t2.distance(t1) ! # should display 100 ! t2.write("%f" % d) # test the odometer reading |
From: Kevin A. <ka...@us...> - 2004-07-17 17:46:32
|
Update of /cvsroot/pythoncard/PythonCard/samples/slideshow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31945/samples/slideshow Modified Files: slideshow.py slideshow.rsrc.py Log Message: added ESC key to stop slideshow and get out of fullscreen mode Index: slideshow.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/slideshow/slideshow.rsrc.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** slideshow.rsrc.py 10 May 2004 05:02:41 -0000 1.11 --- slideshow.rsrc.py 17 Jul 2004 17:46:24 -0000 1.12 *************** *** 63,66 **** --- 63,69 ---- 'checkable':1, 'checked':0}, + { 'type':'MenuItem', + 'name':'menuSlideshowStopSlides', + 'label':'Stop Slides\tESC'}, {'type':'MenuItem', 'name':'menuSlideShowSep1', Index: slideshow.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/slideshow/slideshow.py,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** slideshow.py 10 May 2004 00:45:22 -0000 1.38 --- slideshow.py 17 Jul 2004 17:46:24 -0000 1.39 *************** *** 370,373 **** --- 370,385 ---- self.ShowFullScreen(self.menuBar.getChecked('menuSlideshowToggleFullScreen')) + def on_menuSlideshowStopSlides_select(self, event): + # KEA 2004-07-17 + # if the slideshow is running in fullscreen mode then + # people can panic not knowing how to stop the slideshow and get + # control back so I made the ESC key stop the slideshow and + # go back to a normal window size + if self.clockTimer.isRunning(): + self.clockTimer.stop() + if self.menuBar.getChecked('menuSlideshowToggleFullScreen'): + self.menuBar.setChecked('menuSlideshowToggleFullScreen', False) + self.ShowFullScreen(False) + def on_menuSlideshowFirstSlide_select(self, event): if self.fileList is not None and self.fileList != []: |
From: Kevin A. <ka...@us...> - 2004-07-17 17:20:20
|
Update of /cvsroot/pythoncard/PythonCard/samples/reversi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28784/samples/reversi Modified Files: reversi.py Log Message: not sure, may have to revert Index: reversi.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/reversi/reversi.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** reversi.py 11 May 2004 12:49:20 -0000 1.2 --- reversi.py 17 Jul 2004 17:20:10 -0000 1.3 *************** *** 16,19 **** --- 16,20 ---- from random import randint import time + import wx EMPTY = None *************** *** 254,258 **** view.autoRefresh = True view.refresh() ! view.redraw() def updateStatus(self): --- 255,262 ---- view.autoRefresh = True view.refresh() ! if wx.Platform == '__WXMAC__': ! # Mac won't update screen even after a Blit ! # until the event handler ends, so we have to force an update ! view.redraw() def updateStatus(self): |
From: Kevin A. <ka...@us...> - 2004-07-17 17:20:20
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28784 Modified Files: model.py statusbar.py Log Message: not sure, may have to revert Index: statusbar.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/statusbar.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** statusbar.py 13 May 2004 05:21:24 -0000 1.12 --- statusbar.py 17 Jul 2004 17:20:10 -0000 1.13 *************** *** 20,24 **** else: wx.StatusBar.__init__(self, parent) ! if wx.Platform == '__WXMAC__': self.SetSize((self.GetSizeTuple()[0], 15)) ! text = property(wx.StatusBar.GetStatusText, wx.StatusBar.SetStatusText, doc="text displayed in the statusBar") --- 20,25 ---- else: wx.StatusBar.__init__(self, parent) ! if wx.Platform == '__WXMAC__': ! self.SetSize((self.GetSizeTuple()[0], 15)) ! text = property(wx.StatusBar.GetStatusText, wx.StatusBar.SetStatusText, doc="text displayed in the statusBar") Index: model.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/model.py,v retrieving revision 1.177 retrieving revision 1.178 diff -C2 -d -r1.177 -r1.178 *** model.py 20 May 2004 18:35:44 -0000 1.177 --- model.py 17 Jul 2004 17:20:10 -0000 1.178 *************** *** 961,966 **** self.statusBar = self.createStatusBar() self.SetStatusBar(self.statusBar) ! if wx.Platform == '__WXMAC__': #self.statusBar.PositionStatusBar() ! pass else: if bar is not None: self.SetStatusBar(None) --- 961,968 ---- self.statusBar = self.createStatusBar() self.SetStatusBar(self.statusBar) ! if wx.Platform == '__WXMAC__': ! #self.statusBar.PositionStatusBar() ! pass ! else: if bar is not None: self.SetStatusBar(None) |
From: Kevin A. <ka...@us...> - 2004-05-25 19:47:20
|
Update of /cvsroot/pythoncard/PythonCard/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10623/tests Modified Files: runAllTests.py Added Files: runTimeTest.py Log Message: renamed test.py to runTimeTest.py and moved it to tests updated runAllTests.py to use endswith instead of regular expression removed .rsrc.py from tests Index: runAllTests.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tests/runAllTests.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** runAllTests.py 22 May 2004 01:05:29 -0000 1.1 --- runAllTests.py 25 May 2004 19:47:08 -0000 1.2 *************** *** 11,19 **** the command line. It defaults to using pyunit.TextTestRunner. """ ! import pyunit, sys ! import os, os.path, re def loadTheSuite(modName): - import types try: mod = __import__(modName, globals(), locals(), []) --- 11,21 ---- the command line. It defaults to using pyunit.TextTestRunner. """ ! import os ! import sys ! import types ! import re ! import pyunit def loadTheSuite(modName): try: mod = __import__(modName, globals(), locals(), []) *************** *** 53,59 **** lambda fileName: loadTheSuite(os.path.splitext(fileName)[0]), filter( ! lambda x: re.match("[^.]*\.py$", x) ! and not re.match(ignoredFiles, x) ! and x!= 'setup.py', files))) os.chdir(walkPos) --- 55,62 ---- lambda fileName: loadTheSuite(os.path.splitext(fileName)[0]), filter( ! ## lambda x: re.match("[^.]*\.py$", x) ! lambda x: (not x.endswith('.rsrc.py') and x.endswith('.py') or x.endswith('.pyw')) ! and not re.match(ignoredFiles, x), ! ## and x!= 'setup.py', files))) os.chdir(walkPos) --- NEW FILE: runTimeTest.py --- """ __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2004/05/25 19:47:08 $" """ import sys from PythonCard import model import threading import wx class Runtime( threading.Thread ) : def __init__( self, path, clazz ) : threading.Thread.__init__( self ) sys.argv = [ path ] self._clazz = clazz self._running = False self.start() def run( self ) : self._app = model.Application( self._clazz ) self._running = True self._app.MainLoop() def getApplication( self ) : while not self._running : pass return self._app class User( object ) : def __init__( self, window ) : """ Create a test proxy to a PythonCard window. """ self._window = window def click( self, path ) : """ Generate a mouse down event for the button identified by 'path'. Path example: myPanel.myButton """ button = self._window.getComponent( path ) event = wx.CommandEvent( wx.wxEVT_COMMAND_BUTTON_CLICKED, button.GetId() ) wx.PostEvent( button, event ) def type( self, path, text ) : """ Type the 'text', character by character, into the TextField or TextArea identified by 'path' Path example: myPanel.myField """ field = self._window.getComponent( path ) field.SetValue( text ) #event = wx.CommandEvent( wx.wxEVT_COMMAND_TEXT_ENTER, field.GetId() ) #wx.PostEvent( field, event ) def select( self, path, value ) : """ Set the selected value of the component identified by path to 'value'. This method can be used for popop menus, and single selection lists. Path example: myPanel.myMenu """ pass |
From: Kevin A. <ka...@us...> - 2004-05-25 19:47:18
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10623/components Modified Files: codeeditor.py Log Message: renamed test.py to runTimeTest.py and moved it to tests updated runAllTests.py to use endswith instead of regular expression removed .rsrc.py from tests Index: codeeditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/codeeditor.py,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** codeeditor.py 13 May 2004 02:40:24 -0000 1.36 --- codeeditor.py 25 May 2004 19:47:08 -0000 1.37 *************** *** 119,122 **** --- 119,126 ---- self.MarkerDefine(stc.STC_MARKNUM_FOLDEROPEN, stc.STC_MARK_BOXMINUS, "white", "black") + # KEA 2004-05-20 + # get rid of the annoying text drag and drop + #stc.EVT_STC_START_DRAG(self, self.GetId(), self.OnStartDrag) + stc.EVT_STC_MARGINCLICK(self, self.GetId(), self.OnMarginClick) *************** *** 363,366 **** --- 367,376 ---- STCStyleEditor.initSTC(self, config, style) + def OnStartDrag(self, evt): + evt.SetDragText("") + pos = self.GetCurrentPos() + self.SetSelection(pos, pos) + evt.Skip() + ClearSelection = stc.StyledTextCtrl.Clear |
From: Kevin A. <ka...@us...> - 2004-05-25 19:47:17
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10623 Modified Files: testIgnore.py Removed Files: test.py Log Message: renamed test.py to runTimeTest.py and moved it to tests updated runAllTests.py to use endswith instead of regular expression removed .rsrc.py from tests --- test.py DELETED --- Index: testIgnore.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/testIgnore.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** testIgnore.py 22 May 2004 01:05:29 -0000 1.1 --- testIgnore.py 25 May 2004 19:47:07 -0000 1.2 *************** *** 1,3 **** # ignore is a regular expression that will match the filenames # for the modules to exclude. ! ignore = '(setup)|(fixdc)\.py$' --- 1,3 ---- # ignore is a regular expression that will match the filenames # for the modules to exclude. ! ignore = '(pycrustrc)|(install-pythoncard)|(setup)|(fixdc)\.py$' |
From: Kevin A. <ka...@us...> - 2004-05-20 18:35:54
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7683 Modified Files: model.py Log Message: added py2exe support to CustomDialog Index: model.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/model.py,v retrieving revision 1.176 retrieving revision 1.177 diff -C2 -d -r1.176 -r1.177 *** model.py 20 May 2004 18:32:11 -0000 1.176 --- model.py 20 May 2004 18:35:44 -0000 1.177 *************** *** 1134,1138 **** # a default based on the name if aDialogRsrc is None: ! filename = sys.modules[self.__class__.__module__].__file__ # chop the .pyc or .pyo from the end base, ext = os.path.splitext(filename) --- 1134,1148 ---- # a default based on the name if aDialogRsrc is None: ! if util.main_is_frozen(): ! # KEA 2004-05-20 ! # running standalone ! # need to support py2exe differently than bundlebuilder and mcmillan probably ! # but this is the py2exe 0.5 way ! # figure out the .rsrc.py filename based on the module name stored in library.zip ! filename = os.path.split(sys.modules[self.__class__.__module__].__file__)[1] ! filename = os.path.join(parent.application.applicationDirectory, filename) ! else: ! # figure out the .rsrc.py filename based on the module name ! filename = sys.modules[self.__class__.__module__].__file__ # chop the .pyc or .pyo from the end base, ext = os.path.splitext(filename) |
From: Kevin A. <ka...@us...> - 2004-05-20 18:32:21
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7164 Modified Files: model.py Log Message: removed extra line Index: model.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/model.py,v retrieving revision 1.175 retrieving revision 1.176 diff -C2 -d -r1.175 -r1.176 *** model.py 20 May 2004 18:16:09 -0000 1.175 --- model.py 20 May 2004 18:32:11 -0000 1.176 *************** *** 148,160 **** # figure out the .rsrc.py filename based on the module name stored in library.zip filename = os.path.split(sys.modules[frameClass.__module__].__file__)[1] - #print frameClass.__module__ - #print sys.modules[frameClass.__module__].__file__ - #print parent.application.applicationDirectory - #print filename filename = os.path.join(parent.application.applicationDirectory, filename) else: # figure out the .rsrc.py filename based on the module name filename = sys.modules[frameClass.__module__].__file__ - filename = sys.modules[frameClass.__module__].__file__ # chop the .pyc or .pyo from the end base, ext = os.path.splitext(filename) --- 148,155 ---- |
From: Kevin A. <ka...@us...> - 2004-05-20 18:16:21
|
Update of /cvsroot/pythoncard/PythonCard/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3662/docs Modified Files: changelog.txt Log Message: updated childWindow resource loading to better support standalones Index: changelog.txt =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/docs/changelog.txt,v retrieving revision 1.291 retrieving revision 1.292 diff -C2 -d -r1.291 -r1.292 *** changelog.txt 13 May 2004 02:40:25 -0000 1.291 --- changelog.txt 20 May 2004 18:16:10 -0000 1.292 *************** *** 3,6 **** --- 3,7 ---- Release 0.8 2004-05-?? + updated childWindow resource loading to better support standalones refactored resourceEditor to query component spec for default set of attributes in on_componentAdd_command |
From: Kevin A. <ka...@us...> - 2004-05-20 18:16:20
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3662 Modified Files: model.py Log Message: updated childWindow resource loading to better support standalones Index: model.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/model.py,v retrieving revision 1.174 retrieving revision 1.175 diff -C2 -d -r1.174 -r1.175 *** model.py 13 May 2004 17:53:58 -0000 1.174 --- model.py 20 May 2004 18:16:09 -0000 1.175 *************** *** 141,145 **** if filename is None: if rsrc is None: ! # figure out the .rsrc.py filename based on the module name filename = sys.modules[frameClass.__module__].__file__ # chop the .pyc or .pyo from the end --- 141,159 ---- if filename is None: if rsrc is None: ! if util.main_is_frozen(): ! # KEA 2004-05-20 ! # running standalone ! # need to support py2exe differently than bundlebuilder and mcmillan probably ! # but this is the py2exe 0.5 way ! # figure out the .rsrc.py filename based on the module name stored in library.zip ! filename = os.path.split(sys.modules[frameClass.__module__].__file__)[1] ! #print frameClass.__module__ ! #print sys.modules[frameClass.__module__].__file__ ! #print parent.application.applicationDirectory ! #print filename ! filename = os.path.join(parent.application.applicationDirectory, filename) ! else: ! # figure out the .rsrc.py filename based on the module name ! filename = sys.modules[frameClass.__module__].__file__ filename = sys.modules[frameClass.__module__].__file__ # chop the .pyc or .pyo from the end |
From: Kevin A. <ka...@us...> - 2004-05-18 17:20:41
|
Update of /cvsroot/pythoncard/PythonCard/samples/lsystem In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21941 Modified Files: readme.txt Added Files: lsystemInteractive.py lsystemInteractive.rsrc.py Log Message: added lsystemInteractive which draws pattern anti-aliased --- NEW FILE: lsystemInteractive.py --- #!/usr/bin/python """ __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2004/05/18 17:20:31 $" """ from PythonCard import clipboard, dialog, graphic, model from PythonCard.turtle import AbstractTurtle, BitmapTurtle import wx import os import time import lsystem class LSystem(lsystem.LSystem): def on_initialize(self, event): self.filename = None #self.on_iterations_select(None) #self.on_angle_select(None) self.components.iterationDisplay.text = \ str(self.components.iterations.value) self.components.angleDisplay.text = \ str(self.components.angle.value) self.on_Render_command(None) # depending on the complexity of the pattern string # my system becomes pretty unresponsive above 6 or 7 iterations def on_iterations_select(self, event): self.components.iterationDisplay.text = \ str(self.components.iterations.value) self.components.iterationDisplay.redraw() self.on_Render_command(None) def on_angle_select(self, event): self.components.angleDisplay.text = \ str(self.components.angle.value) self.components.angleDisplay.redraw() self.on_Render_command(None) def on_angleDisplay_textUpdate(self, event): # how do we want to validate here # just use a try/except block? try: self.components.angle.value = \ int(self.components.angleDisplay.text) self.on_Render_command(None) except: pass ## # this seemed like a good idea, but you tend to press Render so it isn't needed ## def on_scriptField_closeField(self, event): ## self.on_Render_command(None) def on_Render_command(self, event): self.statusBar.text = "Drawing, please wait..." starttime = time.time() fractalString = self.expand( self.components.scriptField.text, self.components.iterations.value) borderWidth = 5.0 * 4 angle = self.components.angle.value bounds = self.drawAbstractFractal( fractalString, 'blue', 1, angle, (0,0)) width, height = self.components.bufOff.size scale = min( (width - 2 * borderWidth) / (bounds[2]-bounds[0]), (height - 2 * borderWidth) / (bounds[3]-bounds[1])) startPos = (bounds[0] * -scale + borderWidth, bounds[1] * -scale + borderWidth) ## self.components.bufOff.autoRefresh = True self.components.bufOff.autoRefresh = False self.drawFractal( fractalString, 'blue', scale, angle, startPos) # the bufOff BitmapCanvas should always be 4x the size # of the onscreen BitmapCanvas so we have a simple # method to anti-alias the drawing # also need to add some padding around side, so I # multiplied borderWidth * 4 above bmp = self.components.bufOff.getBitmap() self.components.onscreen.drawBitmapScaled(bmp, (0, 0), self.components.onscreen.size) # not sure if this is needed to prevent a memory leak bmp = None stoptime = time.time() self.statusBar.text = "Draw time: %.2f seconds" % (stoptime - starttime) def drawFractal(self, aFractalString, color, legLength, angle, startPos): self.components.bufOff.clear() t = BitmapTurtle(self.components.bufOff) t.color(color) t.width(3) #t.setBackColor('black') t.cls() t.lt(90) t.moveTo(startPos[0], startPos[1]) ## bounds = list(startPos + startPos) for char in aFractalString: if char=='F': t.fd(legLength) curPos = t.getXY() ## bounds[0] = min(bounds[0], curPos[0]) ## bounds[1] = min(bounds[1], curPos[1]) ## bounds[2] = max(bounds[2], curPos[0]) ## bounds[3] = max(bounds[3], curPos[1]) elif char=='+': t.rt(angle) elif char=='-': t.lt(angle) elif char=='B': t.bk(legLength) elif char=='[': t.push() elif char==']': t.pop() ## return bounds if __name__ == '__main__': app = model.Application(LSystem) app.MainLoop() --- NEW FILE: lsystemInteractive.rsrc.py --- {'application':{'type':'Application', 'name':'Doodle', 'backgrounds': [ {'type':'Background', 'name':'bgLSystem', 'title':'L-System PythonCard Application', 'position':(59, 74), 'size':(579, 550), 'statusBar':1, 'style':['resizeable'], 'menubar': {'type':'MenuBar', 'menus': [ {'type':'Menu', 'name':'menuFile', 'label':'&File', 'items': [ {'type':'MenuItem', 'name':'menuFileOpen', 'label':'&Open...\tCtrl+O', }, {'type':'MenuItem', 'name':'menuFileSaveAs', 'label':'Save &As...', }, {'type':'MenuItem', 'name':'fileSep1', 'label':'-', }, {'type':'MenuItem', 'name':'menuFileExit', 'label':'E&xit\tAlt+X', 'command':'exit', }, ] }, {'type':'Menu', 'name':'menuEdit', 'label':'&Edit', 'items': [ {'type':'MenuItem', 'name':'menuEditCopy', 'label':'&Copy\tCtrl+C', }, {'type':'MenuItem', 'name':'menuEditPaste', 'label':'&Paste\tCtrl+V', }, {'type':'MenuItem', 'name':'editSep1', 'label':'-', }, {'type':'MenuItem', 'name':'menuEditClear', 'label':'&Clear', 'command':'editClear', }, ] }, {'type':'Menu', 'name':'menuRender', 'label':'&Render', 'items': [ {'type':'MenuItem', 'name':'menuRenderRenderNow', 'label':'&Render Now\tCtrl+R', 'command':'Render', }, ] }, ] }, 'components': [ {'type':'TextField', 'name':'angleDisplay', 'position':(414, 25), 'size':(36, -1), }, {'type':'StaticText', 'name':'StaticText2', 'position':(371, 29), 'text':'Angle:', }, {'type':'Slider', 'name':'angle', 'position':(367, 54), 'size':(200, 20), 'labels':False, 'layout':'horizontal', 'max':360, 'min':0, 'tickFrequency':0, 'ticks':False, 'value':45, }, {'type':'StaticText', 'name':'iterationDisplay', 'position':(427, 76), }, {'type':'StaticText', 'name':'StaticText1', 'position':(368, 76), 'text':'Iterations:', }, {'type':'Slider', 'name':'iterations', 'position':(364, 98), 'size':(200, 20), 'labels':False, 'layout':'horizontal', 'max':10, 'min':1, 'tickFrequency':0, 'ticks':False, 'value':3, }, {'type':'Button', 'name':'btnRender', 'position':(1, 35), 'command':'Render', 'label':'Render', }, {'type':'TextArea', 'name':'scriptField', 'position':(96, 0), 'size':(201, 118), 'text':'axiom=l\nl=+rf-lfl-fr+\nr=-lf+rfr+fl-', }, {'type':'Button', 'name':'btnColor', 'position':(1, 67), 'label':'Color', }, {'type':'BitmapCanvas', 'name':'onscreen', 'position':(0, 121), 'size':(568, 348), #'backgroundColor':(0, 0, 0), }, {'type':'BitmapCanvas', 'name':'bufOff', 'position':(0, 121), 'size':(568 * 4, 348 * 4), #'backgroundColor':(0, 0, 0), 'visible':False, }, ] # end components } # end background ] # end backgrounds } } Index: readme.txt =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/lsystem/readme.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** readme.txt 14 May 2004 16:32:35 -0000 1.3 --- readme.txt 18 May 2004 17:20:31 -0000 1.4 *************** *** 5,7 **** http://www.biologie.uni-hamburg.de/b-online/e28_3/lsys.html ! Contributed by Arlo Belshee, Kim Wallmark, Ward Cunningham, and Kevin Altis. \ No newline at end of file --- 5,46 ---- http://www.biologie.uni-hamburg.de/b-online/e28_3/lsys.html ! Contributed by Arlo Belshee, Kim Wallmark, Ward Cunningham, and Kevin Altis. ! ! some examples until we have a file load/save implemented... ! ! axiom=l ! l=+rf-lfl-fr+ ! r=-lf+rfr+fl- ! ! koch ! angle=10 ! iterations=3 ! axiom=f+f+f+f ! f=f+f-f-ff+f+f-f ! ! seaweed ! angle=21 ! iterations=3 ! axiom=[f-f+af][+fa] ! a=ff+a-f ! f=f[-aff+fa+f-bbb][-ff] ! ! wheat ! angle=10 ! iterations=4 ! axiom=f ! f=ff-[-f+f+f]+[+f-f-f] ! ! stars ! angle=156 ! iterations=4 ! axiom=a ! a=ff+aaaaf+f+f--fffff ! ! the world's most difficult crossword puzzle ! angle=89 ! iterations=4 ! axiom=a ! b=af+[-b]ff+f+fff ! a=affbb+b+b+af+b ! |
From: Kevin A. <ka...@us...> - 2004-05-17 16:44:03
|
Update of /cvsroot/pythoncard/PythonCard/samples/fpop In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3099/samples/fpop Modified Files: dlg_config.py fpop.py Log Message: added drawbot goldenSection script to to turtle sample fixed fpop typo bugs Index: fpop.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/fpop/fpop.py,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** fpop.py 10 May 2004 00:45:18 -0000 1.43 --- fpop.py 17 May 2004 16:43:53 -0000 1.44 *************** *** 276,280 **** """ self._doResize() ! event.skip() def _doResize(self): --- 276,280 ---- """ self._doResize() ! event.Skip() def _doResize(self): Index: dlg_config.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/fpop/dlg_config.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** dlg_config.py 10 May 2004 00:45:18 -0000 1.9 --- dlg_config.py 17 May 2004 16:43:53 -0000 1.10 *************** *** 5,9 **** """ ! from PythonCard import model import os --- 5,9 ---- """ ! from PythonCard import model, resource import os |
From: Kevin A. <ka...@us...> - 2004-05-17 16:44:03
|
Update of /cvsroot/pythoncard/PythonCard/samples/turtle/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3099/samples/turtle/scripts Added Files: goldenSection.py Log Message: added drawbot goldenSection script to to turtle sample fixed fpop typo bugs --- NEW FILE: goldenSection.py --- # adapted from Just example at: # http://just.letterror.com/ltrwiki/DrawBot # the main downside to this version that I see # is that apparently the Oval primitive or underlying # Mac OS X draw calls change the thickness # of the oval outline as well as anti-alias the drawing # which I'm not sure how to do with wxPython # I could probably anti-alias by drawing at 4x the size and then # scaling the image I guess?! # but in comparison that would be lame import math def draw(canvas): canvas.foregroundColor = 'black' canvas.backgroundColor = 'white' canvas.clear() # if you want to speed up drawing a bit, uncomment # the canvas.autoRefresh and canvas.refresh() lines below # I think it is more fun to watch the pattern being drawn #canvas.autoRefresh = False w, h = canvas.size cx, cy = w/2, h/2 phi = (math.sqrt(5) + 1)/2-1 oradius = 10.0 blue = int(255 * 0.25) for i in range(720): #c = (0.0, 0.0, 0.0) radius = 1.5*oradius * math.sin(i * math.pi/720) r = round(radius) temp = phi*i*2*math.pi # color args need to be ints where 0 <= c <=s 255 c = min(255 * i / 360.0, 255) canvas.setFillColor((c, c, blue)) canvas.drawEllipse((round(cx-(radius/2) + 0.25*i*math.cos(temp)), round(cy-(radius/2) + 0.25*i*math.sin(temp))), (r, r)) #canvas.autoRefresh = True #canvas.refresh() |
From: Kevin A. <ka...@us...> - 2004-05-14 19:23:21
|
Update of /cvsroot/pythoncard/PythonCard/tools/codeEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12734/tools/codeEditor Modified Files: codeEditor.py Log Message: moved saveUserConfiguration to configuration and out of debug.py and codeEditor.py tidied up pythoncard_config.txt Index: codeEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/codeEditor/codeEditor.py,v retrieving revision 1.115 retrieving revision 1.116 diff -C2 -d -r1.115 -r1.116 *** codeEditor.py 10 May 2004 05:02:47 -0000 1.115 --- codeEditor.py 14 May 2004 19:23:11 -0000 1.116 *************** *** 904,924 **** def on_menuScriptletSaveUserConfiguration_select(self, event): ! if self.application.mw is not None: ! configuration.setOption('messageWatcherPosition', self.application.mw.position) ! configuration.setOption('messageWatcherSize', self.application.mw.size) ! configuration.setOption('showMessageWatcher', 0) ! if self.application.namespaceFrame is not None: ! configuration.setOption('namespacePosition', self.application.namespaceFrame.position) ! configuration.setOption('namespaceSize', self.application.namespaceFrame.size) ! configuration.setOption('showNamespace', 0) ! if self.application.pw is not None: ! configuration.setOption('propertyEditorPosition', self.application.pw.position) ! configuration.setOption('propertyEditorSize', self.application.pw.size) ! configuration.setOption('showPropertyEditor', 0) ! if self.application.shellFrame is not None: ! configuration.setOption('shellPosition', self.application.shellFrame.position) ! configuration.setOption('shellSize', self.application.shellFrame.size) ! configuration.setOption('showShell', 0) ! configuration.saveConfig() def on_menuScriptletSaveShellSelection_select(self, event): --- 904,908 ---- def on_menuScriptletSaveUserConfiguration_select(self, event): ! configuration.saveUserConfiguration(self.application) def on_menuScriptletSaveShellSelection_select(self, event): |
From: Kevin A. <ka...@us...> - 2004-05-14 19:23:21
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12734 Modified Files: configuration.py debug.py pythoncard_config.txt Log Message: moved saveUserConfiguration to configuration and out of debug.py and codeEditor.py tidied up pythoncard_config.txt Index: debug.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/debug.py,v retrieving revision 1.130 retrieving revision 1.131 diff -C2 -d -r1.130 -r1.131 *** debug.py 9 May 2004 19:46:05 -0000 1.130 --- debug.py 14 May 2004 19:23:11 -0000 1.131 *************** *** 601,621 **** def doSaveUserConfiguration(self, evt): ! if self.parentApp.mw is not None: ! configuration.setOption('messageWatcherPosition', self.parentApp.mw.GetPositionTuple()) ! configuration.setOption('messageWatcherSize', self.parentApp.mw.GetSizeTuple()) ! configuration.setOption('showMessageWatcher', 0) ! if self.parentApp.namespaceFrame is not None: ! configuration.setOption('namespacePosition', self.parentApp.namespaceFrame.GetPositionTuple()) ! configuration.setOption('namespaceSize', self.parentApp.namespaceFrame.GetSizeTuple()) ! configuration.setOption('showNamespace', 0) ! if self.parentApp.pw is not None: ! configuration.setOption('propertyEditorPosition', self.parentApp.pw.GetPositionTuple()) ! configuration.setOption('propertyEditorSize', self.parentApp.pw.GetSizeTuple()) ! configuration.setOption('showPropertyEditor', 0) ! if self.parentApp.shellFrame is not None: ! configuration.setOption('shellPosition', self.parentApp.shellFrame.GetPositionTuple()) ! configuration.setOption('shellSize', self.parentApp.shellFrame.GetSizeTuple()) ! configuration.setOption('showShell', 0) ! configuration.saveConfig() def onlineHomePage(self, evt): --- 601,605 ---- def doSaveUserConfiguration(self, evt): ! configuration.saveUserConfiguration(self.parentApp) def onlineHomePage(self, evt): Index: configuration.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/configuration.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** configuration.py 25 Apr 2004 15:23:34 -0000 1.3 --- configuration.py 14 May 2004 19:23:11 -0000 1.4 *************** *** 39,62 **** # pythoncard_config.txt # for standalones DEFAULT_CONFIG = { 'logfile':'pythoncard.log', ! 'logToStdout':1, ! 'showMessageWatcher':0, 'messageWatcherPosition':(0, 0), 'messageWatcherSize':(200, 300), ! #'messageWatcherVisible':1, ! 'showPropertyEditor':0, 'propertyEditorPosition':(0, 0), 'propertyEditorSize':(360, 240), ! #'propertyEditorVisible':1, ! 'showShell':0, 'shellPosition':(0, 0), 'shellSize':(500, 200), ! #'shellVisible':1, ! 'showNamespace':0, 'namespacePosition':(0, 0), 'namespaceSize':(600, 300), - #'namespaceVisible':1, - 'enableLogging':0 } --- 39,59 ---- # pythoncard_config.txt # for standalones + # updated 2004-05-14 DEFAULT_CONFIG = { + 'enableLogging':False, 'logfile':'pythoncard.log', ! 'logToStdout':True, ! 'showMessageWatcher':False, 'messageWatcherPosition':(0, 0), 'messageWatcherSize':(200, 300), ! 'showPropertyEditor':False, 'propertyEditorPosition':(0, 0), 'propertyEditorSize':(360, 240), ! 'showShell':False, 'shellPosition':(0, 0), 'shellSize':(500, 200), ! 'showNamespace':False, 'namespacePosition':(0, 0), 'namespaceSize':(600, 300), } *************** *** 254,257 **** --- 251,278 ---- setOption('showDebugMenu', 1) + def saveUserConfiguration(app): + """ + Given an application instance, save the current settings of the runtime + windows. + """ + if app.mw is not None: + setOption('messageWatcherPosition', app.mw.GetPositionTuple()) + setOption('messageWatcherSize', app.mw.GetSizeTuple()) + setOption('showMessageWatcher', False) + if app.namespaceFrame is not None: + setOption('namespacePosition', app.namespaceFrame.GetPositionTuple()) + setOption('namespaceSize', app.namespaceFrame.GetSizeTuple()) + setOption('showNamespace', False) + if app.pw is not None: + setOption('propertyEditorPosition', app.pw.GetPositionTuple()) + setOption('propertyEditorSize', app.pw.GetSizeTuple()) + setOption('showPropertyEditor', False) + if app.shellFrame is not None: + setOption('shellPosition', app.shellFrame.GetPositionTuple()) + setOption('shellSize', app.shellFrame.GetSizeTuple()) + setOption('showShell', False) + setOption('enableLogging', False) + saveConfig() + if __name__ == '__main__' : Index: pythoncard_config.txt =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/pythoncard_config.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pythoncard_config.txt 12 Jan 2003 22:35:04 -0000 1.1 --- pythoncard_config.txt 14 May 2004 19:23:11 -0000 1.2 *************** *** 3,24 **** { 'logfile':'pythoncard.log', ! 'logToStdout':1, ! 'showMessageWatcher':0, 'messageWatcherPosition':(0, 0), 'messageWatcherSize':(200, 300), ! #'messageWatcherVisible':1, ! 'showPropertyEditor':0, 'propertyEditorPosition':(0, 0), 'propertyEditorSize':(360, 240), ! #'propertyEditorVisible':1, ! 'showShell':0, 'shellPosition':(0, 0), 'shellSize':(500, 200), ! #'shellVisible':1, ! 'showNamespace':0, 'namespacePosition':(0, 0), 'namespaceSize':(600, 300), - #'namespaceVisible':1, - 'enableLogging':0 } --- 3,20 ---- { + 'enableLogging':False, 'logfile':'pythoncard.log', ! 'logToStdout':True, ! 'showMessageWatcher':False, 'messageWatcherPosition':(0, 0), 'messageWatcherSize':(200, 300), ! 'showPropertyEditor':False, 'propertyEditorPosition':(0, 0), 'propertyEditorSize':(360, 240), ! 'showShell':False, 'shellPosition':(0, 0), 'shellSize':(500, 200), ! 'showNamespace':False, 'namespacePosition':(0, 0), 'namespaceSize':(600, 300), } |