I am totally new to Python and psychopy and just starting to put together an experiment on psychopy 1.83.01, mainly using the builder but inserting code here and there to fullfil my needs.I am trying to have an item of a questionnaire displayed to user in which some words are in italic font.Is it possible? And if yes, how?
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/408B1DC5-998B-434B-A3B3-ABEB937BDCD4%40nzbri.org.
For more options, visit https://groups.google.com/d/optout.
I will try as you suggest with screenshots...I am sure it works...Alternatively, I thought about also having something like 3 TextStim defined that are a) "Beginning of sentence", b) "part in italics", c) "End of sentence" and to concatenate them into a string variable like FullSentence = Beginning + Italic Part + End of sentence.Then I would display $FullSentence in another TextStim. Would that have a chance to work? And if yes, what would be the code for concatenating strings into a single variable?
Thanks again for your help and time.BestElise
On Thursday, December 3, 2015 at 1:37:33 AM UTC+1, michael.macaskill wrote:
> On 3/12/2015, at 12:02, Jeremy Gray <jrg...@gmail.com> wrote:
>
> I too get an error. It goes away if I change visual.__init__.py to use an absolute import:
>
> from psychopy.visual.textbox import TextBox
>
> This is within the lazyImports section.
Ahh, OK, this makes sense based on your earlier message today on the developer list: just followed the links you posted there, as I wasn't really au fait with any of those import distinctions.
> The TODO.txt file suggests that its not yet possible to set things like italics on a pre-character basis.
Ahh, OK, so no solution there for Elise (as yet…)
Thanks,
Mike
--
Michael R. MacAskill, PhD 66 Stewart St
Research Director, Christchurch 8011
New Zealand Brain Research Institute NEW ZEALAND
Senior Research Fellow, michael....@nzbri.org
Te Whare Wānanga o Otāgo, Otautahi Ph: +64 3 3786 072
University of Otago, Christchurch http://www.nzbri.org/macaskill
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/b30789f7-a5b9-4d2e-aa43-6b9d1c6c534c%40googlegroups.com.