On Sun, 22 Mar 2009 07:09:21 -0700 (PDT)
zpcspm <[email protected]> wrote:
> File "/tmp/1/leo-editor/leo/plugins/todo.py", line 86, in __init__
> self.owner.c.frame.log.createTab('Task', widget = self)
>
> TypeError: createTab() got an unexpected keyword argument 'widget'
After much fiddling about I believe run-unit-tests creates an
environment in which g.app.gui.guiName() is not accurate.
Even without todo.py enabled I see lots of strange similar errors, i.e.
the sort you'd expect to see if g.app.gui.guiName()=='qt' was failing.
Here's my outline:
tests
@test a test of test
@test another test of test
the @test nodes are just asserts, 2+2==4 and 2+2==3 respectively.
I run run-unit-tests from the node 'tests'
todo.py has:
print 'MAKING ASSERTION'
assert g.app.gui.guiName() == "qt"
self.owner.c.frame.log.createTab('Task', widget = self)
I see the 'MAKING ASSERTION' print, the assertion passes fine, and then
the traceback appears.
Also, Running all the Leo unit tests with Alt-4 works with todo
enabled. So hopefully Edward can comment on why self.owner.c.frame.log
doesn't seem to be qt flavored when g.app.gui.guiName() == "qt".
Cheers -Terry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---