From ejohnso9 at earthlink.net Mon Jul 20 19:37:42 2020 From: ejohnso9 at earthlink.net (ejohnso9 at earthlink.net) Date: Mon, 20 Jul 2020 17:37:42 -0600 (GMT-06:00) Subject: [python-win32] Pythonwin.exe - trouble on the starting line Message-ID: <8759428.2134.1595288262447@wamui-spark.atl.sa.earthlink.net> I wanted to look into using Pythonwin to see how difficult it would be to build GUIs using MFC. I'm having problem in two different places: 1) On remote work machine, I found the path to pythonwin.exe and can launch that. Under the help menu there, it looks like the "Python Manuals" manual works as expected. The other option "PythonWin Reference" seemed like the place to start. Unfortunately, that simply displays an error dialog: "The help file is not registered!" I don't know where that file would be or how to get it registered. So, I figured maybe something wasn't quite right with that installation. 2) On my local machine, I simply used pip (v 20.1.1) to install pywin32. That seemed to install without error. I found Pythonwin.exe under ...\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pythonwin\ But things seem even worse off here. When I try to execute Pythonwin.exe, I get an error dialog stating: "The application can not locate win32ui.pyd (or Python) (126). The specified module could not be found." But win32.ui.pyd exists in that same directory with Pythonwin.exe? I see the home page for the project here: https://github.com/mhammond/pywin32 The Wiki seems to be empty. I'm not really seeing links to documentation - am I missing those? I'm interested in finding introductory tutorials about how to create GUIs under the win32 environment. This is not going smoothly. :( Can someone help me: * sort out the complaint about Help file not registered on my remote machine? * get a proper installation on my local machine so I can run Pythonwin.exe without error (preferably with working menu item as above) * point me to general tutorials about how to build GUI using win32 wrapper to MFC? Thanks, Erik Johnson From timr at probo.com Mon Jul 20 20:45:11 2020 From: timr at probo.com (Tim Roberts) Date: Mon, 20 Jul 2020 17:45:11 -0700 Subject: [python-win32] Pythonwin.exe - trouble on the starting line In-Reply-To: <8759428.2134.1595288262447@wamui-spark.atl.sa.earthlink.net> References: <8759428.2134.1595288262447@wamui-spark.atl.sa.earthlink.net> Message-ID: ejohnso9 at earthlink.net wrote: > I wanted to look into using Pythonwin to see how difficult it would be to build GUIs using MFC. This isn't what you asked for, of course, but in my opinion you would be better served to start with wxPython.? The basic philosophy is somewhat similar to MFC (the two libraries started at pretty much the same time), and wxPython has the advantage of being cross-platform. -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3389 bytes Desc: S/MIME Cryptographic Signature URL: From skippy.hammond at gmail.com Tue Jul 21 18:16:55 2020 From: skippy.hammond at gmail.com (Mark Hammond) Date: Wed, 22 Jul 2020 08:16:55 +1000 Subject: [python-win32] Pythonwin.exe - trouble on the starting line In-Reply-To: <8759428.2134.1595288262447@wamui-spark.atl.sa.earthlink.net> References: <8759428.2134.1595288262447@wamui-spark.atl.sa.earthlink.net> Message-ID: Try running the command listed in README.md under the "Installing via PIP" section. Mark On 21/07/2020 9:37 am, ejohnso9 at earthlink.net wrote: > I wanted to look into using Pythonwin to see how difficult it would be to build GUIs using MFC. > > I'm having problem in two different places: > > 1) On remote work machine, I found the path to pythonwin.exe and can launch that. > Under the help menu there, it looks like the "Python Manuals" manual works as expected. > The other option "PythonWin Reference" seemed like the place to start. > Unfortunately, that simply displays an error dialog: "The help file is not registered!" > I don't know where that file would be or how to get it registered. > > > > So, I figured maybe something wasn't quite right with that installation. > > > > 2) On my local machine, I simply used pip (v 20.1.1) to install pywin32. That seemed to install without error. > > I found Pythonwin.exe under > > ...\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pythonwin\ > > But things seem even worse off here. > > When I try to execute Pythonwin.exe, I get an error dialog stating: > "The application can not locate win32ui.pyd (or Python) (126). The specified module could not be found." > > > But win32.ui.pyd exists in that same directory with Pythonwin.exe? > > > > I see the home page for the project here: https://github.com/mhammond/pywin32 > The Wiki seems to be empty. > I'm not really seeing links to documentation - am I missing those? > I'm interested in finding introductory tutorials about how to create GUIs under the win32 environment. > > This is not going smoothly. :( > > > Can someone help me: > * sort out the complaint about Help file not registered on my remote machine? > * get a proper installation on my local machine so I can run Pythonwin.exe without error (preferably with working menu item as above) > * point me to general tutorials about how to build GUI using win32 wrapper to MFC? > > Thanks, > Erik Johnson > > > _______________________________________________ > python-win32 mailing list > python-win32 at python.org > https://mail.python.org/mailman/listinfo/python-win32 > From jacob at blindza.co.za Wed Jul 22 05:57:52 2020 From: jacob at blindza.co.za (jacob kruger) Date: Wed, 22 Jul 2020 11:57:52 +0200 Subject: [python-win32] winsound.Beep not producing any output - windows 10 2004 64 bit Message-ID: <5a59d2fb-acee-f24d-270e-37c923ca95b7@blindza.co.za> Hi there Not too important, but, bit odd in that, like subject line says, using something like the following 2 lines of code produces no audio output at all: import winsound winsound.Beep(3200, 500) Not too sure when this started happening, and, if it realtes to windows version, etc., or just possibly other software have installed here, but anyway. winsound.PlaySound() function does still cooperate, so, it's not like winsound itself is messing up audio output channels, but, just wondering what could cause this, and, if there are any simple alternatives, in case I just want to use it to either generate tones based on frequencies, or use it let me know when something has finished off in the background? Jacob Kruger Skype: BlindZA "...resistance is futile...but, acceptance is versatile..." From toddfiske at gmail.com Wed Jul 22 08:00:16 2020 From: toddfiske at gmail.com (Todd Fiske) Date: Wed, 22 Jul 2020 08:00:16 -0400 Subject: [python-win32] winsound.Beep not producing any output - windows 10 2004 64 bit In-Reply-To: <5a59d2fb-acee-f24d-270e-37c923ca95b7@blindza.co.za> References: <5a59d2fb-acee-f24d-270e-37c923ca95b7@blindza.co.za> Message-ID: Hi Jacob, winsound.Beep() operates on the built-in computer speaker, which is not always included these days. winsound.PlaySound() plays over the sound card and whatever speakers are connected to them. You could probably find the speaker header pins on the motherboard and get a little PC speaker for a couple bucks to play the old timey square wave sounds from Beep. Alternately there are several Python synth modules that can be used to generate tones. A popular one is called pyo. Most of them are probably overkill for doing what Beep does, but they can be fun rabbit holes to explore. https://wiki.python.org/moin/PythonInMusic Todd On 7/22/20, jacob kruger wrote: > Hi there > > > Not too important, but, bit odd in that, like subject line says, using > something like the following 2 lines of code produces no audio output at > all: > > import winsound > > winsound.Beep(3200, 500) > > > Not too sure when this started happening, and, if it realtes to windows > version, etc., or just possibly other software have installed here, but > anyway. > > > winsound.PlaySound() function does still cooperate, so, it's not like > winsound itself is messing up audio output channels, but, just wondering > what could cause this, and, if there are any simple alternatives, in > case I just want to use it to either generate tones based on > frequencies, or use it let me know when something has finished off in > the background? > > > Jacob Kruger > Skype: BlindZA > "...resistance is futile...but, acceptance is versatile..." > _______________________________________________ > python-win32 mailing list > python-win32 at python.org > https://mail.python.org/mailman/listinfo/python-win32 > From jacob at blindza.co.za Wed Jul 22 10:22:13 2020 From: jacob at blindza.co.za (jacob kruger) Date: Wed, 22 Jul 2020 16:22:13 +0200 Subject: [python-win32] winsound.Beep not producing any output - windows 10 2004 64 bit In-Reply-To: References: <5a59d2fb-acee-f24d-270e-37c923ca95b7@blindza.co.za> Message-ID: Thanks, Todd - hadn't even thought about the fact that classic beep sound literally plays through the on-board speaker...been a while...LOL! Like said, not end of the world, but, will check out pyo, etc. in any case. Jacob Kruger Blind Biker Skype: BlindZA "...resistance is futile...but, acceptance is versatile..." On 2020-07-22 02:00 PM, Todd Fiske wrote: > Hi Jacob, > > winsound.Beep() operates on the built-in computer speaker, which is > not always included these days. > > winsound.PlaySound() plays over the sound card and whatever speakers > are connected to them. > > You could probably find the speaker header pins on the motherboard and > get a little PC speaker for a couple bucks to play the old timey > square wave sounds from Beep. > > Alternately there are several Python synth modules that can be used to > generate tones. A popular one is called pyo. Most of them are probably > overkill for doing what Beep does, but they can be fun rabbit holes to > explore. > > https://wiki.python.org/moin/PythonInMusic > > Todd > > On 7/22/20, jacob kruger wrote: >> Hi there >> >> >> Not too important, but, bit odd in that, like subject line says, using >> something like the following 2 lines of code produces no audio output at >> all: >> >> import winsound >> >> winsound.Beep(3200, 500) >> >> >> Not too sure when this started happening, and, if it realtes to windows >> version, etc., or just possibly other software have installed here, but >> anyway. >> >> >> winsound.PlaySound() function does still cooperate, so, it's not like >> winsound itself is messing up audio output channels, but, just wondering >> what could cause this, and, if there are any simple alternatives, in >> case I just want to use it to either generate tones based on >> frequencies, or use it let me know when something has finished off in >> the background? >> >> >> Jacob Kruger >> Skype: BlindZA >> "...resistance is futile...but, acceptance is versatile..." >> _______________________________________________ >> python-win32 mailing list >> python-win32 at python.org >> https://mail.python.org/mailman/listinfo/python-win32 >>