> In the one-node world, v.t == v for all v. Is that enough hint?
>
> Edward
Umm... no. However, I was rather sloppy in posting the code, as the
part you reference isn't even used - sorry about that!.
The following is a better listing:
=============================
from mod_scripting import scriptingController
sc = scriptingController(c)
c.frame.addIconRow()
first = True
for node in p.following_siblings_iter():
if first:
first = False
continue
h = node.headString()
buttonText = sc.getButtonText(h)
statusLine = "Hoist %s" % h
b = sc.createIconButton(text=buttonText,
command=None,
shortcut=None,
statusLine=statusLine,
bg='yellow')
def deleteButtonCallback(event=None,sc=sc,b=b):
sc.deleteButton(b)
def hoistButtonCallback (event=None,c=c,p=node.copy()):
while (c.canDehoist()):
c.dehoist()
c.selectPosition(p)
c.hoist()
b.configure(command=hoistButtonCallback)
b.bind('<3>',deleteButtonCallback)
=============================
On Windows, I have determined that the problem occurs at
c.frame.addIconRow(). The traceback I get is:
exception executing script
AttributeError: 'ToolbarTkIconBarClass' object has no attribute
'iconFrameContainerFrame'
--------------------
line 4324:
* line 4325: w =
Tk.Frame(self.iconFrameContainerFrame,height=height,bd=2,relief="groove")
line 4326: w.pack(fill="x",pady=2)
line 4327: self.iconFrame = w
Is there some other object I should be using instead of c.frame? I
simply don't understand the connection between the error and my
script.
Thanks,
Phil
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.