Re: [python-win32] Equivalence of win32com.client under Linux

2017-03-23 Thread Graeme Glass
Are you running this under WINE? On 22 March 2017 at 19:23, Brahim EL ALLIOUI wrote: > Hello, > > I use win32com.client to integrate a C # dll under python. This works well > under windows > > From win32com.client import Dispatch, pythoncom > From ctypes import cdll > Mydll = cdll.LoadLibrary (

Re: [python-win32] Creating standalone executable

2015-01-06 Thread Graeme Glass
Yes it is. http://www.py2exe.org/ http://cx-freeze.sourceforge.net/ On 6 January 2015 at 14:50, John Sampson wrote: > 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 conta

Re: [python-win32] module namedtuple no found on Python Win 2.5.4

2010-06-03 Thread Graeme Glass
On Thu, Jun 3, 2010 at 9:30 AM, Mauricio Martinez Garcia wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, i have an problem at import module collections: >> #=== Python >> 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310

Re: [python-win32] set wait time max

2010-05-18 Thread Graeme Glass
On Tue, May 18, 2010 at 9:22 AM, pacopyc wrote: > Hi, I've a question for you. I'd like to call a function and waiting its > return value for a time max (30 sec). > The function could not respond and then I must avoid to wait for infinite > time. > Can you help me? > > Thanks It depends on what m

Re: [python-win32] adodbapi-2.1 release candidate 1 ready for testing

2010-05-17 Thread Graeme Glass
On Sat, May 15, 2010 at 1:25 PM, Trong Hai wrote: > Hello! > > Excuse me, I have a problem with python program, I don’t know fix it . Do > you can help me? I very thank you. My problem is “ ImportError: No module > named adodbapi ” when I run file “test_tsqlunit.py” and another. I hope you > can h

Re: [python-win32] Tutorial Developing GUI using python-win32

2010-05-08 Thread Graeme Glass
On Sat, May 8, 2010 at 10:58 AM, Mico Siahaan wrote: > Hi all, are there any tutorials in developing GUI using python-win32? > > rgds, > Mico > > If you going to be doing win32 programming I highly recommend you buy this book. http://oreilly.com/catalog/pythonwin32/chapter/ch20.html a web search

Re: [python-win32] python win32api maya2008

2010-04-21 Thread Graeme Glass
On Wed, Apr 21, 2010 at 9:05 AM, kNish wrote: > Hi, > > How is it possible to run import win32api successfully on a 64bit maya > version 2008? > > The following error occurs: > > Error: No module named win32api > Traceback (most recent call last): > File "", line 1, in > ImportError: No module n

Re: [python-win32] Sourceforge pywin32 site seems to be down

2009-07-07 Thread Graeme Glass
On Tue, Jul 7, 2009 at 10:16 AM, Fadhley Salim wrote: > https://sourceforge.net/projects/pywin32/ > > > The Sourceforge PyWin32 download site seems to have been down for a very > long time. Is there an alternate source of downloads? > > Thanks > Site working fine for me. I think it might be somet

Re: [python-win32] executing dos commands

2009-03-06 Thread Graeme Glass
On Fri, Mar 6, 2009 at 1:29 PM, wrote: > > Hi folkz, > just a simple question for a python guru:-) > > How can I execute dos commands via python? > The command exec("chdir \Dir1\dir2\..") doesn't do it. > > Many thanks in advance! > > Solomon > > ___ > p

Re: [python-win32] Is it possible to write a python app running at background on Windows?

2008-10-20 Thread Graeme Glass
On Tue, Oct 21, 2008 at 4:50 AM, A. TNG <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking for a way to write a python app running at background on > Windows. > > Like some Instant Messenger applications, the app may have a main > windows. When user click "close", main window disappears. But the app

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-13 Thread Graeme Glass
On Wed, Aug 13, 2008 at 4:56 PM, Vernon Cole <[EMAIL PROTECTED]> wrote: > Where can one find documentation of MCI? > > On Tue, Aug 12, 2008 at 4:30 PM, Michel Claveau <[EMAIL PROTECTED]> wrote: > >> Hi! >> >> This is perfect. Works like a charm ... Thank you very much! >>> >> >> Thanks for retur

Re: [python-win32] when was pythonwin develop?

2008-08-01 Thread Graeme Glass
On Thu, Jul 31, 2008 at 11:39 PM, Emanuel Sotelo <[EMAIL PROTECTED]>wrote: > hello, everybody > perhaps somebody already ask this question but a i dont now the answer > > at what year was pythonwin develop, or at what year was his first release? > > is Mark Hammond the creator of pythonwin or was

