Skip to content

How to get the text of tkinter checkbutton #3

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

Open
priyanka22kar opened this issue Jan 25, 2018 · 0 comments
Open

How to get the text of tkinter checkbutton #3

priyanka22kar opened this issue Jan 25, 2018 · 0 comments

Comments

@priyanka22kar
Copy link

priyanka22kar commented Jan 25, 2018

`cb_list =['pencil','pen','book','bag','watch','glasses','passport','clothes','shoes','cap']

try:

r = 0

cl = 1
for op in cb_list:
cb = Checkbutton(checkbutton_frame, text=op, relief=RIDGE)
cb.grid(row=r, column=cl, sticky="W")
r = r + 1
except Exception as e:
logging.basicConfig(filename=LOG_FILENAME, level=logging.ERROR)
logging.error(e)
# print (e)`

I need a logic for get selected checkbuttons text
I tried searching but everywhere they are returning the state of checkbox instead of text

Please help

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

1 participant