Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > pyscripter

Reply
Thread Tools

pyscripter

 
 
Gigs_
Guest
Posts: n/a
 
      02-28-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
 
Reply With Quote
 
 
 
 
Gabriel Genellina
Guest
Posts: n/a
 
      03-01-2007
En Wed, 28 Feb 2007 11:28:49 -0300, Gigs_ <> escribió:

> 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


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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pb with 2.5.2 & PyScripter Méta-MCI \(MVP\) Python 6 03-01-2008 10:04 PM
Pyscripter RichSaneSwindler Python 2 08-06-2007 02:16 AM
pyscripter to slow Gigs_ Python 1 05-03-2007 04:05 PM
pyscripter on windows vista gigs Python 0 04-04-2007 06:53 PM
pyscripter Gigs_ Python 1 02-15-2007 02:21 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57