[python-win32] How to get all the variables in a python shell

2008-05-28 Thread ri
Hi! I'm currently working on a scientific computation software built in python. What I want to implement is a Matlab style command window <-> workspace interaction. For example, you type 'a=1' in the command window, and you see a list item named 'a' in the workspace. You double click the ico

Re: [python-win32] Concerns with PythonWin documentation

2008-05-28 Thread bob gailer
Mark Hammond wrote: If you can make some edits which reflect your concerns I would be happy to thrash out the detail - eg, you could restructure things, and leave explicit questions where you feel the current docs don't cover the info. Will do as best as I can. That would make my task much

Re: [python-win32] Concerns with PythonWin documentation

2008-05-28 Thread Mark Hammond
If you can make some edits which reflect your concerns I would be happy to thrash out the detail - eg, you could restructure things, and leave explicit questions where you feel the current docs don't cover the info. That would make my task much simpler and achievable, but also ensure that you aren

Re: [python-win32] Concerns with PythonWin documentation

2008-05-28 Thread bob gailer
Tim Roberts wrote: bob gailer wrote: A few years ago I wrote on this subject and never had a response. Since Tim has put the docs on the Web I revisited them. And I still have questions and concerns. So here goes: ... Under Keyboard Bindings: ... Why is Ctrl+ followed by upper case letters whe

Re: [python-win32] MSProject and export maps

2008-05-28 Thread Tim Roberts
Ron Henderson wrote: ... >>> print open (FILENAME).read () ╨╧◄αí▒ I'm not sure how those binary characters will be handled by my email client, but essentially the file "p2.csv" seems to have been written out as a binary project file, not as a CSV file. If I open the file "p2.csv" in Projec

Re: [python-win32] MSProject and export maps

2008-05-28 Thread Ron Henderson
Tim Golden wrote: Ron Henderson wrote: Thanks so much for trying this out. You've verified that it's possible to get this working. However, when I execute the same code, the file "p2.csv" is exactly same size as p1.mpp and contains binary data, not the text. Since you have it working it mu

Re: [python-win32] Dispatch InternetExplorer.Application fails

2008-05-28 Thread Waldemar Osuch
> > 2) use some python libraries (libxml2, libxslt) to transform the xml to > html. That part works but now how to I make a pdf from the html file? > I would use lxml for the transformation and wx for printing. The example below will prompt you with the dialog but it should be possible to silence i

Re: [python-win32] Docs & bonus: pywin32 docs

2008-05-28 Thread Tim Golden
Simon Dahlbacka wrote: Very nice, however you might want to fix the code samples to be properly indented instead of collapsed whitespace.. Thanks to those who pointed out errors in the code samples. Since all I've done is to extract the HTML in the compiled help file, I've fixed those indent is

Re: [python-win32] Concerns with PythonWin documentation

2008-05-28 Thread Tim Roberts
bob gailer wrote: A few years ago I wrote on this subject and never had a response. Since Tim has put the docs on the Web I revisited them. And I still have questions and concerns. So here goes: ... Under Keyboard Bindings: ... Why is Ctrl+ followed by upper case letters when one must use the

[python-win32] Concerns with PythonWin documentation

