On Wed, May 29, 2013 at 8:22 AM, Terry Brown <[email protected]>wrote:
> On Tue, 28 May 2013 23:59:33 -0700 (PDT) > Fidel Pérez <[email protected]> wrote: > > > Great! It works! > > > > from leo.plugins.mod_scripting import scriptingController > > > sc = scriptingController(c) > > > > > > TempButtonHold = sc.createIconButton( p.h, command = "", statusLine = > p.h, > > > bg="blue" ) > > > TempButtonHold.button.setStyleSheet("QWidget {background-color: green > }") > > Oh good - just setting the stylesheet on the button itself didn't occur > to me :-) - I was thinking the button would need an attribute set that > allowed it to be targeted vis CSS selection from the top level > stylesheet. > Haha. This means that the bg keyword param to sc.createIconButton should be made functional ;-) I'll try that now. Edward -- 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?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
