On Saturday, 25 July 2015 17:04:50 UTC+1, Dariusz Mysior wrote:
>
> 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)
>
>
>
>
This doesn't appear to be Django code. Did you mean to post on a Tkinter 
group?
--
Daniel.

-- 
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/9d9f9dbd-367e-4936-9f4b-dc7cc326d97e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to