You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(116) |
Sep
(146) |
Oct
(78) |
Nov
(69) |
Dec
(70) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(188) |
Feb
(142) |
Mar
(143) |
Apr
(131) |
May
(97) |
Jun
(221) |
Jul
(127) |
Aug
(89) |
Sep
(83) |
Oct
(66) |
Nov
(47) |
Dec
(70) |
2003 |
Jan
(77) |
Feb
(91) |
Mar
(103) |
Apr
(98) |
May
(134) |
Jun
(47) |
Jul
(74) |
Aug
(71) |
Sep
(48) |
Oct
(23) |
Nov
(37) |
Dec
(13) |
2004 |
Jan
(24) |
Feb
(15) |
Mar
(52) |
Apr
(119) |
May
(49) |
Jun
(41) |
Jul
(34) |
Aug
(91) |
Sep
(169) |
Oct
(38) |
Nov
(32) |
Dec
(47) |
2005 |
Jan
(61) |
Feb
(47) |
Mar
(101) |
Apr
(130) |
May
(51) |
Jun
(65) |
Jul
(71) |
Aug
(96) |
Sep
(28) |
Oct
(20) |
Nov
(39) |
Dec
(62) |
2006 |
Jan
(13) |
Feb
(19) |
Mar
(18) |
Apr
(34) |
May
(39) |
Jun
(50) |
Jul
(63) |
Aug
(18) |
Sep
(37) |
Oct
(14) |
Nov
(56) |
Dec
(32) |
2007 |
Jan
(30) |
Feb
(13) |
Mar
(25) |
Apr
(3) |
May
(15) |
Jun
(42) |
Jul
(5) |
Aug
(17) |
Sep
(6) |
Oct
(25) |
Nov
(49) |
Dec
(10) |
2008 |
Jan
(12) |
Feb
|
Mar
(17) |
Apr
(18) |
May
(12) |
Jun
(2) |
Jul
(2) |
Aug
(6) |
Sep
(4) |
Oct
(15) |
Nov
(45) |
Dec
(9) |
2009 |
Jan
(1) |
Feb
(3) |
Mar
(18) |
Apr
(8) |
May
(3) |
Jun
|
Jul
(13) |
Aug
(2) |
Sep
(1) |
Oct
(9) |
Nov
(13) |
Dec
|
2010 |
Jan
(2) |
Feb
(3) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
(4) |
2011 |
Jan
|
Feb
|
Mar
(10) |
Apr
(44) |
May
(9) |
Jun
(22) |
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
|
Jul
(3) |
Aug
(8) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Alex T. <al...@tw...> - 2006-04-17 09:14:31
|
Michael Martinez wrote: >Hi, > >I've made several attempts to install PythonCard v0.8.1 with no success. > >I am installing this on Windows XP. > >Python v.2.4 insalled with no problem. > >It is when I execute the two install files for either wxPython and >Pythoncard that a command window pops up briefly for each and dissapears >right away. > >When I run the 'acid test', I can't seem to find where the initialization >file for the Pythoncard editor to start. > > Which "acid test" ? What error message do you get ? (or, how do you know some initialization files are needed ?) But in fact, we should first make sure that your wxPython install succeeded .... which version of wxPython are you installing ? (what's the installer file name) Did you download and install the wxPython demo and docs package ? (if you didn't, I would highly recommend you do - although you can do a lot with only the Pythoncard docs, you'll almost certainly want access to the wxPython docs at some point. And the demos give you a good test that everything is good with your wxPython installation). If you can run the wxPython demos successfully, then we can start on PythonCard. If not - we need to get that out of the way first; any error messages from the wxPython demo ? -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/313 - Release Date: 15/04/2006 |
From: Michael M. <mcd...@ve...> - 2006-04-17 05:30:57
|
Hi, I've made several attempts to install PythonCard v0.8.1 with no success. I am installing this on Windows XP. Python v.2.4 insalled with no problem. It is when I execute the two install files for either wxPython and Pythoncard that a command window pops up briefly for each and dissapears right away. When I run the 'acid test', I can't seem to find where the initialization file for the Pythoncard editor to start. Has anybody seen this before? What was your solution? Thanks, Mike |
From: Matt <bs...@gm...> - 2006-04-13 13:36:58
|
If you replace "os.system" with "os.startfile" in the last line of your example, is the result different? > From: Phil Edwards <ph...@li...> > To: pyt...@li... > Date: Wed, 12 Apr 2006 14:17:29 +0100 > Subject: [Pythoncard-users] Not enjoying win32 programming... > > Hi All: > > Coming from a Linux background, I'm struggling to understand some of the > things that appear to be going on behind the scenes when I'm coding stuff > to > run under Windows XP. > > The application in question has a textfield containing the name of a > Python > source code file and an 'Edit...' button next to it. When I click the > button, > I'm running this code: > > def on_mainScriptEditBtn_mouseClick(self, event): > editor =3D self.cfg.get('ConfigData', 'codeeditor') > item =3D self.pathJoin(self.components.mainScript.text) > item =3D os.path.join(self.components.baseDir.text, item) > item =3D os.path.join(self.cfg.get('ConfigData', 'projects'), item= ) > if sys.platform.startswith('win'): > editor =3D GetShortPathName(editor) > item =3D GetShortPathName(item) > print editor + ' ' + item > os.system(editor + ' ' + item) > > When the code runs, it prints out what I'm expecting, namely that I'm > trying > to run the Pythoncard code editor with the name of a script file as the > only > parameter on the command line. I then get the standard 'windows cannot > open > this file' dialog box and I get to tell Windows that I want codeEditor.py= to > be opened using the program called 'python'. The codeEditor duly opens up= , > but it seems as though Windows is somehow losing my command line paramete= r > and all I end up with is a blank codeEditor window, instead of it opening > the > file I wanted it to. Adding a simple 'print sys.argv' to the top of the > codeEditor proves that this is the case. > > Could somebody please explain to a dumb UNIX user what vital piece of > information I'm missing in order to make this work? > |
From: Matt <bs...@gm...> - 2006-04-13 13:10:07
|
If you replace "os.system" with "os.startfile" in the last line of your example, is the result different? On 4/12/06, pyt...@li... < pyt...@li...> wrote: > > Message: 1 > From: Phil Edwards <ph...@li...> > To: pyt...@li... > Date: Wed, 12 Apr 2006 14:17:29 +0100 > Subject: [Pythoncard-users] Not enjoying win32 programming... > > Hi All: > > Coming from a Linux background, I'm struggling to understand some of the > things that appear to be going on behind the scenes when I'm coding stuff > to > run under Windows XP. > > The application in question has a textfield containing the name of a > Python > source code file and an 'Edit...' button next to it. When I click the > button, > I'm running this code: > > def on_mainScriptEditBtn_mouseClick(self, event): > editor =3D self.cfg.get('ConfigData', 'codeeditor') > item =3D self.pathJoin(self.components.mainScript.text) > item =3D os.path.join(self.components.baseDir.text, item) > item =3D os.path.join(self.cfg.get('ConfigData', 'projects'), item= ) > if sys.platform.startswith('win'): > editor =3D GetShortPathName(editor) > item =3D GetShortPathName(item) > print editor + ' ' + item > os.system(editor + ' ' + item) > > When the code runs, it prints out what I'm expecting, namely that I'm > trying > to run the Pythoncard code editor with the name of a script file as the > only > parameter on the command line. I then get the standard 'windows cannot > open > this file' dialog box and I get to tell Windows that I want codeEditor.py= to > be opened using the program called 'python'. The codeEditor duly opens up= , > but it seems as though Windows is somehow losing my command line paramete= r > and all I end up with is a blank codeEditor window, instead of it opening > the > file I wanted it to. Adding a simple 'print sys.argv' to the top of the > codeEditor proves that this is the case. > > Could somebody please explain to a dumb UNIX user what vital piece of > information I'm missing in order to make this work? > |
From: Alex T. <al...@tw...> - 2006-04-12 16:04:30
|
Phil Edwards wrote: >Hi All: > >Coming from a Linux background, I'm struggling to understand some of the >things that appear to be going on behind the scenes when I'm coding stuff to >run under Windows XP. > >The application in question has a textfield containing the name of a Python >source code file and an 'Edit...' button next to it. When I click the button, >I'm running this code: > > >When the code runs, it prints out what I'm expecting, namely that I'm trying >to run the Pythoncard code editor with the name of a script file as the only >parameter on the command line. I then get the standard 'windows cannot open >this file' dialog box and I get to tell Windows that I want codeEditor.py to >be opened using the program called 'python'. The codeEditor duly opens up, >but it seems as though Windows is somehow losing my command line parameter >and all I end up with is a blank codeEditor window, instead of it opening the >file I wanted it to. Adding a simple 'print sys.argv' to the top of the >codeEditor proves that this is the case. > >Could somebody please explain to a dumb UNIX user what vital piece of >information I'm missing in order to make this work? > > > Explain it ? No, I don't think I can do that. Give you something that works ? - Maybe. Here's what I tried - paths hard-coded for my system. The first time it starts up, no argument is successfully passed. Second time it works as hoped for .... > def on_Button1_mouseClick(self, event): > editor = "c:\\python\\PythonCard\\tools\\oneEditor\\test.py" > item = "c:\\python\\PythonCard\\tools\\oneEditor\\test.py" > print editor + ' ' + item > os.system(editor + ' ' + item) > os.system("python " + editor + ' ' + item) I'm not sure if it is always safe to just prepend the python command - may depend on the Python installation. You should be able to avoid any danger there by using the code used from the codeEditor to run a script (see function runScript) -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.1/309 - Release Date: 11/04/2006 |
From: Phil E. <ph...@li...> - 2006-04-12 13:17:43
|
Hi All: Coming from a Linux background, I'm struggling to understand some of the things that appear to be going on behind the scenes when I'm coding stuff to run under Windows XP. The application in question has a textfield containing the name of a Python source code file and an 'Edit...' button next to it. When I click the button, I'm running this code: def on_mainScriptEditBtn_mouseClick(self, event): editor = self.cfg.get('ConfigData', 'codeeditor') item = self.pathJoin(self.components.mainScript.text) item = os.path.join(self.components.baseDir.text, item) item = os.path.join(self.cfg.get('ConfigData', 'projects'), item) if sys.platform.startswith('win'): editor = GetShortPathName(editor) item = GetShortPathName(item) print editor + ' ' + item os.system(editor + ' ' + item) When the code runs, it prints out what I'm expecting, namely that I'm trying to run the Pythoncard code editor with the name of a script file as the only parameter on the command line. I then get the standard 'windows cannot open this file' dialog box and I get to tell Windows that I want codeEditor.py to be opened using the program called 'python'. The codeEditor duly opens up, but it seems as though Windows is somehow losing my command line parameter and all I end up with is a blank codeEditor window, instead of it opening the file I wanted it to. Adding a simple 'print sys.argv' to the top of the codeEditor proves that this is the case. Could somebody please explain to a dumb UNIX user what vital piece of information I'm missing in order to make this work? -- Regards Phil Edwards Brighton, UK |
From: Alex T. <al...@tw...> - 2006-03-29 17:20:08
|
Andy Todd wrote: > Anyone like to help? > > Regards, > Andy > I'll email him (her?) off-list and see if I can help ... -- Alex. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.3/295 - Release Date: 28/03/2006 |
From: Andy T. <an...@ha...> - 2006-03-27 11:24:22
|
Anyone like to help? Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Andy T. <an...@ha...> - 2006-03-27 09:35:32
|
Alan Craigon wrote: > I have wxPython installed, python 2.4 installed and have a folder with > python card files ready to install. Every time I try to install on my > Linux system using setup.py build & setupt.py install everything appears > to work but I am unable to start pythoncard. What am I doing wrong? What are you trying to run? When you install PythonCard on a Linux system from the .tar.gz all of the files are installed into your site-packages directory. On my (Ubuntu) box this is /usr/lib/python2.4/site-packages So, for instance, to run the resourceEditor tool you'll need a command like; $ /usr/lib/python2.4/site-packages/PythonCard/tools/resourceEditor/resourceEditor.py To run your own PythonCard applications you'll just need to make the .py file executable and run it from a shell. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Alan C. <ACr...@el...> - 2006-03-27 08:31:25
|
I have wxPython installed, python 2.4 installed and have a folder with python card files ready to install. Every time I try to install on my Linux system using setup.py build & setupt.py install everything appears to work but I am unable to start pythoncard. What am I doing wrong? |
From: Brian M. <mrb...@gm...> - 2006-03-22 21:32:38
|
I swiped this code from Pythoncard\widget.py - some modifications and a self.Refresh( ) import graphic # where you want to change images self.panel._imageFile =3D yourOtherImageFile self.panel._bitmap =3D graphic.Bitmap( self.panel._imageFile ) self.Refresh( ) On 3/22/06, =D8yvind Dale Sp=F8rck <oe...@sp...> wrote: > > Hello. > > I am making a Pythoncard application and cannot seem to find how I can > change the background image. > > {'application':{'type':'Application', > 'name':'Template', > 'backgrounds': [ > {'type':'Background', > 'name':'bgTemplate', > 'title':u'MyProg', > 'size':(839, 666), > 'image':'graphics.jpg', > 'visible':1, > > By changing the visible to 0 (by self.Show(0)), nothing shows. I would > just like the image graphics.jpg to not, or to be able to change it in th= e > program. Is that possible? > > Thanks in advance. > > > -- > This email has been scanned for viruses & spam by Decna as - www.decna.no > Denne e-posten er sjekket for virus & spam av Decna as - www.decna.no > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |
From: Brian M. <mrb...@gm...> - 2006-03-22 21:30:37
|
I swiped this code from Pythoncard\widget.py import graphic # where you want to change images self.panel._imageFile =3D yourOtherImageFile self.panel._bitmap =3D graphic.Bitmap( self.panel._imageFile ) On 3/22/06, =D8yvind Dale Sp=F8rck <oe...@sp...> wrote: > > Hello. > > I am making a Pythoncard application and cannot seem to find how I can > change the background image. > > {'application':{'type':'Application', > 'name':'Template', > 'backgrounds': [ > {'type':'Background', > 'name':'bgTemplate', > 'title':u'MyProg', > 'size':(839, 666), > 'image':'graphics.jpg', > 'visible':1, > > By changing the visible to 0 (by self.Show(0)), nothing shows. I would > just like the image graphics.jpg to not, or to be able to change it in th= e > program. Is that possible? > > Thanks in advance. > > > -- > This email has been scanned for viruses & spam by Decna as - www.decna.no > Denne e-posten er sjekket for virus & spam av Decna as - www.decna.no > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |
From: <py...@ka...> - 2006-03-22 13:41:22
|
Hello. I am making a Pythoncard application and cannot seem to find how I can change the background image. {'application':{'type':'Application', 'name':'Template', 'backgrounds': [ {'type':'Background', 'name':'bgTemplate', 'title':u'MyProg', 'size':(839, 666), 'image':'graphics.jpg', 'visible':1, By changing the visible to 0 (by self.Show(0)), nothing shows. I would just like the image graphics.jpg to not, or to be able to change it in the program. Is that possible? Thanks in advance. -- This email has been scanned for viruses & spam by Decna as - www.decna.no Denne e-posten er sjekket for virus & spam av Decna as - www.decna.no |
From: <oe...@sp...> - 2006-03-22 13:38:23
|
Hello. I am making a Pythoncard application and cannot seem to find how I can change the background image. {'application':{'type':'Application', 'name':'Template', 'backgrounds': [ {'type':'Background', 'name':'bgTemplate', 'title':u'MyProg', 'size':(839, 666), 'image':'graphics.jpg', 'visible':1, By changing the visible to 0 (by self.Show(0)), nothing shows. I would just like the image graphics.jpg to not, or to be able to change it in the program. Is that possible? Thanks in advance. -- This email has been scanned for viruses & spam by Decna as - www.decna.no Denne e-posten er sjekket for virus & spam av Decna as - www.decna.no |
From: Alex T. <al...@tw...> - 2006-03-20 23:25:23
|
David Bain wrote: > Will this fix the unicode issues with ResourceEditor and mulitcolumnlists? > Short answer : don't know. Long answer : what I will do is basically to package up the current CVS (making changes on;y to handle the changes in version numbers, etc.) So any problems that exist in CVS-latest will still exist. I know there was a recent fix to the resourceEditor for unicode issues, but I don't recall any fix (or any problems being discussed) re. Unicode and multicolumnlists). -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 17/03/2006 |
From: David B. <dav...@al...> - 2006-03-20 09:54:35
|
Will this fix the unicode issues with ResourceEditor and mulitcolumnlists? On 3/18/06, Alex Tweedly <al...@tw...> wrote: > > Vania Smrkovski wrote: > > > I believe I see from time to time mentions that you are working on an > > updated version. Is this still in the works? And is there a > > "snapshot" link somewhere to the currently active version? I don't > > have CVS and was hoping to get a working updated version without > > downloading each file individually.... > > Yes, a new version is in the works. I'm afraid it will be next weekend > before I get a chance to do much to it - but with luck it should be done > by the end of this month. (Note - this will be the first time I've tried > to do a release - so that might turn out to be an optimistic schedule). > > Unfortunately there is no snapshot version available. There are free > versions of CVS available for all platforms, and it's fairly easy to get > it going for anonymous access. > > > > > I hope development hasn't stopped. I consider PythonCard to be an > > excellent tool and framework, and it is currently my preferred choice > > of Python UI. > > > > Nope, hasn't stopped, though it has been quiet for a while. > > -- > Alex Tweedly http://www.tweedly.net > > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 17/03/2006 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |
From: phil j. <int...@gm...> - 2006-03-18 20:58:23
|
Anyone here interested in this attempt to create more dialogue between Python IDE developers? http://pyxides.stani.be/ |
From: Alex T. <al...@tw...> - 2006-03-18 17:07:17
|
Vania Smrkovski wrote: > I believe I see from time to time mentions that you are working on an > updated version. Is this still in the works? And is there a > "snapshot" link somewhere to the currently active version? I don't > have CVS and was hoping to get a working updated version without > downloading each file individually.... Yes, a new version is in the works. I'm afraid it will be next weekend before I get a chance to do much to it - but with luck it should be done by the end of this month. (Note - this will be the first time I've tried to do a release - so that might turn out to be an optimistic schedule). Unfortunately there is no snapshot version available. There are free versions of CVS available for all platforms, and it's fairly easy to get it going for anonymous access. > > I hope development hasn't stopped. I consider PythonCard to be an > excellent tool and framework, and it is currently my preferred choice > of Python UI. > Nope, hasn't stopped, though it has been quiet for a while. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 17/03/2006 |
From: David B. <dav...@al...> - 2006-03-13 12:50:40
|
I've created a variation of the flatfiledatabase example with a MultiColumnList. But it won't save the content of the Multicolumn list. |
From: Vania S. <va...@pa...> - 2006-03-07 18:55:40
|
I believe I see from time to time mentions that you are working on an updated version. Is this still in the works? And is there a "snapshot" link somewhere to the currently active version? I don't have CVS and was hoping to get a working updated version without downloading each file individually.... I hope development hasn't stopped. I consider PythonCard to be an excellent tool and framework, and it is currently my preferred choice of Python UI. Vania |
From: Vania S. <van...@gm...> - 2006-03-07 18:33:42
|
I believe I see from time to time mentions that you are working on an updated version. Is this still in the works? And is there a "snapshot" link somewhere to the currently active version? I don't have CVS and was hoping to get a working updated version without downloading each file individually.... I hope development hasn't stopped. I consider PythonCard to be an excellent tool and framework, and it is currently my preferred choice of Python UI. Vania |
From: Tjerk H. <tj...@br...> - 2006-03-05 15:46:30
|
Coming from Visual Basic, seems I am getting the hang of python and = pythoncard. But I don=B4t like the autosize attribute from the MultiColumnList. How can I get fixed Column Widths? Tjerk |
From: Andy T. <an...@ha...> - 2006-03-03 10:08:02
|
Christoph Zwerschke wrote: > I'm just making my first steps with PythonCard and I think I like it. > > However, I found that most string attributes are converted to 7-bit > ascii by the resource editor. This makes it impossible to use text > attributes with international characters like German Umlaute - they are > simply swallowed. > > The culprit is the following code in resourceOutput.py: > > if isinstance(value, unicode): > value = value.encode('ascii', 'ignore') > > After removing it, everything seems to work fine (no matter whether I > have Unicode enabled wxpython installed or not). So is there any real > reason that this conversion takes place? Maybe only historical reasons? > > -- Christoph > > Done. Thanks for spotting this. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Bill B. <bil...@pe...> - 2006-03-02 01:40:27
|
Warren Sande wrote: > I have a PythonCard app that opens up an Excel spreadsheet using the > win32com module. > <snip> You may have better luck asking on the Python-win32 list :-) You can sign up here: http://mail.python.org/mailman/listinfo/python-win32 You can also search the Python-win32 archives here: http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/Python-win32 HTH, Bill |
From: Warren S. <ws...@tr...> - 2006-02-28 20:54:00
|
I have a PythonCard app that opens up an Excel spreadsheet using the win32com module. =20 I started doing this in Perl, then recently switched to Python (and PythonCard), which I am just learning. =20 In Perl, I found the following code snippet which I used in my app: =20 ---------------------- # use existing instance if Excel is already running eval {$ex =3D Win32::OLE->GetActiveObject('Excel.Application')}; die "Excel not installed" if $@; unless (defined $ex) { $ex =3D Win32::OLE->new('Excel.Application', sub {$_[0]->Quit;}) or die "Oops, cannot start Excel"; $ex->{Visible} =3D 1; } # Note the destructor specified on the Win32::OLE->new method.=20 # It ensures that Excel will shutdown properly even if the Perl program dies. ---------------------- =20 I would like to be able to do the same in Python, but don't know if it is supported, and can't find or figure out the syntax if it is. =20 I know this is not really a PythonCard question, but I'm hoping that other PythonCard users are working with win32com and might be able to help me out. =20 My code to open the excel object is simply this: =20 ---------------------- import win32com as wc ... =20 self.xl =3D wc.Dispatch("Excel.Application") self.xl.Visible =3D 1 ... =20 self.xl.Quit() ---------------------- =20 Warren Sande =20 |