Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EnumDesktopWindows && stuff #2219

Merged
merged 12 commits into from
May 28, 2024
Merged

Conversation

CristiFati
Copy link
Contributor

To be merged AFTER #2189 (as this is branched from that one).

EnumDesktopWindows is the main thing, the rest is just a quick win with minimal code changes.

Copy link
Owner

@mhammond mhammond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems great but I don't understand the test. Also, could you please add a changelog entry seeing this is a user-visible feature.

self.assertRaises(
ValueError, win32gui.EnumWindows, self.enum_callback_exc, data
)
if sys.version_info[:2] >= (3, 10):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why this only works in 3.10 an up?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thing you asked, it is just the float value. I return it from the callback and the problem arises when it's converted to long. https://docs.python.org/3/c-api/long.html#c.PyLong_AsLong.

win32/test/test_win32gui.py Outdated Show resolved Hide resolved
win32/test/test_win32gui.py Outdated Show resolved Hide resolved
win32/test/test_win32gui.py Outdated Show resolved Hide resolved
@mhammond
Copy link
Owner

Sorry for the inaction here, but it LGTM - can you please resolve the conflicts and update it?

CHANGES.txt Outdated
@@ -160,6 +160,8 @@ Coming in build 307, as yet unreleased
* Remove outdated and unused remote feature (#2098, @Avasam)
* Migrated from `distutils` to `setuptools` (#2133, @Avasam)

* Add EnumDesktopWindows (#2219, @CristiFati)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you meant to add this under adodbapi

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it was automatically done by rebase.

@mhammond
Copy link
Owner

To be merged AFTER #2189 (as this is branched from that one).

What's the status of that - should it be updated or closed?

Copy link
Owner

@mhammond mhammond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@CristiFati
Copy link
Contributor Author

To be merged AFTER #2189 (as this is branched from that one).

What's the status of that - should it be updated or closed?

After merging this, I will close it, as this one also contains it.

@mhammond mhammond merged commit 10ef6c8 into mhammond:main May 28, 2024
clin1234 pushed a commit to clin1234/pywin32 that referenced this pull request May 28, 2024
clin1234 pushed a commit to clin1234/pywin32 that referenced this pull request May 29, 2024
clin1234 pushed a commit to clin1234/pywin32 that referenced this pull request Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants