From 14df8958df1c20bc4bdb7eb670b89262ae0bd23d Mon Sep 17 00:00:00 2001 From: Avasam Date: Sat, 26 Oct 2024 15:18:30 -0400 Subject: [PATCH] Fix `ddeclient` and `ddeserver` demos import error (#2290) --- CHANGES.txt | 1 + win32/Demos/dde/ddeclient.py | 2 +- win32/Demos/dde/ddeserver.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 4c153f64a..1ff2bf9f2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -14,6 +14,7 @@ https://mhammond.github.io/pywin32_installers.html. Coming in build 309, as yet unreleased -------------------------------------- +* Fixed `ddeclient` and `ddeserver` demos import error (#2290, @Avasam) * The `EvtSubscribe_push` demo now actually demonstrates the callback action and the event context being filled. (#2281, @Avasam) * Fixed Pythonwin's editor failing due to invalid regex import (#2419, @Avasam) * Last error wrongly set by some modules (#2302, @CristiFati) diff --git a/win32/Demos/dde/ddeclient.py b/win32/Demos/dde/ddeclient.py index f140e2438..6e63c4d6f 100644 --- a/win32/Demos/dde/ddeclient.py +++ b/win32/Demos/dde/ddeclient.py @@ -1,7 +1,7 @@ # 'Request' example added jjk 11/20/98 +import win32ui # isort: skip # Must be imported before dde ! import dde -import win32ui server = dde.CreateServer() server.Create("TestClient") diff --git a/win32/Demos/dde/ddeserver.py b/win32/Demos/dde/ddeserver.py index 0374827f0..57924aba6 100644 --- a/win32/Demos/dde/ddeserver.py +++ b/win32/Demos/dde/ddeserver.py @@ -1,7 +1,7 @@ # 'Request' example added jjk 11/20/98 +import win32ui # isort: skip # Must be imported before dde ! import dde -import win32ui from pywin.mfc import object