[texworks] SCRIPT Prototype: A work in progress - LaTeX xcolor colour names dialogue

Stefan Löffler st.loeffler at gmail.com
Thu May 27 13:00:47 CEST 2010


Am 2010-05-27 12:20, schrieb Paul A Norman:
> ( I promised Jonathan if we had dialogues -- I'd be aiming to do a
> colour dialogue!)
> [...]
> But when the user selects a colour square (clicks in it), presently I
> appear to have no way to obtain the chosen value when they ok the
> dialogue -- it is not a property, and although I have obtained a
> reference to the  the widget in script, I can not presently execute a
> function call of the widget, to get the tableItem and so the toolTip()
> value selected.

Just out of curiosity, have you ever looked into using QColorDialog? It
doesn't offer color tables (for scripts), AFAIK, but you can get
arbitrary colors there. I'm not sure if/how scripts can handle QColor
values, though.


More information about the texworks mailing list