delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/04/07:05:40

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=F7
YMZ5dWT61AQnwwhXf/FGoFOVpARWdQYl3VSYXnH4pyWseRYJSVjYt+TSjsUt9/XZ
DKtvQn5IjT6m10oCRJx9sG4/FzAYAxAjGp5AilcAhKU7v1e1uce0mO+aRsoHN6dr
f3s/kOXlON4C/XEkT4MD0LdlDzpFgVECKYL/Qd5g8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=X05bylqg
HFjBaSVYnTUymIqdsSc=; b=xduigs5PbRzGZ2SuNo1c8dVbK7gIOZFSu6NYWPYE
AAdcRQYMgAZgkZ2Iwj8x+cPusc5nfR0ieu1i4/W4LkdlwX0WvG/ylnfyZjLsgKsm
p6ANuLEMEctv9VOlu84bpar/j/wcK2OFJvnHsws9zHWFFqg0Po4XtGqbsYj7QPVF
bFI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=D*bellsouth.net, dap1bellsouthnet, dap1 AT bellsouth DOT net, U*dap1
X-HELO: mail-lf0-f51.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=J5NxZQ5QgfXR7NW6ZH3gCpQeTe+ds8mxIsvE5sLXh68=; b=K9i2nZqldLMaPJ2d+F91x798WzGYzzY9dwN2716CS77JqvFq2Zg23MMr6vAs+JQ9YK Vx2WOi1SQMFF3R2bI4cwTTY/ajt1DSAOCzkfdwtSzoPru2L0LLv8Ib5ZKMyfdqWzilQL vlqgMkHXjXO3rBDi9n05AtnrYHoPtE1mqWMKtGtliRGvLx0G/tajYAUiWFaGBvPFhH5f oO/gd8qul5JmNZc86qA4fv8xPVuDDquZJyuT8VhoLL2OuZAUbF1pFVY6FcCm/sijA6LZ m2WhnowRWc7vVF1XqYsTUtRR6deep8087BBb/9hZx4SS0TUSmTvoriD2unRHtJcXumhJ t2aw==
X-Gm-Message-State: AD7BkJInXt2iwBKf8RY39pyatrjGpDhkpKgwpG4XKPPmj+Cg/CRFQHxtfSpChhgWxeVjXc/XuoYLh68VKb7cFA==
MIME-Version: 1.0
X-Received: by 10.194.205.138 with SMTP id lg10mr17565136wjc.153.1459767908002; Mon, 04 Apr 2016 04:05:08 -0700 (PDT)
In-Reply-To: <570244A1.20302@bellsouth.net>
References: <570233D4 DOT 5090103 AT bellsouth DOT net> <57023987 DOT 2060604 AT gmail DOT com> <570244A1 DOT 20302 AT bellsouth DOT net>
Date: Mon, 4 Apr 2016 12:05:07 +0100
Message-ID: <CAOYw7dsVeLK8-8kemWgfhxRL2gSgZiskiVTiamRHDBpOt0JN6Q@mail.gmail.com>
Subject: Re: Installing python's pypiwin32
From: Ray Donnelly <mingw DOT android AT gmail DOT com>
To: cygwin AT cygwin DOT com, dap1 AT bellsouth DOT net
X-IsSubscribed: yes

Yes, you can use the ctypes module [1] for this sort of thing:

import ctypes
user32=cdll.LoadLibrary('/cygdrive/c/Windows/System32/User32.dll')
mbw=getattr(user32,"MessageBoxW")
mbw(0,"Hello World","Caption",2)

.. but I think the ctypes module on Cygwin's Pythons should support
the windll stuff out of the box and it doesn't seem to, then you could
just do ctypes.windll.user32.MessageBoxW(...) instead.

[1] https://docs.python.org/2/library/ctypes.html

--

Best regards,

Ray.

On Mon, Apr 4, 2016 at 11:40 AM, Dennis Putnam <dap1 AT bellsouth DOT net> wrote:
> On 4/4/2016 5:53 AM, Marco Atzeri wrote:
>> On 04/04/2016 11:28, Dennis Putnam wrote:
>>> I'm trying to install pypiwin32  and have hit a stone wall. That module
>>> wants _winreg so I installed cygwinreg. However, I cannot find a way to
>>> tell pip to use cygwinreg rather than _winreg. Is there a way to alias
>>> or some way to get pip to use the right module? TIA.
>>>
>>
>> I doubt the package is cygwin compatible
>>
>> --
>> Problem reports:       http://cygwin.com/problems.html
>> FAQ:                   http://cygwin.com/faq/
>> Documentation:         http://cygwin.com/docs.html
>> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>>
>>
> If that is the case then is there another way to open message boxes
> without running Xwin?
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019