Re: [python-win32] passing array by reference (3) [SEC=UNCLASSIFIED]

2017-02-20 Thread Andrew MacIntyre
ne alone!" <- Andrew MacIntyre Operations, Services and Technologies Branch tel: +61 2 6219 5356 Communications Infrastructure Division Australian Communications & Media Authority email: andrew.macint...@acma.gov.au<mailto:andre

Re: [python-win32] Building my own C extension [SEC=UNCLASSIFIED]

2015-11-04 Thread Andrew MacIntyre
ils sufficient for my needs on Python 2.x (not tried on Python 3.x yet). Regards, Andrew. -----> "These thoughts are mine alone!" <- Andrew MacIntyre   Operations, Services and Technologies Branch tel:   +61 2 6219 5356 Communications I

Re: [python-win32] Control Volume on Windows [SEC=UNCLASSIFIED]

2014-03-11 Thread Andrew MacIntyre
; volume. That's not really very much code in C++ terms, BUT none of those > interfaces have late-binding support, which means Python cannot use them. I think that comtypes (https://pypi.python.org/pypi/comtypes) can deal with early binding interfaces? -> &q

Re: [python-win32] Memory Leak in Threaded COM Object [SEC=UNOFFICIAL]

2013-05-05 Thread Andrew MacIntyre
Stab in the dark: after calling the Clear() method on object "tom" in method CreateTom, use "del tom" or "tom = None" to try and lose any remnant COM references before pythoncom.CoUninitialize() is called. -> "These thoughts are mi

Re: [python-win32] how can I do marshall.ReleaseComObject in python ?? [SEC=UNOFFICIAL]

2012-09-11 Thread Andrew MacIntyre
ne alone!" <- Andrew MacIntyre Operations Branch tel: +61 2 6219 5356 Communications Infrastructure Division fax: +61 2 6253 3277 Australian Communications & Media Authority email: andrew.macint...@acma.gov.au<mailto:andrew.macint...@acma.gov.au>

Re: [python-win32] how can I do marshall.ReleaseComObject in python ?? [SEC=UNCLASSIFIED]

2012-09-11 Thread Andrew MacIntyre
[sorry for top post] I suspect that your problem relates to what objects are being retained by self._getCurrentEnt. -> "These thoughts are mine alone!" <- Andrew MacIntyre Operations Branch tel: +61 2 6219 5356 Communication

Re: [python-win32] how can I do marshall.ReleaseComObject in python ?? [SEC=UNCLASSIFIED]

2012-09-10 Thread Andrew MacIntyre
approach for example being perhaps more usual when dealing with object attributes. -> "These thoughts are mine alone!" <- Andrew MacIntyre Operations Branch tel: +61 2 6219 5356 Communications Infrastructure Division fax:

Re: [python-win32] Opening, Modifying, and Saving an Excel File from Python? (Tim Roberts) [SEC=PERSONAL]

2011-08-23 Thread Andrew MacIntyre
nsive exception handling will also be required. -> "These thoughts are mine alone!" <- Andrew MacIntyre Operations Branch tel: +61 2 6219 5356 Communications Infrastructure Division fax: +61 2 6253 3277 Australian Communications &a

Re: [python-win32] Calling Excel function GetSaveAsFilename, parameter ignored [SEC=PERSONAL]

2011-07-13 Thread Andrew MacIntyre
which might be related to what you're seeing. -> "These thoughts are mine alone!" <- Andrew MacIntyre Operations Branch tel: +61 2 6219 5356 Communications Infrastructure Division fax: +61 2 6253 3277 Australian Co

Re: [python-win32] 'exit is not defined' [SEC=UNCLASSIFIED]

2011-06-05 Thread Andrew MacIntyre
I think you haven't yet caught up fully with how namespaces and scopes work in Python - the "Modules" section of the Python Tutorial might be a good place to start. -> "These thoughts are mine alone!" <- Andrew MacIntyre   Opera

Re: [python-win32] pyTTS in versions later than 2.5 [SEC=PERSONAL]

2011-05-25 Thread Andrew MacIntyre
t; "These thoughts are mine alone!" <- Andrew MacIntyre   Operations Branch tel:   +61 2 6219 5356 Communications Infrastructure Division fax:   +61 2 6253 3277 Australian Communications & Media Authority email: andrew.macint...@acma.gov.au    http://w

Re: [python-win32] Getting Started [SEC=PERSONAL]