2008-05-28 Thread bob gailer
A few years ago I wrote on this subject and never had a response. Since Tim has put the docs on the Web I revisited them. And I still have questions and concerns. So here goes: Under Keyboard Bindings: What does "Common Keystrokes" mean? What does "Builtin Keystrokes" mean? How are they differe

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Mike Driscoll
Vernon, Tim: I think you missed my point... As you say, the PEP8 style guide "is a starting point for new Python coders." That is precisely why it ought to be followed in sample code. I normally format my function calls exactly the way you do, and I do so in open source code which I contri

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Tim Roberts
Vernon Cole wrote: Tim: I think you missed my point... As you say, the PEP8 style guide "is a starting point for new Python coders." That is precisely why it ought to be followed in sample code. I normally format my function calls exactly the way you do, and I do so in open source code whic

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Dahlstrom, Roger
I think there are perhaps billions of people who get down on their knees every day and pray to whatever god they believe in that they had such problems as a space between a function name and a parenthesis. For crying out loud, it's a simple search/replace at *worst* to change this to be however

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Vernon Cole
Tim: I think you missed my point... As you say, the PEP8 style guide "is a starting point for new Python coders." That is precisely why it ought to be followed in sample code. I normally format my function calls exactly the way you do, and I do so in open source code which I contribute to the co

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Tim Golden
Vernon Cole wrote: Let's not loose track of the thread here. The question was whether there should be a space between the function name and the leading parenthesis, as: my_function (arg) vs: my_function(arg) PEP8 clearly requires the latter. IMHO any published example code, which is what

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Tim Roberts
Vernon Cole wrote: Let's not loose track of the thread here. The question was whether there should be a space between the function name and the leading parenthesis, as: my_function (arg) vs: my_function(arg) PEP8 clearly requires the latter. PEP8 is a coding standard document for the Pyt

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Vernon Cole
Let's not loose track of the thread here. The question was whether there should be a space between the function name and the leading parenthesis, as: my_function (arg) vs: my_function(arg) PEP8 clearly requires the latter. IMHO any published example code, which is what we are talking about he

Re: [python-win32] Dispatch InternetExplorer.Application fails

2008-05-28 Thread Rickey, Kyle W
Thanks, I'll check out those links. -Kyle Rickey From: Gerdus van Zyl [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2008 4:11 AM To: Rickey, Kyle W Cc: python-win32@python.org Subject: Re: [python-win32] Dispatch InternetExplorer.Application fails Ha

Re: [python-win32] Dispatch InternetExplorer.Application fails

2008-05-28 Thread Gerdus van Zyl
Have you seen www.htmltopdf.org? Otherwise might I suggest http://www.openreport.org/; you could then transform your XML into RML(xml reporting format) into a PDF. You can also design RML with OpenOffice. ~Gerdus On Tue, May 27, 2008 at 10:41 PM, Rickey, Kyle W < [EMAIL PROTECTED]> wrote: > Tim

Re: [python-win32] Docs & bonus: pywin32 docs

2008-05-28 Thread Tim Golden
Thomas Heller wrote: Tim Golden schrieb: Simon Dahlbacka wrote: Very nice, however you might want to fix the code samples to be properly indented instead of collapsed whitespace.. Can you point me towards an example? Here's an example: http://timgolden.me.uk/pywin32-docs/html/win32/help/pro

Re: [python-win32] MSProject and export maps

2008-05-28 Thread Tim Golden
Ron Henderson wrote: Thanks so much for trying this out. You've verified that it's possible to get this working. However, when I execute the same code, the file "p2.csv" is exactly same size as p1.mpp and contains binary data, not the text. Since you have it working it must be a bug in eith

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Tim Golden
bob gailer wrote: Tim Roberts wrote: bob gailer wrote: Mark Hammond wrote: In general, I *try* and stick to the Python Style Guide (http://www.python.org/dev/peps/pep-0008/) Interesting. I don't like the idea of 2 spaces after a period. Internet research on this topic seems to favor one spa

Re: [python-win32] Docs & bonus: pywin32 docs

2008-05-28 Thread Thomas Heller
Tim Golden schrieb: > Simon Dahlbacka wrote: >> Very nice, however you might want to fix the code samples to be properly >> indented instead of collapsed whitespace.. > > Can you point me towards an example? Here's an example: http://timgolden.me.uk/pywin32-docs/html/win32/help/process_info.htm

Re: [python-win32] MSProject and export maps

2008-05-28 Thread Tim Golden
Ron Henderson wrote: Thanks so much for trying this out. You've verified that it's possible to get this working. However, when I execute the same code, the file "p2.csv" is exactly same size as p1.mpp and contains binary data, not the text. Since you have it working it must be a bug in eith