Re: [python-win32] Prevent a (Tkinter) window from maximizing via win32 api call?

2010-12-02 Thread Greg Ewing
pyt...@bdurham.com wrote: I have a *resizable* Tkinter window with min and max sizes set. I want to prevent users from attempting to maximize this window because the window pops over to the upper left of the display - a behavior that my users find very frustrating (and of little value). If t

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-02 Thread Randy Syring
Thanks for all the responses on this. I spoke with the company that develops the external application and they are going to work on removing the calls that create the GUI windows. Thank God, b/c the workarounds were looking pretty unsavory! -- Randy Syring

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-02 Thread Tim Roberts
Dahlstrom, Roger wrote: > Sure there is, autologon! Ah, but if one uses autologon, then it is no longer the case that "no one is logged in", so I think my comment is still valid... ;) -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___

Re: [python-win32] Access femap API, Type mismatch

2010-12-02 Thread Vernon Cole
Jim: Greg's answer is correct for you. Use it. It made me think of the following question which you may safely ignore. VC Dear Gurus: This thread made me wonder. (It happens occasionally.) The IronPython team chose a different work-around for system calls: they have a class which can be used

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-02 Thread Dahlstrom, Roger
Sure there is, autologon! -Original Message- From: python-win32-bounces+rdahlstrom=directedge@python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of Tim Roberts Sent: Thursday, December 02, 2010 3:03 PM To: Python-Win32 List Subject: Re: [python-wi

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-02 Thread Tim Roberts
Randy Syring wrote: > > Good to know, but you are correct that it doesn't solve the problem. > This program needs to work even when no users are logged into the > server, as that will be the case 99% of the time. There is no easy solution for this. There is no practical way to run a GUI applic

Re: [python-win32] Access femap API, Type mismatch

2010-12-02 Thread Jim Ragsdale
Greg, THANKS!!! That was a big help. I searched all over but could not find any information that I could understand that addressed this. I guess I didn't know what to look for. Thank you for taking the time to write this up. On Thu, Dec 2, 2010 at 12:07 PM, Greg Antal wrote: > Jim: > > The thing

Re: [python-win32] Access femap API, Type mismatch

2010-12-02 Thread Greg Antal
Jim: The thing about the Femap API is that its class methods use tons of ByRef arguments to return data to the caller. This is not something Python really supports. PythonCOM gets around it by turning the output arguments in to return values, but I find that only wo

Re: [python-win32] Access femap API, Type mismatch

2010-12-02 Thread Tim Roberts
Jim Ragsdale wrote: > I am trying to access the femap API, and having a bit of trouble. Here > is a simple example: > > from win32com.client import Dispatch > femap = Dispatch("femap.model") > rc = femap.feAppGetActiveView(viewID) > > This method, according to the documentation, is supposed to retu

[python-win32] Access femap API, Type mismatch

2010-12-02 Thread Jim Ragsdale
I am trying to access the femap API, and having a bit of trouble. Here is a simple example: from win32com.client import Dispatch femap = Dispatch("femap.model") rc = femap.feAppGetActiveView(viewID) This method, according to the documentation, is supposed to return a long integer in viewID. If I

Re: [python-win32] Prevent a (Tkinter) window from maximizing via win32 api call?

2010-12-02 Thread python
Hi Eric, > Are you sure about that? I just tried: My original question said "resizable window" :) I have a *resizable* Tkinter window with min and max sizes set. I want to prevent users from attempting to maximize this window because the window pops over to the upper left of the display - a beha

Re: [python-win32] Prevent a (Tkinter) window from maximizing via win32 api call?

2010-12-02 Thread Eric Brunel
On 2 déc. 10, at 12:49, pyt...@bdurham.com wrote: If I have a windows handle to my Tkinter window, is there a win32 api call that I can use that will prevent my window from being maximized? There is no way to prevent a resizable window from being maximized in Tkinter other than to remove

[python-win32] Prevent a (Tkinter) window from maximizing via win32 api call?

2010-12-02 Thread python
If I have a windows handle to my Tkinter window, is there a win32 api call that I can use that will prevent my window from being maximized? There is no way to prevent a resizable window from being maximized in Tkinter other than to remove the window's border and titlebar (both of which I would lik

Re: [python-win32] cannot install pywin32, 'access denied, cannot open archive'

2010-12-02 Thread rmsauthor
I'm getting the same error and am unable to resolve it. Peter, were you able to install successfully? Peter Scheie-2 wrote: > > I'm trying to install the pywin32-214.win32-py2.5.exe package onto a > Windows XP > virtual machine running on VirtualBox on Ubuntu 9.04 (Jaunty). I've got > python