Newbie here. I thought my question would have been a common one but I have
checked the archive for the last year and only found one message even close.
I'm attempting to use a OCX designed to talk with QuickBooks. I'm using
win32com for the first time and have discovered an issue that I'm sur
On Wednesday 09 December 2009 11:21:40 am Tim Roberts wrote:
> John wrote:
> > ...
> > I'm attempting to use a OCX designed to talk with QuickBooks. I'm using
> > win32com for the first time and have discovered an issue that I'm sure
> > others have run i
gest what the problem might be?
Thanks,
John
___
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
Hi,
I need a way to determine the default printer (on the users computer)
from a RDP session.
The user logs on to a RDP session and win32print.GetDefaultPrinter()
returns a blank. That makes sense on the RDP session because there
aren't any default printers. RDP printing is directed to the
Thanks for the response - and yes I do have the printers checkbox -
checked. It returns a blank.
Johnf
On 2/26/20 8:48 AM, Terry Davis wrote:
Hi John,
In the Windows RDP client, under "Show Options" -> "Local Resources"
-> section "Local devices and resour
= TRUE"
is there something in python-win32 I can do to get the same results.
Johnf
On 2/26/20 8:48 AM, Terry Davis wrote:
Hi John,
In the Windows RDP client, under "Show Options" -> "Local Resources"
-> section "Local devices and resources" is "P
the future.
Johnf
On 2/26/20 8:48 AM, Terry Davis wrote:
Hi John,
In the Windows RDP client, under "Show Options" -> "Local Resources"
-> section "Local devices and resources" is "Printers" checked?
I haven't tried what you're referring to
Hey everyone,
I'm creating a program for my work that will let the users automatically
connect to a server that we have set up and read some data, etc.
I have been trying to figure out a way to use the win32serviceutil custom
options to pass some extra arguments for my users.
as far as I underst
sorry pressed enter too soon
Am i just setting up a function to parse the arguments and set class
variables? or is it something else!
Sorry for the double email >.<
~John Bunting
On Tue, Sep 2, 2008 at 1:25 PM, John Bunting <[EMAIL PROTECTED]> wrote:
> Hey everyone,
>
cause I'm also going to be
giving out some of this code to different users and I don't want to have to
have them manually add the exe.
Thank alot everyone,
~John
___
python-win32 mailing list
[email protected]
http://mail.python.org/m
my reply to the OP went him alone, not the list ... sorry.
--- Begin Message ---
Thank you very much John.
Somehow the first thing I came across while searching a python
implementation for win32ras was the source code. When I tried to run it a
message was printed requesting a vs2003 installation
Hi list:
I've been beating my head against this problem for 2 days and can't
figure it out. Searching the archives produced a semi-relevant thread
from the past but the former fixes haven't worked for me.
Using wmi 1.3.2, I've got the following simple code:
system = wmih.SMS_R_System(Netbio
On Fri, Apr 17, 2009 at 4:59 PM, John Randolph wrote:
snip
> wmi.x_wmi: -0x7ffdfff7 - Exception occurred.
> Error in: SWbemObjectEx
> -0x7ffbefff - Generic failure
>
(er, message got cut off)
anyway, enabling verbose WMI logging didn't produce anything revealing.
any
y. I've been unable to cough up
anything interesting on the server side, and I'm not very windows or
sms savvy.
Regards,
John
>
> I'm afraid I'm not at all familiar with SMS and I'm certainly
> nowhere near an installation, so it's hard for me to test or
>
On Sat, Apr 18, 2009 at 8:09 PM, Tim Golden wrote:
> John Randolph wrote:
>
>> Actually I had previously placed a delay between the new_rule creation
>> and calling AddMembershipRule for another reason -- to make a clear
>> break in the timestamps on the server side
ve write access. oops.
Unfortunately I learned no further details on how to decode "Generic
failure" into "Bad permissions" for the list, though, sorry. The WMI
service logs look clean so you probably need to dive into the SMS
logs.
Thanks
John
__
Greg Ewing wrote:
John Finlay wrote:
Greg,
Why do you post to mailing lists that are unrelated to your project? I
would appreciate it if in future you didn't post a message about your
project ot the PyGTK mailing list.
I posted the announcement to the pyobjc, pygtk and py
m26.dll and PyWinTypes26.dll, into
the system32 directory which also didn't work.
Thanks,
John Freking
___
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
Paul,
Thanks that worked great.
But, I don't understand what you mean by the import hook doesn't work properly.
The .pyd files were in the site-packages subfolders so why couldn't Python
find them?
Thanks,
John Freking
From: Paul Keating [mailto:keat..
On 19/08/2010 4:00 AM, Tim Roberts wrote:
@©ħα® wrote:
Workbooks.Open fails randomly throws an exception
...
calling logToXLS() occasionally throws the mentioned error at
xl.Workbooks.Open(filePath)
File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py",
line 496, in
__geta
Just my opinion, but if anyone decides to create a combo box, the one that
has been part of MS Access since at least version 2.0 would be the one to
model it after. I have yet to see any combo box in any
language/platform/application that has worked as well as that one does.
John Sheehan
without
fully understanding it at the moment.
If anyone can throw some light on what to do I shall be very grateful.
It could be that I should post this question to python-windows mailing
list since it seems to me more pertinent to windows than twisted.
Thanks for any info.
John Aherne
Here is 1st
On Fri, Oct 14, 2011 at 12:51 PM, Mark Hammond wrote:
> On 14/10/2011 7:47 PM, John Aherne wrote:
> ...
>
> What I am trying to work out is should I import twisted.reactor etc
>> inside the thread start in SvcDoRUn or import it globally as one of the
>> examples does.
Hi,
My name is Nupur Jha. I have one query related to Python.
[1] I would like to know if we update any python file then while
saving it can we extract the updated line and paste in excel.
[2] If so what all we are suppose to do.
I will be thankful if I will get a positive reply from your side.
I'm trying to implement excelRTDserver.py (
http://www.math.uiuc.edu/~gfrancis/illimath/windows/aszgard_mini/movpy-2.0.0-py2.4.4/movpy/lib/win32com/demos/excelRTDServer.py).
I'm running Excel 2010 (32bit) so I change the EXCEL_TLB_MINOR value to 7.
The add-in is visible in the Excel add-ins list an
up for the ML here because it seems like this is the best place
for Windows expertise concerning Python. I saw a few emails on this list
about hooks and callbacks. I've used the IDE with pywin32 for years - its
the best!
Many thanks for any help on this critical task
rticle.
I just browsed the Blender C source code and they also use
"SetWindowLongPtr" for GWLP_USERDATA, but not for GWLP_WNDPROC. I think
everything will work out fine when I find the HWND.
Thanks for the expert help.
John
On Thu, May 9, 2013 at 9:46 AM, Tim Roberts wrote:
> John
I believe found access to the HWND.
mHWND = ctypes.windll.user32.GetActiveWindow()
On Thu, May 9, 2013 at 11:13 AM, John Grant wrote:
> Hi Tim,
>
> Thanks for the great explanations.
>
> Yes, you are right, I am trying to intercept gestures in a window within
> the same pr
violation reading 0xblahblah).
Does anyone see an error with the way I am calling the "oldWndProc" or the
print statement in the code below? Maybe the way I have defined the return
argument for SetWindowLongPtrW is incorrect?
Thanks for any help,
John
from ctypes import *
import cty
ure that I
declared with ctypes. This return type might need to match the argtype
of 'CallWindowProc',
which was an int. Now they are both WNDPROC (declared with ctypes).
Thanks for all the help. I feel like I learned a magic trick.
John
On Thu, May 9, 2013 at 5:59 PM, Tim Roberts wrote:
penKey call being
redirected to the VirtualStore? What can I change in the program, ACLs
or other to make it be redirected?
Any help would be appreciated.
Thanks,
John
--
John Spitzer
[email protected]
503-590-7434
___
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
r. With KEY_READ access, I can read the key. With
KEY_ALL_ACCESS I get the error: [Error 5] Access is denied.
How do I code this so that the access is directed to the Virtual Store,
or am I not understanding how this is suppose to work (very possible). I
am certain that I'm not the first t
/PyQt
Good luck,
John
On Dec 31, 2013 3:11 AM, "Sean Murphy" wrote:
> Hi all.
>
> I am very very new to Python. I have read the book on programming for
> Windows with Python that was released in 2000. The book is very good but
> doesn't give me the basic informat
work with Windows 64-bit only? Is there a version that
works with 32-bit Windows?
Regards
John Sampson
___
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
On 14/10/2014 18:15, Tim Roberts wrote:
John Sampson wrote:
I have a proprietary program with a command interface implemented as an
ActiveX DLL. Importing win32com.client and pythoncom, I can call
functions from Python scripts. Some of these work properly in 32-bit
Windows 7, but others only in
On 16/10/2014 07:48, Mark Hammond wrote:
On 16/10/2014 12:50 AM, John Sampson wrote:
The interface has a function which returns a string from an array of
strings as it is supposed to
in Windows 64-bit, or if called from VBA.
In 32-bit Windows Python it returns the number of the item in the
On 20/10/2014 11:27, Mark Hammond wrote:
On 16/10/2014 8:25 pm, John Sampson wrote:
at lib\site-packages\win32com\gen_py I see more files in the version
causing trouble than in the version that works OK.
How would I recognise the generated support you mention?
Those files *are* the generated
What type of object is a keystroke?
Perhaps I need to find some other way for a Python script detect
keystrokes but I am confused as to what Python sees them as.
Any advice would be welcome.
Regards
John Sampson
___
python-win32 mailing list
pyth
Many thanks - by excluding repr the code behaves in a comprehensible
way. The example code that was provided at Stack Overflow included repr
so I assumed that it was necessary for some reason.
If I were allowed to comment there I would ask why.
Regards
John Sampson
On 27/11/2014 18:26, Randy
In answer to Time Roberts, I saw an item prefixed with 'u' (u'\x1a').
What is the purpose of this prefix? I would have thought it meant
'Unicode' but the type according to Python is 'str'.
Thank you for the explanation of 'repr'. The issue turned out to be the
inclusion of 'repr' in the sample
Is it possible to create a standalone executable (.EXE file) from a
Python script?
By 'standalone' I mean an executable file that can be placed in any
folder and contains or finds the libraries, modules etc. that it depends on.
Regards
Jo
that can be
run in any folder, and nothing else - that is, standalone.
Regards
John Sampson
On 06/01/2015 13:07, Graeme Glass wrote:
Yes it is.
http://www.py2exe.org/
http://cx-freeze.sourceforge.net/
On 6 January 2015 at 14:50, John Sampson <mailto:[email protected]>> wrote:
s subfolders. Are
these still needed? If so, what if I make another standalone executable?
Is there a need for another 'build' folder tree for it, to exist as well
as the 'build' folder tree for the first standalone executable?
Regards
John Sampson
On 06/01/2015 1
it
has to be x(self), why it has to be followed by '()' in one place but
not in another, how the variables are scoped and similar questions. At
the moment all my guesses are wrong.
Are there any such examples?
Regards
John Sampson
___
py
I had spent a day trying to find a solution. Still, I know now one place
I won't look for help.
JS
In case of a real person that wanted help:
"We reap what we sow" or "ask niceley and show that you tried yourself to find a
solution".
___
python-w
My apologies if this is something that should be obvious to me, but I cannot figure out how to use a typelib if that typelib does not establish ProgID values for the CoClasses.
The class that was created by EnsureModule() is as follows:
class CaWHarvest(CoClassBaseClass): # A CoClass
# CaWHarve
Well, I guess sometimes it just helps to talk it out in email.
-John
On Mar 23, 2005, at 10:21 PM, John Clark wrote:
My apologies if this is something that should be obvious to me, but I cannot figure out how to use a typelib if that typelib does not establish ProgID values for the CoClass
7;int' object is not callable
Any ideas? I tried using the proc.Method('GetOwner') syntax to locate the function, but I don't know how to pass in paramaters ( explained on Microsoft's site ) to the function using that syntax.
Thank You,
John A. Gooch
Systems A
ext in page header ?
>
> I am running the following, Python 2.3.3, wxPython 2.4.2.4, PythonWin
> 2.3.3 win32all build 163
>
Any good reason why you're running old versions of software? I used to
get that "strange text in page header" problem, but
r me on 2.4.1 / build 204. I typed in "abc" then replaced
"b" by "abyzAB...JK".
The size of the box for typing in the replacement string is only 30
characters, but it does scroll if you keep on typing -- have you tried
this? What makes you think it is limi
FYI, I am forced to run this version in support of
>CAD system.
>
>Regards,
>Robert
>
>-Original Message-
>From: John Machin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 08, 2005 2:45 PM
>To: Graeme Glass; Robert Adams
>Cc: python-win32
>Subject: Re: [python-win32] Ed
[EMAIL PROTECTED] wrote:
>
> Hi,
>
> I'm trying to use Python's win32com interface to drive an excel
> spreadsheet.
>
> I've managed to have it open the sheet, call a VBA function with
> arguments, and close it down cleanly.
>
> However, if Excel is already running, it closes the open instance.
aus Variants wird
erwartet.', None, 0, 0), None)
it says, 1D-Array of Variants is expected.
i've succeeded in sending 1d and 2d arrays, or a
cluster. the only problem is to send an array of
clusters (elements of different types).
anybody with experience in python/com/labview has
i
g new thread.
none of them works.
anybody can help?
cheers,
john
___
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
. I could
be complete off-base here as the document I have found via Google don't
explain what the code is doing, so I am left guessing.
Any help would be appreciated.
Thank You,
John A. Gooch
Systems Administrator
IT - Tools
EchoStar Satellite L.L.C.
9601 S. Meridian Blvd.
Englewood, CO 8
Radovan Grznarik wrote:
>Hi,
>
>I am using EasyDialogs (AskFileForOpen) and I am not able to set the
>initial open path. I found in Python help
>
Python help describes the *Mac* version; EasyDialogs for Windows by
Jimmy Retzlaff has slightly different arguments; there is a readme.txt
in .\si
Radovan Grznarik wrote:
>Thank you very much, I was so close, it's the 4th one:)))
>Next time before the question I will look at the code.
>
>now it works
>filename = EasyDialogs.AskFileForOpen("","","","d:\\")
>
>
Bletch. Try this:
filename = EasyDialogs.AskFileForOpen(defaultLocation="d:\\")
ns.pwdLastChanged1,trans.pwdLastChanged2
)
else:
#print "Password change verification success - PasswordLastChange Value did
change after executing the SetPassword Command.Before:%s Date After Date:%s" % (
trans.pwdLastChanged1,trans.pwdLastChanged2
)
ns problems while I sleep. :)
-Original Message-
From: Jim Vickroy [mailto:[EMAIL PROTECTED]
Sent: Friday, July 29, 2005 12:34 PM
To: Gooch, John
Cc: [email protected]
Subject: Re: [python-win32] Querying Password Change Privilege on an Active
Directory User Ac count
Hello John,
Why does it mat
Roel Schroeven wrote:
>le dahut wrote:
>
>
>>Hello,
>>
>>How is it possible to detect which kind of windows a python script is
>>running on ? (9x, Me, 2k, XP, 2k3)
>>
>>
>
>You can use sys.getwindowsversion() for that. Check MSDN documentation
>for the precise meaning of the result.
>
>
>
rived fom it :-)
Later on there's this:
http://herlock.com/ob/pythoncb/0596007973/chp-2-sect-27.html
By the way, you have u'text' in your code -- are you sure that you don't
mean u'txt'?
Cheers,
John
___
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
Michel Claveau wrote:
> Hi_release_2 !
>
Anyway I wonder if this could be found in MSDN documentation or in
word
macro itselfjust for the next time I am in the same situation...
>>>
>
I don't know why you are sending this to me -- the above quote is from
"geon", and as for the
Olivier Lefevre wrote:
> Trying to run pywin32-205.win32-py2.4.exe on a Windows XP SP2 machine
> with a HT P4 processor gives me "The NTVDM CPU has encountered an
> illegal instruction error". Any idea?
>
Gives me one of those stupid "do you want to send your life history to
Microsoft" dialogu
d
indicate network error or problem with the package.
I downloaded it several times using both IE and
mozilla just in case it was a download error. That did
not resolve it.
Has anybody else encountered this and resolved it? Let
me know how you did it.
Th
nt
>
>
How do you know it didn't work?
Your class and its methods don't have any problems that I can see --
but it's early here and I'm not quite awake. Is it possible for you to
show us the few lines of code that you actually used to test this? You
know, something
Gregory Piñero wrote:
> See below:
>
> On 11/5/05, *John Machin* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Gregory Piñero wrote:
>
> >
> > Would anyone happen to know why this my function removewatermark() in
>
at a bug in core Python. Report the problem
using the SourceForge bug tracker. This mailing list is for Mark
Hammond's win32all aka pywin32 package.
Cheers,
John
___
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
ommand,
operable program or batch file.
C:\junk>"c:\program files\textpad 4\textpad.exe"
[works OK]
> I am
> using python 2.4 on a Windows 2003 server. I am also running this
> command on Windows 2003 server.
>
Fourthly, this mailing list is for discussion of Mark Ha
81f38ba
>
> TJG
Thanks, Tim. Maxima mea culpa. I'll pull my head in :-)
Does anyone have any suggestions on what advice to give (a) people who
post from work via e-mail, engendering enormous disclaimers (b) possibly
over-sensitive folk who are annoyed by (a)?
Cheers,
John
___
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
rking example of searching Active Directory? Of you
course you can put in made up domain/server names where necessary.
Thank You,
John A. Gooch
Systems Administrator
IT - Tools
EchoStar Satellite L.L.C.
9601 S. Meridian Blvd.
Englewood, CO 80112
Desk: 720-514-5708
_
bob wrote:
> Viola, it displays 6.
:-)
Cello, it displays 7.
(-:
___
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
Stefan Elwesthal wrote:
> Hi all!
>
> I have to ask, cause two days later I'm starting to get annoyed ;-)
>
> How could I use PythonCOM and save my re-worked Excel file as an xlCSV file?
> All I get is
> "SaveAs method in Worksheet class failed".
>
> Is something wrong with this line?
Yes. Two
bob wrote:
> At 11:16 AM 1/10/2006, John Machin wrote:
>
>> bob wrote:
>>
>>> Viola, it displays 6.
>>
>>
>> :-)
>> Cello, it displays 7.
>> (-:
>
> Version difference? I'm using Excel 2000. and I get xlcsv = 6! But it
&
nning Python 2.1???
BTW, print is not a function, it's a statement.
You should get out of the backslashitis habit
('c:\python21\\python.exe') very quickly. Apart from the fact that for
consistency you should have had 'c:\\python21\\python.exe', it is much
easier to comp
t;
> >>> win32com.client.constants.acViewNormal
>
> If that's not working, then I'd say there's nothing *too* obvious that you're
> missing. You've obviously run makepy, otherwise even the convolution
> wouldn't
> work...
>
David, Forget your convolvulus; show us a small complete runnable piece
of code that tries to do what you expect/want, but fails.
Cheers,
John
___
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
On 20/02/2006 7:46 PM, Tim Golden wrote:
> [yeswanty devi]
>
> | Hello all,
> | if we have number of excel sheets in a workbook.can
> | we access a selected sheet in the workbook. when i try to
> | acces it always goes to the last sheet.
>
> I assume this is the kind of thing you want
On 20/02/2006 8:02 PM, Tim Golden wrote:
> [John Machin]
> |
> | On 20/02/2006 7:46 PM, Tim Golden wrote:
> | > [yeswanty devi]
> | >
> | > | Hello all,
> | > | if we have number of excel sheets in a workbook.can
> | > | we access a select
On 20/02/2006 10:15 PM, Tim Golden wrote:
> [John Machin]
>
> | > OK, given the workbook created in my previous post...
>
> [ ... snip more code ...]
>
> | OK, great, Tim, we're almost there :-)
> | "when i try to acces it always goes to the last sheet.&q
On 20/02/2006 10:37 PM, Tim Golden wrote:
> | From: John Machin [mailto:[EMAIL PROTECTED]
> |
> | Tim, that's fantastic. Hold out your hand for the elephant stamp :-)
>
> Must be an American thing? (Obligatory Monty Python
> reference: I'm sorry, old man, I don&
On 22/02/2006 5:51 AM, Math wrote:
> Hello,
>
> Anybody could give me an example code of how connect/comunicate through
> COM ports (i.e. COM1, COM2).
> I'm under windows XP
> > Thanks!!!
> Math
http://pyserial.sourceforge.net/
___
Python-win32 mai
On 23/02/2006 11:53 AM, Heang Lim wrote:
> I've installed Python on my c:\python23 directory and Apache on my
> c:\Apache2 directory. On my DOS windows, I went to c:\Apache\htdocs
> directory and enter 'python' to go into the interactive mode. When I
> tried to import some modules such as 'import
f Python 2.3 before re-installing.
Please don't top-post.
> On 2/23/06, John Machin <[EMAIL PROTECTED]> wrote:
>
>>On 24/02/2006 3:02 AM, Heang Lim wrote:
>>
>>>Hello John,
>>>
>>>Here is the sys.path output:
>>>
>>>C:\\Apach
.
>
> Phill
>
Phill,
Sorry, you've lost me ... I thought "this" (installing mxODBC) was as
simple as downloading the two installers ("base" and "commercial") that
match the version of Python that you are using, and running them. What
docs are you rea
On 14/03/2006 11:19 AM, Phill Atwood wrote:
>
>>
>> Sorry, you've lost me ... I thought "this" (installing mxODBC) was as
>> simple as downloading the two installers ("base" and "commercial")
>> that match the version of Python that you are using, and running them.
>> What docs are you reading?
On 19/04/2006 2:49 AM, Metz, Bobby W, WCS wrote:
> All,
> This may not be the right list for this, but I figured there's
> bound to be some py2exe experts.
[snip]
There's bound to be even more py2exe experts on
[EMAIL PROTECTED] :-)
>
> Thanks,
>
> Bobby
> ___
annot figure
out what the problem is.
I have searched around, but can't find
any example code. Hopefully someone can point me in the right direction.
thanks,
John
## XML-RPC Service
import win32serviceutil
import win32service
import win32event
import win32evtlogutil
import win32f
On 2/05/2006 8:16 AM, Dean Allen Provins wrote:
> Hello:
>
> I just installed the 2.4 version of Python on a WinXP box. I then
> copied over my python code which runs under Linux. This code uses
> "curses.ascii" (isspace specifically).
>
> The Win version of the libraries has a curses directory
readers know why the "_curses" library is missing, or in other
>>>>> words, have I found an "error of omission"?
>>>>>
>>>>
>>>> http://www.amk.ca/python/howto/curses/
>>>>
>>>> "Nobody has made a
On 11/05/2006 5:47 PM, Christian Stooker wrote:
> Mark Hammond írta:
>> I'm guessing it is related to the GMT offset. The MSDN docs for the
>> FILETIME structure say:
>>
>> Furthermore, FAT records times on disk in local time. However,
>> NTFS records times on disk in UTC. For more information
On 25/05/2006 8:12 PM, Metz, Bobby W, WWCS wrote:
> Mark,
> Thanks for that. I didn't read an earlier entry from the
> submitter close enough. Someone else had told them that
> GetShortPathName wasn't supported but I didn't pay attention to the W at
> the end...could have saved myself a cou
compile Python
(Microsoft), which may differ from the alignment used by the compiler
used for the driver (gcc?).
If the answer is 4, then the problem is not with your usage of struct.pack.
>
> Apparentely the error is coming from 1020. However it is define as ulong
> for both case the c struct and the python struct.pack.
>
HTH,
John
___
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
If there is a function in the Python/C API that does the job, use it
in preference to an RTL function. This applies especially to malloc()
and free().
3. Don't try to use resources across RTL boundaries e.g. trying MinGW
fwrite() on a (FILE *) that was opened by the MSC RTL and obtained by
calling PyFile_AsFile()
HTH
John
___
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
es it save you counting args, it helps document
your code.
Here's a (slightly edited) example from one of my scripts:
import EasyDialogs
infname = EasyDialogs.AskFileForOpen(
windowTitle='Fu or Bar file from XYZ',
typeList=[
('All files (*.*
- so it's not a
Python problem.
Your e-mail address suggests that you are working for a U.S. state
government agency, which has presumably paid a licence fee for the
product. In that case I suggest you avail yourself of whatever support
options
> Any ideas on what I might do to troubleshoot this?
>
(1) Read the manual: "Availability: Unix"
(2) Read line 25 of the source code (c:\python25\lib\commands.py)
Others may know of canned Python solutions for Windows; all I can
suggest is to write something like the (very short) comma
t the picture??
Four problems:
(1) VBA syntax instead of Python syntax
(2) Not reading error message
(3) Courting danger with backslashes in filenames
(4) Courting danger keeping misc cruft in root directory
Solution:
xl.ActiveSheet.Pictures().Insert(r"C:\misc_cruft\a.jpg")
HTH,
John
___
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from win32com.client import Dispatch, constants
>>> print getattr(constants, 'xlHAlignRight', 'Bt!')
Bt!
gives you a weird syntax error (like the syntax error you
showed in the response to Tim Roberts), that could be an old bug (in
Python, I believe). Ensure that you have Python 2.4.3, and the latest
build of pywin32, and try it again. IIRC, the workaround involved
editing the file with
Jd H wrote:
> Hello,
>
> I have the below python code which opens an excel sheet, runs a macro then
> save the file. When run from python it runs perfectly. Code is below. File
> name is test.py
>
What does "run from python" mean??
>
> <<<
>
What's that "<<<"?? If you meant to
accomplish this in
> Python? I will be thankful for the comments and suggestions. I am
> using Python 2.3.
http://www.pythonware.com/products/pil/
This may do the job -- check its manual (data formats in an appendix).
Runs on any Python-supported platform, not just
1 - 100 of 107 matches
Mail list logo