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

when I use is checked to get the listbox state ,porpmpt error #1384

Open
xidianzou opened this issue Mar 14, 2024 · 1 comment
Open

when I use is checked to get the listbox state ,porpmpt error #1384

xidianzou opened this issue Mar 14, 2024 · 1 comment

Comments

@xidianzou
Copy link

xidianzou commented Mar 14, 2024

    listbox = dlg.ListBox
    print(listbox.items())
    item = listbox.get_item(field)
    if item.is_checked() == True:
        print("T")
    else:
        print("F")

it show error
File "C:\Users\zou-45\AppData\Local\Programs\Python\Python311\Lib\site-packages\comtypes_init_.py", line 274, in getattr
fixed_name = self.map_case[name.lower()]
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'togglestate_on'

@junkmd
Copy link
Contributor

junkmd commented Mar 14, 2024

I previously submitted a PR to resolve this issue.
#1323

It hasn't been merged yet, so I'd like you to try pulling this branch to your local environment and test it out.

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

No branches or pull requests

2 participants