In this group last posta are from 2013 year :/

W dniu sobota, 25 lipca 2015 18:04:50 UTC+2 użytkownik Dariusz Mysior 
napisał:
>
> I want from list (1) with BoolenVar objects (2) extract this objects in 
> "from" loop (3)...How can I do it...
>
> def createCheckButton(self):
>     y=3
>     for x in range(self.lp):
>         self.chooseButton=BooleanVar() #(2)
>         Checkbutton(variable=self.chooseButton, 
> command=self.splitOrder()).grid(row=x+1, column=y+1)
>         self.listCheckButton.append(self.chooseButton) #(1)
>
> def splitOrder(self): #(3)
>     count=len(self.listCheckButton)
>     for x in range(count):
>         if self.chooseButton[x].get():
>             print(self.chooseButton)
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0e46f233-ad43-42aa-9491-56c227399363%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to