2011-03-22 Thread Andrew MacIntyre
/crew/theller/comtypes/) builds on ctypes to access COM. -> "These thoughts are mine alone!" <----- Andrew MacIntyre Operations Branch tel: +61 2 6219 5356 Communications Infrastructure Division fax: +61 2 6253 3277 Australia

Re: [python-win32] Python Excel - 2 workbooks affect each other [SEC=UNCLASSIFIED]

2011-02-28 Thread Andrew MacIntyre
e. If you carefully look at the "formula" of a pasted cell, you might see how the source workbook & worksheet are identified - I know that this sort of thing is visible when using the "function wizard" with such Excel functions as VLOOKUP. ----->

Re: [python-win32] Using os.startfile() for automation [SEC=UNCLASSIFIED]

2011-02-03 Thread Andrew MacIntyre
-> "These thoughts are mine alone!" <- Andrew MacIntyre Operations Branch tel: +61 2 6219 5356 Communications Infrastructure Division fax: +61 2 6253 3277 Australian Communications & Media Authority email: andrew.macint...@acma.gov.au

Re: [python-win32] How to specify parameters in a query using odbc [SEC=PERSONAL]

2011-02-01 Thread Andrew MacIntyre
The odbc module in Pythonwin uses qmark parameter style I believe, so use ? instead of %s for parameter substitution. -> "These thoughts are mine alone!" <----- Andrew MacIntyre Operations Branch tel: +61 2 6219 5356 Communication

Re: [python-win32] odbc under windows 7? [SEC=PERSONAL]

2011-01-23 Thread Andrew MacIntyre
If you run out of other options, I've successfully used comtypes on top of the ctypes module included in Python 2.5 & 2.6 to read & write data in Access 2003 databases. Regards, Andrew MacIntyre. -> "These thoughts are mine alone!" &l

Re: [python-win32] WSAAsyncSelect [SEC=UNCLASSIFIED]

2011-01-09 Thread Andrew MacIntyre
lar seems pertinent. -> "These thoughts are mine alone!" <- Andrew MacIntyre Operations Branch tel: +61 2 6219 5356 Communications Infrastructure Division fax: +61 2 6253 3277 Australian Communications & Media Authority email: andre

Re: [python-win32] Win API call to display a BMP/PNG file as a splash screen for a console app? [SEC=PERSONAL]

2010-03-22 Thread Andrew MacIntyre
Is it possible to draw directly to the desktop? I vaguely recall reading somewhere that that is how some splash screens are done to avoid the overhead of a window... -> "These thoughts are mine alone!" <- Andrew MacIntyre   Operations Bra

Re: [python-win32] passing c structure into python function [SEC=PERSONAL]

2010-02-15 Thread Andrew MacIntyre
lt tool to learn, but once you get > it, it's incredibly handy. Much of PyWin32 is automatically generated > by swig (with careful tweaking). > > http://www.swig.org/Doc1.3/Python.html Pyrex and Cython might also be useful alternatives for the OP's purpose.

Re: [python-win32] 'No such interface supported' question [SEC=PERSONAL]

2010-01-13 Thread Andrew MacIntyre
. Sadly, most of the ArcObjects classes don't support the Dispatch interfaces required by PythonWin. -> "These thoughts are mine alone!" <----- Andrew MacIntyre Operations Branch tel: +61 2 6219 5356 Communications Infrast

Re: [python-win32] Compiling Python code to DLLs: Any way to do this [SEC=PERSONAL]

2009-11-08 Thread Andrew MacIntyre
mething like Pyrex or Cython (on top of the MinGW32 toolchain) to create the DLLs you're talking about - even if just to write an extension that embeds Python. -> "These thoughts are mine alone!" <- Andrew MacIntyre National Licens

Re: [python-win32] Calling random Windows function? [SEC=PERSONAL]

2009-10-22 Thread Andrew MacIntyre
, if you haven't got the platform SDK installed. As I understand, while PyWin32 wraps a lot of API functions it doesn't wrap everything; if it's not wrapped, ctypes is your only option. -----> "These thoughts are mine alone!" <- Andrew MacIn

Re: [python-win32] Passing Nothing into ReferencesEvents - resolved, however can't bind events [SEC=PERSONAL]

2009-10-18 Thread Andrew MacIntyre
pointer of the correct type, e.g. NullPtr = POINTER(Iwhatever)() If a VARIANT is required, one of VARIANT.empty, VARIANT.null or VARIANT.missing. -> "These thoughts are mine alone!" <- Andrew MacIntyre National Licensing and Allocation

