[wingide-users] templating problems

Wingware Support support at wingware.com
Mon Jun 30 07:40:30 MDT 2008

Greg Bowman wrote:
> WingIDE 3.1.1-1 (rev 18164), (VI Personality)
> strictly gtk programming.
> I'm currently setting up a bunch of templates as I used to use another
> ide for programming. My problem is that while inserting a template with
> an in-line variable name, the indentation goes awry.
> Examples work the best:
> Template: sniptest
> |m|
> %(test||mydefault)s = gtk.WINDOW(gtk.WINDOW_TOPLEVEL)
> %(test||mydefault)s.set_default_size(500,400)
> %(box||mainvbox)s = gtk.VBox()
> |!|
> %(test||mydefault)s.add(%(box||mainvbox)s)
> %(test||mydefault)s.show_all()
> so, when I insert this inside another function, say indentation level 1,
> and modify the 'test' variable inline to 'win', it moves the
> indentation level back to 0:
> Code:
> sniptest->
> def dotest():
> win.set_default_size(500,400)
>     mainvbox = gtk.VBox()
> win.add(mainvbox)
> win.show_all()    
> I notice as it is changing it, the line I am modifying has a selection
> right from the beginning of the line, to the cursors location. I assume
> this is causing it to move any other instances to the same location
> (the beginning of the line). 
> Is there something I am doing wrong, or is this a bug?

It's a bug and I've just fixed it in our sources, so it'll be fixed
in our next release.

Thanks for the bug report!


Stephan Deibel
Wingware | Python IDE
Advancing Software Development


More information about the wingide-users mailing list