On Sun, Mar 22, 2009 at 2:59 PM, Terry Brown <[email protected]>wrote:

>
> assert g.app.gui.guiName() == "qt"
>

It shouldn't be too difficult to discover what is going on: Put this in a
unit test::

@test gui name

print g.app.gui.guiName()
print c.frame.log

If you do alt-x run-unit tests you will get something like:

[snip]
creating: dynamicUnitTest.leo

*** No file in controller, using c.db=None ***

Traceback (most recent call last):

  File "C:\leo.repo\trunk\leo\core\leoGlobals.py", line 3020, in doHook
    return f(tag,keywords)

  File "C:\leo.repo\trunk\leo\core\leoPlugins.py", line 298, in doPlugins
    return doHandlersForTag(tag,keywords)

  File "C:\leo.repo\trunk\leo\core\leoPlugins.py", line 273, in
doHandlersForTag
    val = callTagHandler(bunch,tag,keywords)

  File "C:\leo.repo\trunk\leo\core\leoPlugins.py", line 252, in
callTagHandler
    result = handler(tag,keywords)

  File "C:\leo.repo\trunk\leo\plugins\quicksearch.py", line 59, in onCreate
    install_qt_quicksearch_tab(c)

  File "C:\leo.repo\trunk\leo\plugins\quicksearch.py", line 72, in
install_qt_quicksearch_tab
    c.frame.log.createTab("Nav", widget = wdg)

TypeError: createTab() got an unexpected keyword argument 'widget'

leoDynamicTest.py: argv:
['C:\\leo.repo\\trunk\\leo\\core\\leoDynamicTest.py',
'--silent--gui=nullGui']
Using menus from leoSettings.leo
reading C:\Documents and Settings\HP_Administrator\My
Documents\Edward\.leo\.leoRecentFiles.txt
@enabled-plugins found in leoSettings.leo
@enabled-plugins found in leoSettings.leo
rst3 plugin: SilverCity not loaded
nullGui
<leo.core.leoFrame.nullLog instance at 0x0188D3F0>

Note the two last lines:  nullGui and nullLog.

I'll add a widget keyword arg to nullLog.

Edward

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to