![]() ![]() |
||
![]() |
![]() |
|
![]() |
[wingide-users] Indentation Problems?Ken Kinder ken at kenkinder.comSun, 5 Jan 2003 11:52:58 -0600
I don't know why, but for some reason, a couple of times today,
WingIDE has gotten confused about this block of code, in the part I
mark (**HERE**)
# (Short name, Long name, Icon, Callback)
toolbar_items = [('Exec', 'Execute Query', 'exec.xpm', self.database_execute_query),
('Exec Sel', 'Execute Selected Text', 'exec_selected.xpm', self.dummy),
None,
('Begin', 'Begin Transaction', 'begin.xpm', self.dummy),
('Commit', 'Commit Transaction', 'commit.xpm', self.dummy),
('Rollback', 'Rollback Transaction', 'rollback.xpm', self.dummy)
]
self.toolbar_items = {} # Keep a dictionary to link up with the buttons
for item in toolbar_items:
if item:
shortname, longname, icon, callback = item
pix, mask = gtk.create_pixmap_from_xpm(self, None, "icons/%s" % icon)
button = self.toolbar.append_item(shortname, longname, longname,
gtk.GtkPixmap(pix, mask),
callback)
(**HERE**)
else:
self.toolbar.append_space()
self.main_vbox.pack_start(self.toolbar, gtk.FALSE, gtk.TRUE, 0)
It keeps wanting to fully indent it to where the (**HERE**) is, and
earlier today wanted to indent the
callback)
on the same level as
button = ...
Odd.
--
Ken Kinder
Mobile: +1 210-771-3544
Home: +1 210-340-2932
Run by Mailman v 2.0.8 |
|
|
Copyright (c) 2000-2002, Archaeopteryx Software, Inc. Legal Statements | ||