You may have well discovered a bug that eluded testing of this EdSharp feature! Due to the white space-sensitive nature of Python syntax and the variables introduced via transmission by email to a list discussion, please send me the relevant code directly as an attachment. I will gladly work with you to try to resolve the problem, and thereby, hopefully eliminate such problems in the future. Jamal On Mon, 14 Jan 2008, Sean Mealin wrote: > Date: Mon, 14 Jan 2008 22:11:31 -0500 > From: Sean Mealin <seanpm@xxxxxxxxxxxx> > Reply-To: programmingblind@xxxxxxxxxxxxx > To: programmingblind@xxxxxxxxxxxxx > Subject: Help with EdSharp and Python > > Hi all; > > I am trying to get the braces feature of python in EdSharp to work; here is > what I have: > > > > a = 12 > > > > if a < 12 { > > > > print "<12" > > > > } > > > > else if a == 12 { > > > > print "12" > > > > } > > > > else { > > > > print "12>" > > > > } > > > > Every time I hit Alt+(leftbracket), I get this message: > > Confirm > > Unexpected event!graphic 152 Index was out of range. Must be non-negative > and less than the size of the collection. > > Parameter name: index > > Exit EdSharp? > > Stack trace: > > at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument > argument, ExceptionResource > > resource) > > at System.ThrowHelper.ThrowArgumentOutOfRangeException() > > at EdSharp.MdiFrame.PyBrace2Dent(String sText) > > at EdSharp.MdiFrame.menuItem_Click(Object sender, EventArgs e) > > at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) > > at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) > > at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) > > at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, > ToolStripItemEventType met) > > at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, > ToolStripItemEventType met) > > at System.Windows.Forms.ToolStripItem.PerformClick() > > at EdSharp.MdiFrame.ProcessCmdKey_Helper(Message& msg, Keys keyData) > > at EdSharp.HomerRichTextBox.ProcessCmdKey(Message& msg, Keys keyData) > > at System.Windows.Forms.Control.PreProcessMessage(Message& msg) > > at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control > target, Message& msg) > > at > System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& > msg). > > Exit EdSharp? > > Yes No Cancel > > > > Any ideas? I suspect the only problem is how I am doing it.. > > > > Sean > > __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind