I think it's referred to as a "Wellington Stew" On Mon, 19 Nov 2018 at 08:01, Justin Israel <[email protected]> wrote:
> From what part of the world does this cuisine originate? > > On Mon, Nov 19, 2018, 7:25 PM Marcus Ottosson <[email protected]> > wrote: > >> How about something like this? >> >> list = ['potato', 'tomato', 'poop'] >> boxes = {} >> for obj in list: >> boxes[obj] = QtWidgets.QCheckBox() >> >> boxes["potato"].checkState() >> boxes["tomato"].checkState() >> boxes["poop"].checkState() >> >> >> On Mon, 19 Nov 2018 at 05:54, Jakob Kousholt <[email protected]> wrote: >> >>> Hi, >>> >>> I am trying to add a bunch of buttons and UI elements based of a python >>> list. My issue is that I would need to refer to them later to see if they >>> are checked or unchecked. Usually I would assign the button to a variable >>> and check that specific variable for the state of the checkbox like: >>> >>> potatoCheckBox = QtWidgets.QCheckBox() >>> potatoCheckBox.checkState() >>> >>> But I am not sure how to get about it over a list. of course the code is >>> not making any sense as you can't add two strings like that together to >>> assign a variable - big mess, However I think it kinda shows how I would >>> like to go about it. Using my list as a prefix for a lot of new attributes >>> on my UI class. >>> >>> list = ['potato', 'tomato', 'poop'] >>> >>> for obj in list: >>> obj + CheckBox = QtWidgets.QCheckBox() >>> >>> potatoCheckBox.checkState() >>> tomatoCheckBox.checkState() >>> poopCheckBox.checkState() >>> >>> Any pointers in the right direction would be much appreciated. Thank you. >>> >>> Jake >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Python Programming for Autodesk Maya" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/python_inside_maya/CAEKd6bbuUefk%2Bt8rmVT4wt8CVhu6ZBmx6N6pTKQOE%3DOeg1LH1w%40mail.gmail.com >>> <https://groups.google.com/d/msgid/python_inside_maya/CAEKd6bbuUefk%2Bt8rmVT4wt8CVhu6ZBmx6N6pTKQOE%3DOeg1LH1w%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Python Programming for Autodesk Maya" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODgaZ3gajU7BzQ-Q%3DhVKqS8m_LV7e%2BESCJDD5HB%2B1_Uew%40mail.gmail.com >> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODgaZ3gajU7BzQ-Q%3DhVKqS8m_LV7e%2BESCJDD5HB%2B1_Uew%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0hr_MTj6tsGphBSpSY5WjMgM3fy3LLX3LnoJTDn-4FOA%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0hr_MTj6tsGphBSpSY5WjMgM3fy3LLX3LnoJTDn-4FOA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAX51e3T4grnT2Q_thyf8_eJzra9j2Kv4yndBTf%3DZHX3g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
