Re: How extract from list with BooleanVar objects each object

2015-07-25 Thread Dariusz Mysior
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.


Re: How extract from list with BooleanVar objects each object

2015-07-25 Thread Daniel Roseman

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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.