If someone confirms me its worth it, I will learn to use github then edit 
that line in the git code and propose it... I dont know anything about 
github and it will probably be a while for me to learn, so please only 
confirm if you are willing to accept that change hehehe.

On Thursday, June 20, 2013 2:10:36 PM UTC+2, Fidel Pérez wrote:
>
> Problem: Buttons cant show literal caption, making them ugly. If the user 
> try to make a button with literal caption of a node containing '{}' or more 
> strange characters, it will not work.
>
> I would like to suggest an extra attribute to the function: 
>
> createIconButton (self,text,command,statusLine,bg=None,kind=None)
>
>  
> Located in Leopluginsref.py 
>
> The idea would be to allow buttons to have literal caption, with an extra 
> value:
>
> createIconButton (self,text,command,statusLine,bg=None,kind=None,
>> LiteralCaption=False)
>
>
> By default it wouldnt affect or change anything now, but it would make 
> available for the user to define the literal caption of the button, 
> regardless of the cleaned-up-command-name, which would look great for 
> button interfaces (as the one Im making which main purpose is actually to 
> attract new users...)
>
> I just tested it and it by editing leopluginsref.py and looks great!! (Prev 
> change <http://i.imgur.com/y0SKjRY.png>)  (After 
> change<http://i.imgur.com/QObPTO2.png>) 
> (After change button with working command <http://i.imgur.com/Zn8K43s.png>
> )
>
> The only changes to be made in the function are the following:
>
> createIconButton (self,text,command,statusLine,bg=None,kind=None
>> ,LiteralCaption=False)
>
>
> Then switch from this snapshot <http://i.imgur.com/kubyFkt.png>  for this 
> one <http://i.imgur.com/JRVNrUN.png> just by adding this:
>
>     if LiteralCaption:
>>         truncatedText=text
>>     else:
>
>
> Done!
>
>
>
>
>

-- 
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/groups/opt_out.


Reply via email to