Re: [python-win32] Dict, List and Com Object...oh my! [SEC=PERSONAL]

2009-07-30 Thread Andrew MacIntyre
> Does anyone have an idea why? I been trying to figure this out for > 3 hours now. You appear to be re-using the same dictionary for each record; allocate a new one for each record before starting to populate it. -> "These thoughts are mine alone!"

Re: [python-win32] Help required in opening a remote file in python. [SEC=PERSONAL]

2009-02-22 Thread Andrew MacIntyre
r") Note that UNC names do require a double backslash to start... Its often easier to read as open(r"\\remote_machine\share\folder\file", "r") If you really must open it via urllib, then try urllib.open("file://remote_machine/share/folder/file&qu

Re: [python-win32] Does Python need a native Windows GUI toolkit? [SEC=UNCLASSIFIED]

2008-11-30 Thread Andrew MacIntyre
hese thoughts are mine alone!" <- Andrew MacIntyre National Licensing and Allocations Branch tel: +61 2 6219 5356 Inputs to Industry Division fax: +61 2 6253 3277 Australian Communications & Media Authority email: [EMAIL PROTECTED] > -Original Me

Re: [python-win32] PythonWin [SEC=UNCLASSIFIED]

2008-11-13 Thread Andrew MacIntyre
5.x -> python25.dll). If the ArcGIS media kit doesn't contain PythonWin, you can retrieve a copy of the PythonWin installer to match the Python version via PythonWin's home page: http://starship.python.net/crew/mhammond/win32/ -----> "These thoughts are mi

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

2008-05-25 Thread Andrew MacIntyre
-> "These thoughts are mine alone!" <- Andrew MacIntyre National Licensing and Allocations Branch tel: +61 2 6219 5356 Inputs to Industry Division fax: +61 2 6253 3277 Australian Communications & Media Authority email: [EMAIL PROTECTE

Re: [python-win32] gc does not free memory [SEC=PERSONAL]

2008-02-18 Thread Andrew MacIntyre
7;ed even with most memory unused. -> "These thoughts are mine alone!" <- Andrew MacIntyre National Licensing and Allocations Branch tel: +61 2 6219 5356 Inputs to Industry Division fax: +61 2 6253 3277 Australian Communications &

Re: [python-win32] comtypes methods vs. properties question [SEC=UNCLASSIFIED]

2007-10-21 Thread Andrew MacIntyre
ll reply in detail separately without the cc to the Win32 list. -> "These thoughts are mine alone!" <- Andrew MacIntyre National Licensing and Allocations Branch tel: +61 2 6219 5356 Inputs to Industry Division fax: +61 2 62

Re: [python-win32] 'No such interface supported' question [SEC=UNCLASSIFIED]

2007-10-18 Thread Andrew MacIntyre
ESRI COM interfaces quite successfully in my experience. I've not tried using the ESRI 9.x stuff yet - still using 8.3 and an ancient version of ctypes. With the ESRI 8.x TLBs, there were issues where many of the names were declared out of order as far as Python was concerned and the generated mod

Re: [python-win32] Library and header?

2006-01-09 Thread Andrew MacIntyre
on.org Win32 installers to include the headers and libs - though for 2.4, VC7.1 would be required to match the Python build. -> "These thoughts are mine alone!" <- Andrew MacIntyre Broadcasting Planning Branch tel: +61 2 6256 2812

Re: [python-win32] 1MB Thread Stack Size

2005-06-01 Thread Andrew MacIntyre
've been working on a patch to allow the default thread stack size to be changed programmatically - its mostly complete except for doc updates, and I hope to get it into Python 2.5. -- Andrew MacIntyre

Re: [python-win32] LOCALE related stuff Re: Setting environment

2005-05-11 Thread Andrew MacIntyre
l the first call. If the former is true, subsequently setting the environment variable is a complete waste of time because its far too late. ------ Andrew MacIntyre \ email: [EMAIL PROTECTED] Planning Branch

Re: [python-win32] LOCALE related stuff Re: Setting environment

2005-05-11 Thread Andrew MacIntyre
e with MSVC 6 (thanks to Raymond Hettinger), so if you have access to that compiler you can check this out. ------ Andrew MacIntyre \ email: [EMAIL PROTECTED] Planning Branch\ tel: +61 2 6256 281