Yay, it works!

Thanks,
Kent

On Tue, Aug 19, 2014 at 11:11 AM, 'Terry Brown' via leo-editor
<[email protected]> wrote:
> On Mon, 18 Aug 2014 15:56:31 -0500
> Kent Tenney <[email protected]> wrote:
>
>> vanilla buttons work fine if defined in myLeoSettings.leo ...
>>
>> I'll bravely shoulder the burden of putting the rclickers in the
>> file ;=]
>
> :)
>
> @rclick should work ok in settings files now too, code tidy up etc.,
> quite a bit of refactoring.  The challenge, which Edward's probably
> well aware of but I only just fully understood is that @buttons in the
> local files execute the script on their node currently, allowing real
> time changes to the script, whereas @buttons from @settings execute the
> script as they saw it when the settings were loaded.  I just had to
> make @rclick work the same way.  A matter of separating the scanning of
> the @rclick tree from the construction of the menus.
>
> Cheers -Terry
>
>> On Mon, Aug 18, 2014 at 3:52 PM, 'Terry Brown' via leo-editor
>> <[email protected]> wrote:
>> > On Mon, 18 Aug 2014 15:20:51 -0500
>> > Kent Tenney <[email protected]> wrote:
>> >
>> >> You're right, either one works if located in the active Leo file,
>> >> they don't work if in myLeoSettings.leo, the button shows up
>> >> (in a not myLeoSettings.leo file) without the submenu stuff.
>> >
>> > I see what you mean, processing in @settings > @buttons is
>> > different, I guess I've always had my @buttons in files I load in
>> > individual outlines, to manage the presence of different sets of
>> > buttons in different outlines.  But something you wanted to be
>> > ubiquitous should work from myLeoSettings.leo.
>> >
>> > Cheers -Terry
>> >
>> >> with all that's going on, a very low priority item indeed.
>> >>
>> >> Thanks,
>> >> Kent
>> >>
>> >>
>> >>
>> >> On Mon, Aug 18, 2014 at 2:08 PM, 'Terry Brown' via leo-editor
>> >> <[email protected]> wrote:
>> >> > On Mon, 18 Aug 2014 06:48:38 -0500
>> >> > Kent Tenney <[email protected]> wrote:
>> >> >
>> >> >> I have tried a number of variations on the following
>> >> >>
>> >> >> @buttons
>> >> >>   @rclick nodecontent
>> >> >>      @rclick left
>> >> >>      @rclick right
>> >> >>
>> >> >> which
>> >> >> http://comments.gmane.org/gmane.comp.python.leo.general/27192
>> >> >> seems to prescribe. It hasn't worked so far.
>> >> >
>> >> > I think you need a button in there, so either
>> >> >
>> >> > @buttons
>> >> >   @button Tools
>> >> >   @rclick nodecontent
>> >> >     @rclick left
>> >> >     @rclick right
>> >> >
>> >> > Or
>> >> >
>> >> > @buttons
>> >> >   @button Tools
>> >> >     @rclick nodecontent
>> >> >        @rclick left
>> >> >        @rclick right
>> >> >
>> >> > I think might be equivalent, the second form makes more sense
>> >> > though.
>> >> >
>> >> > Cheers -Terry
>> >> >
>> >> >> update:
>> >> >> I clicked <script-button> on @rclick nodecontent and the button
>> >> >> with menu appeared and works as expected ...
>> >> >>
>> >> >
>> >> > --
>> >> > 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 post to this group,
>> >> > send email to [email protected]. Visit this group at
>> >> > http://groups.google.com/group/leo-editor. For more options,
>> >> > visit https://groups.google.com/d/optout.
>> >>
>> >
>> > --
>> > 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 post to this group,
>> > send email to [email protected]. Visit this group at
>> > http://groups.google.com/group/leo-editor. For more options, visit
>> > https://groups.google.com/d/optout.
>>
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to