Hi all,
The following code snippet gives the error
import wmi
c = wmi.WMI()
for i in c.Win32_Product():
print i.Name
Output
---
Windows Installer Clean Up
Python 2.5.1
Debugging Tools for Windows
Windows Resource Kit Tools
Adobe Reader 8.1.2
Java(TM) SE Runtime Environment 6
Java(TM) 6 U
McPacino wrote:
I have a network printer. the default paper size is A4.
I have tried 2 ways to change the paper size:
1)
p = win32print.OpenPrinter(dp)
t = win32print.GetPrinter(p, 2)
t['pDevMode'].FormName=u'a3'
win32print.SetPrinter(p, 2, t, 0)
these code cause error refuse access, which mayb
Tim Golden wrote:
I have a request of the python-win32 community. Have a look at:
http://timgolden.me.uk/python-on-windows/
In particular, click through to the section on the Registry (which is
the only section which has anything useful in it!)
and then tell me what you think. About anything.
On Thu, May 29, 2008 at 7:26 AM, Rickey, Kyle W
<[EMAIL PROTECTED]> wrote:
> Thanks, I got your example working but unfortunately the results didn't
> work good. Here's links to 2 pictures for comparison, sensitive
> information removed.
>
> http://www.dsrt.org-a.googlepages.com/bad_report.png
> ht
> 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 cli
Thanks, I got your example working but unfortunately the results didn't
work good. Here's links to 2 pictures for comparison, sensitive
information removed.
http://www.dsrt.org-a.googlepages.com/bad_report.png
http://www.dsrt.org-a.googlepages.com/good_report.png
It wouldn't let me attach the ima
[Bizarrely, my mail system seems to be randomly misfiring.
If you've already seen this, please ignore!]
Tim Golden wrote:
Sorry, having seen Roger D's memcached suggestion, I realise I may
have misinterpreted your requirement. I thought that you wanted
a Python interpreter session to share its ob
Ron Henderson wrote:
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
Tim Golden wrote:
[EMAIL PROTECTED] wrote:
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
I have a network printer. the default paper size is A4.
I have tried 2 ways to change the paper size:
1)
p = win32print.OpenPrinter(dp)
t = win32print.GetPrinter(p, 2)
t['pDevMode'].FormName=u'a3'
win32print.SetPrinter(p, 2, t, 0)
these code cause error refuse access, which maybe because of it's
-Original Message-
From: Paul Moore [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2008 7:23 AM
To: Dahlstrom, Roger
Cc: Python-Win32 List; [EMAIL PROTECTED]
Subject: Re: [python-win32] How to get all the variables in a python shell
On 29/05/2008, Dahlstrom, Roger <[EMAIL PROTECTED]> w
On 29/05/2008, Dahlstrom, Roger <[EMAIL PROTECTED]> wrote:
> I'd try looking at memcached (http://www.danga.com/memcached/apis.html).
> No hacking or reimplementation of the interpreter would be necessary, and
> there's a Python api available. I haven't used it for anything production
> related,
-Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden
> Sent: Thursday, May 29, 2008 4:11 AM
> To: Python-Win32 List; [EMAIL PROTECTED]
> Cc: Python-Win32 List
> Subject: Re: [python-win32] How to get all the variables in a python shell
>
> [EMAIL P
[EMAIL PROTECTED] wrote:
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 dou
[EMAIL PROTECTED] wrote:
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 dou
15 matches
Mail list logo