Update of /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5994 Modified Files: changelog.txt customDialogs.py helpAbout.rsrc.py standaloneBuilder.gtk.rsrc.py standaloneBuilder.py standaloneBuilder.rsrc.py Log Message: Updates for standaloneBuilder version 0.3: 1. Major re-design of the user interface 2. Removed the limitation on directories where projects can be created 3. Changed the help --> about dialog to use a tabbed notebook Index: standaloneBuilder.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/standaloneBuilder.rsrc.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** standaloneBuilder.rsrc.py 12 May 2006 16:26:20 -0000 1.7 --- standaloneBuilder.rsrc.py 3 Nov 2006 14:56:25 -0000 1.8 *************** *** 4,9 **** {'type':'Background', 'name':'standaloneBuilder', ! 'title':'PythonCard standaloneBuilder', ! 'size':(800, 594), 'statusBar':1, --- 4,9 ---- {'type':'Background', 'name':'standaloneBuilder', ! 'title':u'PythonCard standaloneBuilder', ! 'size':(800, 590), 'statusBar':1, *************** *** 171,188 **** }, 'strings': { ! u'testString':u'This is a test string', }, 'components': [ {'type':'ImageButton', 'name':'newBtn', 'position':(5, 5), 'size':(32, 32), - 'backgroundColor':(255, 255, 255), 'border':'3d', 'command':'newBtn', 'file':'pixmaps/new.png', ! 'toolTip':'Create a new project', 'userdata':'frozen', }, --- 171,217 ---- }, 'strings': { ! u'versionString':u'0.3.0', }, 'components': [ + {'type':'StaticText', + 'name':'StaticText5', + 'position':(15, 155), + 'text':u'Main script file', + }, + + {'type':'StaticText', + 'name':'StaticText4', + 'position':(15, 95), + 'text':u'Description', + }, + + {'type':'StaticText', + 'name':'StaticText9', + 'position':(15, 185), + 'text':u'Icon (Win)', + }, + + {'type':'StaticText', + 'name':'StaticText7', + 'position':(15, 125), + 'text':u'Base directory', + }, + + {'type':'StaticText', + 'name':'StaticText6', + 'position':(15, 65), + 'text':u'Project name', + }, + {'type':'ImageButton', 'name':'newBtn', 'position':(5, 5), 'size':(32, 32), 'border':'3d', 'command':'newBtn', 'file':'pixmaps/new.png', ! 'toolTip':u'Create a new project', 'userdata':'frozen', }, *************** *** 192,212 **** 'position':(40, 5), 'size':(32, 32), - 'backgroundColor':(255, 255, 255), 'border':'3d', 'command':'openBtn', 'file':'pixmaps/open.png', ! 'toolTip':'Open an existing project', 'userdata':'frozen', }, {'type':'ImageButton', ! 'name':'saveBtn', 'position':(75, 5), 'size':(32, 32), ! 'backgroundColor':(255, 255, 255), 'border':'3d', 'command':'saveBtn', 'file':'pixmaps/save.png', ! 'toolTip':'Save the current project', 'userdata':'frozen', }, --- 221,321 ---- 'position':(40, 5), 'size':(32, 32), 'border':'3d', 'command':'openBtn', 'file':'pixmaps/open.png', ! 'toolTip':u'Open an existing project', 'userdata':'frozen', }, {'type':'ImageButton', ! 'name':'propertiesBtn', 'position':(75, 5), 'size':(32, 32), ! 'border':'3d', ! 'command':'editProps', ! 'file':'pixmaps/props.png', ! 'toolTip':u'Edit project properties', ! }, ! ! {'type':'ImageButton', ! 'name':'saveBtn', ! 'position':(111, 5), ! 'size':(32, 32), 'border':'3d', 'command':'saveBtn', 'file':'pixmaps/save.png', ! 'toolTip':u'Save the current project', ! 'userdata':'frozen', ! }, ! ! {'type':'ImageButton', ! 'name':'changelogBtn', ! 'position':(155, 5), ! 'size':(32, 32), ! 'border':'3d', ! 'command':'editChgLog', ! 'file':'pixmaps/changelog.png', ! 'toolTip':u'Edit the changelog file', ! }, ! ! {'type':'ImageButton', ! 'name':'readmeBtn2', ! 'position':(190, 5), ! 'size':(32, 32), ! 'border':'3d', ! 'command':'editReadme', ! 'file':'pixmaps/readme.png', ! 'toolTip':u'Edit the README file', ! }, ! ! {'type':'ImageButton', ! 'name':'specBtn', ! 'position':(225, 5), ! 'size':(32, 32), ! 'border':'3d', ! 'command':'editSpecFile', ! 'file':'pixmaps/spec.png', ! 'toolTip':u'View the applications spec file', ! }, ! ! {'type':'ImageButton', ! 'name':'innoBtn2', ! 'position':(260, 5), ! 'size':(32, 32), ! 'border':'3d', ! 'command':'editInnoFile', ! 'file':'pixmaps/inno.png', ! 'toolTip':u'View the Inno setup script for your application', ! }, ! ! {'type':'ImageButton', ! 'name':'runBtn', ! 'position':(305, 5), ! 'size':(32, 32), ! 'border':'3d', ! 'command':'runMainScript', ! 'file':'pixmaps/run.png', ! 'toolTip':u'Run main script', ! }, ! ! {'type':'ImageButton', ! 'name':'rebuildBtn', ! 'position':(350, 5), ! 'size':(32, 32), ! 'border':'3d', ! 'command':'rebuildCmd', ! 'file':'pixmaps/rebuild.png', ! 'toolTip':u'Rebuild project', ! 'userdata':'frozen', ! }, ! ! {'type':'ImageButton', ! 'name':'releaseBtn', ! 'position':(385, 5), ! 'size':(32, 32), ! 'border':'3d', ! 'command':u'releaseCmd', ! 'file':'pixmaps/release.png', ! 'toolTip':u'Make a release of the finished application', 'userdata':'frozen', }, *************** *** 216,224 **** 'position':(705, 5), 'size':(32, 32), - 'backgroundColor':(255, 255, 255), 'border':'3d', 'command':'editPrefs', 'file':'pixmaps/prefs.png', ! 'toolTip':'standaloneBuilder preferences', 'userdata':'frozen', }, --- 325,332 ---- 'position':(705, 5), 'size':(32, 32), 'border':'3d', 'command':'editPrefs', 'file':'pixmaps/prefs.png', ! 'toolTip':u'standaloneBuilder preferences', 'userdata':'frozen', }, *************** *** 228,236 **** 'position':(750, 5), 'size':(32, 32), - 'backgroundColor':(255, 255, 255), 'border':'3d', 'command':'quitBtn', 'file':'pixmaps/exit.png', ! 'toolTip':'Quit the program', 'userdata':'frozen', }, --- 336,343 ---- 'position':(750, 5), 'size':(32, 32), 'border':'3d', 'command':'quitBtn', 'file':'pixmaps/exit.png', ! 'toolTip':u'Quit the program', 'userdata':'frozen', }, *************** *** 239,301 **** 'name':'projectName', 'position':(95, 60), ! 'size':(250, -1), }, {'type':'TextField', ! 'name':'projectIcon', ! 'position':(500, 60), ! 'size':(250, -1), ! }, ! ! {'type':'Button', ! 'name':'iconBtn', ! 'position':(755, 60), ! 'size':(22, 22), ! 'label':'...', }, {'type':'TextField', 'name':'baseDir', ! 'position':(95, 90), ! 'size':(250, -1), }, {'type':'Button', 'name':'baseDirBtn', ! 'position':(350, 90), 'size':(22, 22), ! 'label':'...', }, {'type':'TextField', ! 'name':'projectDesc', ! 'position':(500, 90), ! 'size':(250, -1), }, ! {'type':'TextField', ! 'name':'mainScript', ! 'position':(95, 120), ! 'size':(250, -1), }, {'type':'Button', 'name':'mainScriptBtn', ! 'position':(350, 120), 'size':(22, 22), ! 'label':'...', }, {'type':'Button', ! 'name':'mainScriptEditBtn', ! 'position':(375, 120), ! 'size':(50, 22), ! 'command':'EditMainScript', ! 'label':'Edit...', }, {'type':'List', 'name':'scriptList', ! 'position':(15, 185), 'size':(360, 95), 'items':[], --- 346,408 ---- 'name':'projectName', 'position':(95, 60), ! 'size':(275, -1), }, {'type':'TextField', ! 'name':'projectDesc', ! 'position':(95, 90), ! 'size':(655, -1), }, {'type':'TextField', 'name':'baseDir', ! 'position':(95, 120), ! 'size':(655, -1), }, {'type':'Button', 'name':'baseDirBtn', ! 'position':(755, 120), 'size':(22, 22), ! 'label':u'...', }, {'type':'TextField', ! 'name':'mainScript', ! 'position':(95, 150), ! 'size':(600, -1), }, ! {'type':'Button', ! 'name':'mainScriptEditBtn', ! 'position':(700, 150), ! 'size':(50, 22), ! 'command':'EditMainScript', ! 'label':u'Edit...', }, {'type':'Button', 'name':'mainScriptBtn', ! 'position':(755, 150), 'size':(22, 22), ! 'label':u'...', ! }, ! ! {'type':'TextField', ! 'name':'projectIcon', ! 'position':(95, 180), ! 'size':(655, -1), }, {'type':'Button', ! 'name':'iconBtn', ! 'position':(755, 180), ! 'size':(22, 22), ! 'label':u'...', }, {'type':'List', 'name':'scriptList', ! 'position':(15, 235), 'size':(360, 95), 'items':[], *************** *** 304,337 **** {'type':'Button', 'name':'scriptAddBtn', ! 'position':(15, 285), 'size':(-1, 22), 'command':'addScript', ! 'label':'Add...', }, {'type':'Button', 'name':'scriptDelBtn', ! 'position':(95, 285), 'size':(-1, 22), ! 'label':'Remove', }, {'type':'Button', 'name':'scriptEditBtn', ! 'position':(175, 285), 'size':(-1, 22), ! 'label':'Edit...', }, {'type':'Button', 'name':'scriptDelAllBtn', ! 'position':(300, 285), 'size':(-1, 22), ! 'label':'Clear all', }, {'type':'List', 'name':'resList', ! 'position':(415, 185), 'size':(360, 95), 'items':[], --- 411,444 ---- {'type':'Button', 'name':'scriptAddBtn', ! 'position':(15, 335), 'size':(-1, 22), 'command':'addScript', ! 'label':u'Add...', }, {'type':'Button', 'name':'scriptDelBtn', ! 'position':(95, 335), 'size':(-1, 22), ! 'label':u'Remove', }, {'type':'Button', 'name':'scriptEditBtn', ! 'position':(175, 335), 'size':(-1, 22), ! 'label':u'Edit...', }, {'type':'Button', 'name':'scriptDelAllBtn', ! 'position':(300, 335), 'size':(-1, 22), ! 'label':u'Clear all', }, {'type':'List', 'name':'resList', ! 'position':(415, 235), 'size':(360, 95), 'items':[], *************** *** 340,373 **** {'type':'Button', 'name':'resAddBtn', ! 'position':(415, 285), 'size':(-1, 22), 'command':'addResource', ! 'label':'Add..', }, {'type':'Button', 'name':'resDelBtn', ! 'position':(495, 285), 'size':(-1, 22), ! 'label':'Remove', }, {'type':'Button', 'name':'resEditBtn', ! 'position':(575, 285), 'size':(-1, 22), ! 'label':'Edit...', }, {'type':'Button', 'name':'resDelAllBtn', ! 'position':(700, 285), 'size':(-1, 22), ! 'label':'Clear all', }, {'type':'List', 'name':'pixmapList', ! 'position':(15, 340), 'size':(360, 95), 'items':[], --- 447,480 ---- {'type':'Button', 'name':'resAddBtn', ! 'position':(415, 335), 'size':(-1, 22), 'command':'addResource', ! 'label':u'Add..', }, {'type':'Button', 'name':'resDelBtn', ! 'position':(495, 335), 'size':(-1, 22), ! 'label':u'Remove', }, {'type':'Button', 'name':'resEditBtn', ! 'position':(575, 335), 'size':(-1, 22), ! 'label':u'Edit...', }, {'type':'Button', 'name':'resDelAllBtn', ! 'position':(701, 336), 'size':(-1, 22), ! 'label':u'Clear all', }, {'type':'List', 'name':'pixmapList', ! 'position':(15, 390), 'size':(360, 95), 'items':[], *************** *** 376,409 **** {'type':'Button', 'name':'pixmapAddBtn', ! 'position':(14, 440), 'size':(-1, 22), 'command':'addPixmap', ! 'label':'Add...', }, {'type':'Button', 'name':'pixmapDelBtn', ! 'position':(95, 440), 'size':(-1, 22), ! 'label':'Remove', }, {'type':'Button', 'name':'pixmapEditBtn', ! 'position':(175, 440), 'size':(-1, 22), ! 'label':'Edit...', }, {'type':'Button', 'name':'pixmapDelAllBtn', ! 'position':(300, 440), 'size':(-1, 22), ! 'label':'Clear all', }, {'type':'List', 'name':'otherList', ! 'position':(415, 340), 'size':(360, 95), 'items':[], --- 483,516 ---- {'type':'Button', 'name':'pixmapAddBtn', ! 'position':(15, 490), 'size':(-1, 22), 'command':'addPixmap', ! 'label':u'Add...', }, {'type':'Button', 'name':'pixmapDelBtn', ! 'position':(95, 490), 'size':(-1, 22), ! 'label':u'Remove', }, {'type':'Button', 'name':'pixmapEditBtn', ! 'position':(175, 490), 'size':(-1, 22), ! 'label':u'Edit...', }, {'type':'Button', 'name':'pixmapDelAllBtn', ! 'position':(300, 490), 'size':(-1, 22), ! 'label':u'Clear all', }, {'type':'List', 'name':'otherList', ! 'position':(415, 390), 'size':(360, 95), 'items':[], *************** *** 412,591 **** {'type':'Button', 'name':'docAddBtn', ! 'position':(414, 440), 'size':(-1, 22), 'command':'addOther', ! 'label':'Add...', }, {'type':'Button', 'name':'docDelBtn', ! 'position':(495, 440), 'size':(-1, 22), ! 'label':'Remove', }, {'type':'Button', 'name':'docEditBtn', ! 'position':(575, 440), 'size':(-1, 22), ! 'label':'Edit...', }, {'type':'Button', 'name':'docDelAllBtn', ! 'position':(700, 440), ! 'size':(-1, 22), ! 'label':'Clear all', ! }, ! ! {'type':'Button', ! 'name':'propertiesBtn', ! 'position':(15, 475), ! 'size':(74, 22), ! 'command':'editProps', ! 'label':'Props...', ! 'toolTip':'Change your projects properties', ! }, ! ! {'type':'Button', ! 'name':'changelogBtn', ! 'position':(95, 475), ! 'size':(76, 22), ! 'command':'editChgLog', ! 'label':'Chglog...', ! 'toolTip':'Edit the changelog file', ! }, ! ! {'type':'Button', ! 'name':'readmeBtn', ! 'position':(95, 500), ! 'size':(-1, 22), ! 'command':'editReadme', ! 'label':'README...', ! 'toolTip':'Edit the README file', ! }, ! ! {'type':'Button', ! 'name':'specBtn', ! 'position':(175, 475), ! 'size':(-1, 22), ! 'command':'editSpecFile', ! 'label':'Spec file...', ! 'toolTip':'Edit the applications spec file', ! }, ! ! {'type':'Button', ! 'name':'innoBtn', ! 'position':(175, 500), ! 'size':(76, 22), ! 'command':'editInnoFile', ! 'label':'Inno script...', ! 'toolTip':'Edit the Inno setup script for your application', ! }, ! ! {'type':'Button', ! 'name':'runBtn', ! 'position':(300, 475), ! 'size':(-1, 22), ! 'command':'runMainScript', ! 'label':'Run...', ! 'toolTip':'Run the application', ! }, ! ! {'type':'Button', ! 'name':'rebuildBtn', ! 'position':(700, 475), ! 'size':(-1, 22), ! 'command':'rebuildCmd', ! 'label':'Rebuild', ! 'toolTip':'Rebuild the standalone version of your application', ! 'userdata':'frozen', ! }, ! ! {'type':'Button', ! 'name':'releaseBtn', ! 'position':(700, 500), 'size':(-1, 22), ! 'command':'releaseCmd', ! 'label':'Release', ! 'toolTip':'Make a release of your finished application', ! 'userdata':'frozen', }, ! {'type':'StaticText', ! 'name':'versionString', ! 'position':(500, 125), ! 'text':'n/a', }, {'type':'StaticBox', 'name':'StaticBox2', ! 'position':(5, 165), 'size':(380, 150), ! 'label':'Script files:', }, {'type':'StaticBox', 'name':'StaticBox3', ! 'position':(405, 165), 'size':(380, 150), ! 'label':'Resource files:', }, {'type':'StaticBox', 'name':'StaticBox4', ! 'position':(5, 320), 'size':(380, 150), ! 'label':'Pixmap files:', }, {'type':'StaticBox', 'name':'StaticBox5', ! 'position':(405, 320), 'size':(380, 150), ! 'label':'Other files:', ! }, ! ! {'type':'StaticBox', ! 'name':'StaticBox1', ! 'position':(5, 40), ! 'size':(780, 125), ! 'label':'Project:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText5', ! 'position':(15, 125), ! 'text':'Main script file', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText4', ! 'position':(395, 95), ! 'text':'Project description', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText9', ! 'position':(435, 65), ! 'text':'Icon (Win)', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText8', ! 'position':(450, 125), ! 'text':'Version', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText7', ! 'position':(15, 95), ! 'text':'Base directory', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText6', ! 'position':(15, 65), ! 'text':'Name', }, --- 519,582 ---- {'type':'Button', 'name':'docAddBtn', ! 'position':(415, 490), 'size':(-1, 22), 'command':'addOther', ! 'label':u'Add...', }, {'type':'Button', 'name':'docDelBtn', ! 'position':(495, 490), 'size':(-1, 22), ! 'label':u'Remove', }, {'type':'Button', 'name':'docEditBtn', ! 'position':(575, 490), 'size':(-1, 22), ! 'label':u'Edit...', }, {'type':'Button', 'name':'docDelAllBtn', ! 'position':(700, 490), 'size':(-1, 22), ! 'label':u'Clear all', }, ! {'type':'StaticBox', ! 'name':'StaticBox1', ! 'position':(5, 40), ! 'size':(780, 170), ! 'label':u'Project:', }, {'type':'StaticBox', 'name':'StaticBox2', ! 'position':(5, 215), 'size':(380, 150), ! 'label':u'Script files:', }, {'type':'StaticBox', 'name':'StaticBox3', ! 'position':(405, 215), 'size':(380, 150), ! 'label':u'Resource files:', }, {'type':'StaticBox', 'name':'StaticBox4', ! 'position':(5, 370), 'size':(380, 150), ! 'label':u'Pixmap files:', }, {'type':'StaticBox', 'name':'StaticBox5', ! 'position':(405, 370), 'size':(380, 150), ! 'label':u'Other files:', }, Index: helpAbout.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/helpAbout.rsrc.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** helpAbout.rsrc.py 15 Apr 2005 15:18:54 -0000 1.2 --- helpAbout.rsrc.py 3 Nov 2006 14:56:25 -0000 1.3 *************** *** 4,35 **** 'position':(129, 133), 'size':(680, 370), - 'components': [ ! {'type':'Button', ! 'name':'AboutBtn', ! 'position':(10, 5), ! 'size':(-1, 32), ! 'label':'About', }, ! {'type':'Button', ! 'name':'AuthorBtn', ! 'position':(90, 5), ! 'size':(-1, 32), ! 'label':'Author', }, ! {'type':'Button', ! 'name':'LicenseBtn', ! 'position':(170, 5), ! 'size':(-1, 32), ! 'label':'License', }, ! {'type':'HtmlWindow', ! 'name':'HtmlWindow', ! 'position':(5, 40), ! 'size':(668, 255), ! 'backgroundColor':(255, 255, 255), }, --- 4,30 ---- 'position':(129, 133), 'size':(680, 370), ! 'strings': { }, ! 'components': [ ! ! {'type':'Image', ! 'name':'Image1', ! 'position':(10, 10), ! 'file':u'pixmaps/apollon.png', }, ! {'type':'StaticText', ! 'name':'versionString', ! 'position':(70, 35), ! 'font':{'faceName': u'Trebuchet MS', 'family': 'sansSerif', 'size': 14}, ! 'text':u'standaloneBuilder version', }, ! {'type':'Notebook', ! 'name':'notebook', ! 'position':(5, 65), ! 'size':(660, 250), }, *************** *** 37,43 **** 'id':5100, 'name':'btnOK', ! 'position':(590, 305), ! 'size':(-1, 32), ! 'label':'Close', }, --- 32,37 ---- 'id':5100, 'name':'btnOK', ! 'position':(590, 40), ! 'label':u'Close', }, Index: changelog.txt =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/changelog.txt,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** changelog.txt 12 May 2006 16:26:20 -0000 1.10 --- changelog.txt 3 Nov 2006 14:56:25 -0000 1.11 *************** *** 1,2 **** --- 1,31 ---- + standaloneBuilder Version 0.3.0 release date TBA + ------------------------------------------------- + - Inno setup and spec file buttons on the main window now simply + display the files, rather than trying to launch a full blown + editor just to view them + - Toolbar spec file button is disabled when py2exe is selected as + the build tool + - Projects can now be created outside of the main directory + specified in preferences + - changed the 'about' dialog to use a tabbed notebook to display the + pages instead of an HTMLWindow component + - Added code to enable/disable the save button depending upon + whether the project needs to be saved or not + - added the ability to have different project paths on Windows and Linux + to allow projects to be stored on a shared network resource for + cross-platform testing + - edit main script button was crashing the program if the main script text + field was blank + - Fixed problem with toolbar icon transparency under Windows + - Added several new pixmap files to the project file for the new + toolbar buttons + - Moved a number of UI buttons up to the main toolbar for + consistency + - outputwindow was enabling the clipboard button after a successful + rebuild + - Path selection and help buttons were not working for the plain + text editor fields in prefs + + standaloneBuilder Version 0.2.0 release date May 10 2006 -------------------------------------------------------- Index: customDialogs.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/customDialogs.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** customDialogs.py 12 May 2006 16:26:20 -0000 1.6 --- customDialogs.py 3 Nov 2006 14:56:25 -0000 1.7 *************** *** 29,32 **** --- 29,33 ---- from md5 import md5 import copy + from types import * # PythonCard & wxPython imports *************** *** 35,38 **** --- 36,40 ---- import wx from wx.lib import dialogs + import wx.html *************** *** 135,159 **** CustomDialog.__init__(self, aBg, aDialogRsrc) self.parent = aBg ! #self.components.versionText.text = 'Version %s' % self.parent.pimpversion ! ! # links is a 3-element list giving the HTML files to use for the About, Author ! # and License buttons ! if links is None: links = ['doc/about.html', 'doc/author.html', 'doc/license.html'] ! self.links = links ! self.components.HtmlWindow.text = self.links[0] def on_btnOK_mouseClick(self, event): event.Skip() - def on_AboutBtn_mouseClick(self, event): - self.components.HtmlWindow.text = self.links[0] - - def on_AuthorBtn_mouseClick(self, event): - self.components.HtmlWindow.text = self.links[1] - - def on_LicenseBtn_mouseClick(self, event): - self.components.HtmlWindow.text = self.links[2] - class newProjectWizard(CustomDialog): """Displays a wizard for creating a new project""" --- 137,173 ---- CustomDialog.__init__(self, aBg, aDialogRsrc) self.parent = aBg ! self.components.notebook.SetSize((660,270)) ! ! bgval = self.GetBackgroundColour() ! versionString = self.parent.str.versionString ! self.components.versionString.text = 'standaloneBuilder version %s' % versionString ! ! aboutPanel = wx.Panel(self.components.notebook, -1) ! aboutPanelHtmlWindow = wx.html.HtmlWindow(aboutPanel, -1) ! aboutPanelHtmlWindow.SetSize((660,270)) ! aboutPanelHtmlWindow.SetPosition((1,1)) ! aboutPanelHtmlWindow.LoadPage('doc/about.html') ! aboutPanelHtmlWindow.SetBackgroundColour(bgval) ! self.components.notebook.AddPage(aboutPanel, 'About', True) ! authorPanel = wx.Panel(self.components.notebook, -1) ! authorPanelHtmlWindow = wx.html.HtmlWindow(authorPanel, -1) ! authorPanelHtmlWindow.SetSize((660,270)) ! authorPanelHtmlWindow.SetPosition((1,1)) ! authorPanelHtmlWindow.LoadPage('doc/author.html') ! authorPanelHtmlWindow.SetBackgroundColour(bgval) ! self.components.notebook.AddPage(authorPanel, 'Author', False) + licensePanel = wx.Panel(self.components.notebook, -1) + licensePanelHtmlWindow = wx.html.HtmlWindow(licensePanel, -1) + licensePanelHtmlWindow.SetSize((660,270)) + licensePanelHtmlWindow.SetPosition((1,1)) + licensePanelHtmlWindow.LoadPage('doc/license.html') + licensePanelHtmlWindow.SetBackgroundColour(bgval) + self.components.notebook.AddPage(licensePanel, 'License', False) + def on_btnOK_mouseClick(self, event): event.Skip() class newProjectWizard(CustomDialog): """Displays a wizard for creating a new project""" *************** *** 292,309 **** # need an error here if the directory selected is not a subdirectory # of basepath... ! plist = [] ! plist.append(basepath) ! plist.append(str(result.path)) ! if os.path.commonprefix(plist) != basepath: ! title = 'Invalid project base directory' ! txt = 'This version of standaloneBuilder does not allow creation ' ! txt += 'of projects which reside outside of the projects directory ' ! txt += 'specified in your preferences. This issue will be addressed ' ! txt += 'in the next version. Yes, it\'s lame - sorry! :-(' ! bull = dialog.alertDialog(self, wrap_string(txt, 60), title) ! self.components.baseDir.SetFocus() ! else: ! self.components.baseDir.text = result.path ! self.components.nextBtn.enabled = True def getResult(self): --- 306,323 ---- # need an error here if the directory selected is not a subdirectory # of basepath... ! #plist = [] ! #plist.append(basepath) ! #plist.append(str(result.path)) ! #if os.path.commonprefix(plist) != basepath: ! # title = 'Invalid project base directory' ! # txt = 'This version of standaloneBuilder does not allow creation ' ! # txt += 'of projects which reside outside of the projects directory ' ! # txt += 'specified in your preferences. This issue will be addressed ' ! # txt += 'in the next version. Yes, it\'s lame - sorry! :-(' ! # bull = dialog.alertDialog(self, wrap_string(txt, 60), title) ! # self.components.baseDir.SetFocus() ! #else: ! self.components.baseDir.text = result.path ! self.components.nextBtn.enabled = True def getResult(self): *************** *** 435,438 **** --- 449,460 ---- self.showHelp(self.components.srcEditPath.userdata, self.components.StaticText4.text) + def on_txtEditPathBtn_mouseClick(self, event): + result = dialog.fileDialog(self, self.components.StaticText9.text, self.components.txtEditPath.text) + if result.accepted: + self.components.txtEditPath.text = result.paths[0] + + def on_txtEditPathHelpBtn_mouseClick(self, event): + self.showHelp(self.components.txtEditPath.userdata, self.components.StaticText9.text) + def on_pixmapEditPathBtn_mouseClick(self, event): result = dialog.fileDialog(self, self.components.StaticText5.text, self.components.pixmapEditPath.text) Index: standaloneBuilder.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/standaloneBuilder.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** standaloneBuilder.py 12 May 2006 16:26:20 -0000 1.14 --- standaloneBuilder.py 3 Nov 2006 14:56:25 -0000 1.15 *************** *** 46,49 **** --- 46,51 ---- import outputWindow + from PythonCard.components import button, checkbox, choice, image, imagebutton, list, notebook, spinner, staticbox, statictext, textarea, textfield + # temporary hack until... [truncated message content] |