Re: [python-win32] Restart/re-run a thread

2011-10-27 Thread geoff
The python docs are pretty clear that there is no way to external stop a thread and this was a design decision. Typically, I have used a threading.Event to control the actions of the worker threads from a loop in the main program. Setup each worker thread as a loop using the event.wait() method t

Re: [python-win32] [Pygui] Convert RGBA to BGRA using standard library?

2011-06-21 Thread geoff
On Sat, May 28, 2011 at 5:55 AM, Greg Ewing wrote: > Can anyone think of an efficient way to convert a string > full of RGBA image data to BGRA, using only what's available > in the standard library? > > I'm trying to add a function to PyGUI for creating an Image > object from arbitrary data. The

[python-win32] OT: MS Office Addin -- Guidance/Advice

2009-02-07 Thread geoff
Hello, I am sorry for troubling people on this list, however, I am hoping someone can steer me in the right direction. I would like to create an Addin for MS-Office that would allow me to store a copy of a document/email/spreadsheet in an external database. IOW, when I have the doc/email/xls open

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread geoff
> > I would caution you not to draw any conclusions based on the physical > numbers. You WANT your system to be using all of its physical memory. > Unused physical memory is just wasted money. The operating system will > page things in and out as needed, on a demand basis, to make sure that > pag

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread geoff
> from ctypes import * > from ctypes.wintypes import * > > class MEMORYSTATUSEX(Structure): >_fields_ = [ >('dwLength', DWORD), >('dwMemoryLoad', DWORD), >('ullTotalPhys', c_ulonglong), >('ullAvailPhys', c_ulonglong), >('ullTotalPageFile', c_ulonglong), >

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread geoff
> There's no easy fix. Thumbnails and some kind of least-recently-used > caching scheme are probably your best choices. As Steven pointed out, > you could always install a Win64 system and a 64-bit Python. Then, you > can get about 8TB of process space. However, that's not particularly > friend

[python-win32] How to calc amount of avail RAM in a process ?

2009-01-28 Thread geoff
I am hoping someone could steer me in the right direction on how to calculate the amount of RAM available to a process. I found the post below from Tim Roberts - a belated thanks Tim for your patient responses ! and it seems we regularly hit this limit. We have an application that needs to displa

Re: [python-win32] Virtual print driver - similiar to winpdf

2008-09-23 Thread geoff
> You might take a look at Pyla. It's a print to fax library. I think it's > kind of what you're talking about. I've been trying to hack it off and on > for a while now as we only need a little of its functionality here at work. > There isn't much for docs, so you'll have to read the source. Here's

Re: [python-win32] Virtual print driver - similiar to winpdf

2008-09-22 Thread geoff
> Hi Geoff, > > redmon: http://pages.cs.wisc.edu/~ghost/redmon/ might be an option for you. > I use it for years now without any problems. In one case I provide printing > capabilities inside citrix apps for vpn users and in an other case I > extended an application with fax

Re: [python-win32] Virtual print driver - similiar to winpdf

2008-09-22 Thread geoff
Thanks for you guidance Tim. After reviewing I am coming to the same conclusion. > This is trickier than you might guess. Does the application actually > write to the printer using a Windows printer driver? Some old > applications that just used a printer for logging wrote directly to the > par

[python-win32] Virtual print driver - similiar to winpdf

2008-09-21 Thread geoff
Would creating a virtual print driver be possible with pywin32, similiar to the windows pdf driver ? WE have an old application that outputs data to a dotmatrix printer. WE would like to extend this application and integrate it with another application and the simplest way to do this would be to ca

Re: [python-win32] os.startwith issue dealing with .tif (winxp)

2008-08-29 Thread geoff
On Fri, Aug 29, 2008 at 4:53 PM, Tim Roberts <[EMAIL PROTECTED]> wrote: > geoff wrote: >> Hi Folks; >> >> I have an application that stores images in a database. >> When the images are extracted, we use the files extension and >> os.startwith("fil

[python-win32] os.startwith issue dealing with .tif (winxp)

2008-08-29 Thread geoff
Hi Folks; I have an application that stores images in a database. When the images are extracted, we use the files extension and os.startwith("filename") to allows the OS to select the users desingated program to open the file. Sometimes ... this goes astray. For some mysterious reason, WinXP's f

[python-win32] COM and ActiveX controls

2005-04-19 Thread Geoff Schmidt
ipatoryculture.org/. For the actual widget set, I have started out in PyGTK, for skinning support and to ease Linux portability. It's not at all hard to pull HWND's out of PyGTK. If the idea of embedding an ActiveX control in PyGTK seems hilariously wrong to you for some re