pyscripter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gigs_

    #1

    pyscripter

    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(sel f, text=pick, variable=var)
    chk.pack(side=s ide, anchor=anchor, expand=YES)
    self.vars.appen d(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
  • Gabriel Genellina

    #2
    Re: pyscripter

    En Wed, 28 Feb 2007 11:28:49 -0300, Gigs_ <gigs@hi.t-com.hrescribió:
    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(sel f, text=pick, variable=var)
    chk.pack(side=s ide, anchor=anchor, expand=YES)
    self.vars.appen d(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
    I don't use pyscripter myself, but how could it know that you aren't going
    to write more code for the __init__ method?
    Reading the manual might be helpful... Try backspace, shift-tab, an empty
    line...

    --
    Gabriel Genellina

    Comment

    Working...