Re: [python-win32] Request for comments

2008-05-23 Thread Graeme Glass
On Thu, May 22, 2008 at 6:21 PM, Tim Golden <[EMAIL PROTECTED]> 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 use

Re: [python-win32] Hide the console as soon as the script starts.

2008-05-12 Thread Graeme Glass
On Tue, May 13, 2008 at 8:37 AM, Antony Joseph <[EMAIL PROTECTED]> wrote: > Hi , > I am trying to hide the console as soon as the script starts > and display console window to System Tray . > Could someone point me to any links. > > Thanks > Antony Execute your script with pythonw.exe

Re: [python-win32] Fwd: Using Python and WMI for multiple machines

2008-02-20 Thread Graeme Glass
> If I am not mistaken, you can use the with statement with python 2.4 > > from __future__ import with_statement > > > Um, forget that. That is 2.5 like you said. Sorry. Don't have 2.4 installed anymore to test my brain farts before sending them on. *Jedi mind trick* You never saw this mail __

Re: [python-win32] Fwd: Using Python and WMI for multiple machines

2008-02-20 Thread Graeme Glass
> import wmi > > > > servers = open ("c:/servernames.txt").read ().splitlines () > > for server in servers: > > wmi_connection = wmi.WMI (server) > > with open ("%s-services.log" % server, "w") as f: > > for service in wmi_connection.Win32_Service (): > > f.write ("%s\t%s\n" % (

Re: [python-win32] Word FormField types

2008-02-04 Thread Graeme Glass
On Feb 5, 2008 12:01 AM, Graessle, Glenn (FC COE) < [EMAIL PROTECTED]> wrote: > Is there an import file that defines the FormField types symbolically? > > For example, Word Checkbox has the value of 71 for it's type. > > > *Glenn Graessle* > Flight Controls CoE > Honeywell International, Inc. >

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-01-31 Thread Graeme Glass
On Jan 31, 2008 12:36 PM, Pallavi Apotikar <[EMAIL PROTECTED]> wrote: > > Actually, I have an excel sheet, where I am entering the data. > > I am reading the entered data in python. > > excel takes data as a string. > > before passing it to python, i wanted to check whether the entered > data(valu

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-01-31 Thread Graeme Glass
On Jan 31, 2008 11:43 AM, Pallavi Apotikar <[EMAIL PROTECTED]> wrote: > > Hello Sir/Madam, > > I would like to know, is it possible to read a python file from an excel > sheet ? > > Thanks and Regards > > Pallavi Ajabrao Apotikar > I don't fully understand what you are asking, But... If you wh

Re: [python-win32] Check if user has windows administrator privilege

2008-01-14 Thread Graeme Glass
On Jan 14, 2008 8:55 PM, Patrick Li <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know if there's a way to programmatically check to see if a > user has windows administrator privilege? I need this to work in WinXP and > Vista. > > Thanks in advance, > Patrick > > > ___

Re: [python-win32] pywintypes Error

2008-01-08 Thread Graeme Glass
On Jan 8, 2008 11:20 AM, Antony Joseph <[EMAIL PROTECTED]> wrote: > Hi, > Can anyone help me , what the problem ? > I am running this code in windows xp and outlook also installed in my > machine. > > >>> from win32com.client import Dispatch > >>> s=Dispatch('Mapi.Session ') > > Traceback (most re

Re: [python-win32] using wxPython from Outlook addin

2007-10-08 Thread Graeme Glass
There are a couple of posts about this about 3 years back, when I tried to do this. (http://aspn.activestate.com/ASPN/Mail/Browse/Plain/Python-win32?period=200409) The project died the next week, so never got anything going, but hopefully some of those comments might help you along your way. Rega

Re: [python-win32] Writing .NET component in Python

2007-09-06 Thread Graeme Glass
On 9/6/07, Larry Bates <[EMAIL PROTECTED]> wrote: > Does anyone have any insight where I would start looking for information on > writing .NET compatible components in Python. I have a COM object that is > written in Python and some developers have asked for a .NET port of it. I > spent > some t

Re: [python-win32] [ looking for beginer python newsgroups ]

2007-08-03 Thread Graeme Glass
On 8/3/07, scripteaze <[EMAIL PROTECTED]> wrote: > > Hello all, im new to the python scene and was wondering if there were any > beginer python newsgroups similar to this. I did look in the python.orglist > or newsgroups and did not see one avail. > > THnX > > -- > > > > > -=scripteaze=- > For g

Re: [python-win32] Controlling Windows based programs

2007-06-28 Thread Graeme Glass
On 6/28/07, Chandra,Devendran <[EMAIL PROTECTED]> wrote: Hie, I am a newbie to python. I hope this question is not so silly to programmers out there I am a test engineer discovering python, and my thoughts are skewed towards engineering issues (^_^) I have a program that accesses EEPRO

Re: [python-win32] ADODB.Recordset returning incorrect results

2007-06-21 Thread Graeme Glass
On 6/21/07, Matthew Perry <[EMAIL PROTECTED]> wrote: Hi all, I'm using Access 2000 .mdb as a backend to my python script and am seeing some inconsistencies in the results. If I run the script below, I get 15 rows. If I run the SAME EXACT query directly in MS Access, I get 12 rows. Perhaps

Re: [python-win32] IE browser bar

2007-06-14 Thread Graeme Glass
On 6/14/07, Richard Bell <[EMAIL PROTECTED]> wrote: I'm trying to debug code for a class to automate IE and am having difficulty with ShowBrowserBar. I've looked on the Web and found a couple of examples that suggest this should work: --- begin code --- def spin(t): t0 = time.clock() w

Re: [python-win32] Office Research Task Pane from Python

2007-06-14 Thread Graeme Glass
On 6/14/07, Mickel Grönroos <[EMAIL PROTECTED]> wrote: Hi! I am thinking about fiddling with the Research Task Pane in Microsoft Office using Python. The goal is to create a simple, generic module that can be used for building various web services (in Python) for the Research Task Pane. Basical

Re: [python-win32] standalone python scripting engine

2007-04-16 Thread Graeme Glass
Maybe Portable Python (http://www.portablepython.com/, http://www.voidspace.org.uk/python/movpy/)? Or you could write a python script that takes a python script as an argument and executes it, then freeze that using py2exe (http://www.py2exe.org/) or cx_freeze (http://python.net/crew/atuining/cx_

Re: [python-win32] adding icon in an exe

2006-05-04 Thread Graeme Glass
#x27;) when running the python script. Am i doing something wrong? I am using python 2.4.3 pywin32 build 208, running on WinXP pro. Thanks, Graeme On 5/3/06, Graeme Glass <[EMAIL PROTECTED]> wrote: > Great, thanks to the both of you, very helpful!! > I had found a interim work

Re: [python-win32] adding icon in an exe

2006-05-03 Thread Graeme Glass
Great, thanks to the both of you, very helpful!! I had found a interim work around, (not programmable, using GoRC and Resource Hacker) and so was not happy with it, this is of great help, thank you. Graeme On 5/3/06, Ralf Schmitt <[EMAIL PROTECTED]> wrote: > Mark Hammond schrieb: > >> Does anyone

[python-win32] adding icon in an exe

2006-05-02 Thread Graeme Glass
Greetings, Does anyone know of a way to add an icon to an existing .exe file on win32 platform using win32all package? Thanks. Graeme ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Editor Replace function limitation

2005-06-08 Thread Graeme Glass
On python 2.3.4 pythonwin build 203, i don't seem to have a problem. can replace much more than 30 chars. Not sure what your problem could be, but just thought that i would let you know it's must your setup not pythonwin. (you proberbly already tried this,) but try installing the a diffrent build.

Re: [python-win32] Actually my question is:

2005-05-16 Thread Graeme Glass
Then os.popen(), popen2(), popen3() is your man/men/woman. You can call the .exe without bringing up a command prompt and then redirect the return data as you feel fit. On 5/14/05, Bhanuprakash <[EMAIL PROTECTED]> wrote: > > > > Hi > > Actually my question is: > > > > I have written

[python-win32] Sparse files and Pickle

2005-04-03 Thread Graeme Glass
Could anyone tell me if it is possible to create a sparse file on win32 platform using python, and if so how? And just out of interest, what is the practical limit for pickling an object? I pickled a 89MB binary read from a disk file, and although it worked, hogged my PC for about 8minutes making

[python-win32] Sparse files and Pickle

2005-04-02 Thread Graeme Glass
Is there anyway to create a sparse file win32 platform using python? And out of interested what is the practical limit for pickling an object? I used pickle.dump() on a 89MB object (a binary read from a disk file) and although it worked, my PC was pretty unusable for the 8 minutes it took to pickl