pyscripter

Gigs_ gigs at hi.t-com.hr
Wed Feb 28 09:28:49 EST 2007


im using pyscripter ide

it is all alright till the next def

class Checkbar(Frame):
     def __init__(self, parent=None, picks=[], side=LEFT, anchor=W):
         Frame.__init__(self, parent)
         self.vars = []
         for pick in picks:
             var = IntVar()
             chk = Checkbutton(self, text=pick, variable=var)
             chk.pack(side=side, anchor=anchor, expand=YES)
             self.vars.append(var)
	    # it is all alright till here, but if im going to write next
	    # class method it wont go with tab for 4 fields
	# it goes here all the time (8 fields)




if i remove for statement it all work fine



More information about the Python-list mailing list