Using the keys branch ( #1596 
<https://github.com/leo-editor/leo-editor/issues/1596#> ), I changed some 
@buttons to use the new c.doCommandByName and received error:


*TypeError: doCommandByName() missing 1 required positional argument: 
'event'only 0 lines*

Edward explained that:
 c.doCommandByName takes two arguments.
 c.executeMinibufferCommand takes only one. 
There is no need to change your calls to c.executeMinibufferCommand.


So I am trying to understand how args work. I have tried to get the command 
to have 2 arguments but ignore or have arg2 empty.
The @button has:
c.doCommandByName('move-outline-right', event=None)

Not being an expert, it gives error:
*AttributeError: 'NoneType' object has no attribute 'get'*

Once I have that working, an example of how I could use arg2 would be 
appreciated.

Thanks
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/89a89fae-09eb-4ee6-92be-58f6ad0b7054%40googlegroups.com.

Reply via email to