From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118102 invoked by alias); 4 Apr 2016 12:32:46 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 118069 invoked by uid 89); 4 Apr 2016 12:32:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=dap1bellsouthnet, dap1@bellsouth.net, donnelly, Donnelly X-HELO: nm6-vm5.access.bullet.mail.gq1.yahoo.com Received: from nm6-vm5.access.bullet.mail.gq1.yahoo.com (HELO nm6-vm5.access.bullet.mail.gq1.yahoo.com) (216.39.63.124) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 04 Apr 2016 12:32:35 +0000 Received: from [216.39.60.169] by nm6.access.bullet.mail.gq1.yahoo.com with NNFMP; 04 Apr 2016 12:32:33 -0000 Received: from [98.138.226.242] by tm5.access.bullet.mail.gq1.yahoo.com with NNFMP; 04 Apr 2016 12:32:33 -0000 Received: from [127.0.0.1] by smtp113.sbc.mail.ne1.yahoo.com with NNFMP; 04 Apr 2016 12:32:36 -0000 X-Yahoo-SMTP: vUK3UKuswBCE01YQVYEZ1wHCa.HPSVCYhektzgdifA-- Subject: Re: Installing python's pypiwin32 To: cygwin@cygwin.com References: <570233D4.5090103@bellsouth.net> <57023987.2060604@gmail.com> <570244A1.20302@bellsouth.net> From: Dennis Putnam Message-ID: <57025EEB.9080302@bellsouth.net> Date: Mon, 04 Apr 2016 12:32:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C4xheLf7LrkJdEN6iPoNxoNfl4PikJ4Kq" X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00059.txt.bz2 --C4xheLf7LrkJdEN6iPoNxoNfl4PikJ4Kq Content-Type: multipart/mixed; boundary="6BIKqxB1TW56hvdGJQ2PWwo89MqsqRsB8" From: Dennis Putnam To: cygwin@cygwin.com Message-ID: <57025EEB.9080302@bellsouth.net> Subject: Re: Installing python's pypiwin32 References: <570233D4.5090103@bellsouth.net> <57023987.2060604@gmail.com> <570244A1.20302@bellsouth.net> In-Reply-To: --6BIKqxB1TW56hvdGJQ2PWwo89MqsqRsB8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1870 Hi Ray, Thanks. That is actually where I started but I was not aware I needed those first 2 assignments. I did not find any examples of MessageBoxW that included that detail. However, now I get a different error. I am guessing there is another import I'm missing: Traceback (most recent call last): File "./test.py", line 5, in user32=3Dcdll.LoadLibrary('/cygdrive/c/Windows/System32/User32.dll') NameError: name 'cdll' is not defined On 4/4/2016 7:05 AM, Ray Donnelly wrote: > Yes, you can use the ctypes module [1] for this sort of thing: > > import ctypes > user32=3Dcdll.LoadLibrary('/cygdrive/c/Windows/System32/User32.dll') > mbw=3Dgetattr(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 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? >> --6BIKqxB1TW56hvdGJQ2PWwo89MqsqRsB8-- --C4xheLf7LrkJdEN6iPoNxoNfl4PikJ4Kq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 196 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) iEYEARECAAYFAlcCXusACgkQ/fiWYqZ2tVRffgCgxJIR+wPkTQtD2WD66oJoev6X AWEAnRLudxKCQlBghhMDLjIIVfmZSGJo =h6iI -----END PGP SIGNATURE----- --C4xheLf7LrkJdEN6iPoNxoNfl4PikJ4Kq--