Re: [python-win32] More VisualBasic

2006-02-08 Thread Speers, Ted
Thanks ... using VB widgets is not a requirement ... I was just lost when I tried to pick a GUI tool a year ago ... what would would float my boat would be some consensus about which is best ... wxPython, tkinter, something else ... or some decent write up describing the options ___

Re: [python-win32] More VisualBasic

2006-02-08 Thread Tim Roberts
On Wed, 8 Feb 2006 11:28:16 -0800, "Speers, Ted" <[EMAIL PROTECTED]> wrote: >I'm sure I'm destined to be a consumer of versus a contributor to this >group's output. > > We all started out that way. >I'd like to get some advice from the group whether I should pursue the >road I'm on ... >Am I

Re: [python-win32] Explicit variant types for Invoke & InvokeTypes (WasRe: Autocad.*)

2006-02-08 Thread Dan Glassman
Mark Hammond wrote: >> if ( PySequence_Check(obuse) ) >> { >>V_ARRAY(var) = NULL; // not a valid, existing array. >>ok = PyCom_SAFEARRAYFromPyObject(obuse, &V_ARRAY(var), rawVT); >>V_VT(var) = VT_ARRAY | rawVT; >> } >> else >> { >>PythonOleArgHelp

[python-win32] More VisualBasic

2006-02-08 Thread Speers, Ted
Thanks for everyone's help with my initial volley of questions. I'm sure I'm destined to be a consumer of versus a contributor to this group's output. I'd like to get some advice from the group whether I should pursue the road I'm on ... An appeal to your experience and intuition rather than

Re: [python-win32] Bringing a window to the front.

2006-02-08 Thread Greg Landrum
Mark Mc Mahon sent me personal email with the answer that I ought to be using SetForegroundWindow. For this I needed a window handle, and for that I think I needed a window name. Since I can't be sure of the full window name (it changes based on the active document), I wrote the following function

Re: [python-win32] Bringing a window to the front.

2006-02-08 Thread Tim Golden
[Greg Landrum] | >From my python program I'm working with a 3rd party application using | the win32 extensions and COM. I'd like to be able to pop that | application to the front (i.e. to ensure that it's visible and | unobscured by other windows). | | Is there some way to do this? Have a look a

[python-win32] Bringing a window to the front.

2006-02-08 Thread Greg Landrum
Hi all, >From my python program I'm working with a 3rd party application using the win32 extensions and COM. I'd like to be able to pop that application to the front (i.e. to ensure that it's visible and unobscured by other windows). Is there some way to do this? Thanks, -greg __

Re: [python-win32] Unable to close Excel, error in dynamic.py

2006-02-08 Thread Dan Glassman
George Flaherty wrote: > I have been messing around Excel, but when I run the following example I get > an error? > > Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. from win32com.client i

Re: [python-win32] Is it possible to pump messages in thread?

2006-02-08 Thread Richard Bell
Mark, I did some reading overnight and thought this through a bit more and on further consideration am concerned that the free-threaded example has a serious design flaw as follows: When I code --- begin python code --- import sys sys.coinit_flags=0 # specify free threading import pytho

[python-win32] Unable to close Excel, error in dynamic.py

2006-02-08 Thread George Flaherty
I have been messing around Excel, but when I run the following example I get an error? Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from win32com.client import Dispatch >>> xlApp = Dispat