Xophmeister
About
- Username
- Xophmeister
- Joined
- Visits
- 28
- Last Active
- Roles
- Member
Comments
-
No luck, I'm afraid... Thanks, all the same :)
-
...Following a short discussion on StackOverflow, I tried to see what get_pos was returning both before and after the call to set_pos. Weirdly, get_pos is returning the expected coordinates, it's just that the actual pointer on the screen doesn't mo…
-
Hi Sebastiaan, I'm not a native Chinese speaker, but yes, that is my understanding of how it works :)
-
(n.b., the set_pos call does work when running in windowed mode.)
-
Hi anonymouse, That's basically what I've done to workaround the issue: My source text has manual linefeeds in it where it reaches the max_width. It's a bit awkward to go through the text to place the linefeeds appropriately, but not a huge problem…
-
Hi Sebastiaan, I think the problem is due to written Chinese not containing any whitespace characters, so it doesn't know where it can wrap. Here's a minimal demonstration The English text correctly wraps before/at the nearest space to the max_wi…
-
...It was worth a try, but the img tag didn't work with either a remote file or local file (I didn't bother trying a data URI). I'll implement Josh's suggestion if needs be. Thanks; C
-
Thanks, Josh Yeah, those are the conclusion I had come to... Although, I did have another thought which I've not tried: The text in buttons (amongst other things) is rendered as HTML. Is there any restriction on that? Could one, for example, use an…
-
Hi, I was using xpyriment. I tried with Psycho, but that broke my other tasks; fortunately, Legacy didn't break anything and sped things up considerably...enough for it to be usable. Thank you :) It's still not wrapping Chinese text, but I can for…
-
Thanks, Sebastiaan That clears everything up and resolves my issue/misunderstanding with variable assignment persistence. I was thinking you must use a closure, or something like that, but Python doesn't really have proper closures. Scoping by sequ…
-
...although, if that were the case, what is happening with variable assignment? If I declare a variable in the prepare phase, I can still use it in the run phase contextually; that is, it respects any dependencies said variable might have (e.g., a l…
-
It would be nice to add some reflection/introspection/metaprogramming capabilities, via Python inline scripts, such that you could manipulate items in the experiment sequence at runtime. For example, I'm rolling my own randomisation scheme and then…
-
Thanks, Eduard Yes, this looks like it should work :) Now I've learned that what is declared in inline scripts persists until the end of the experiment it should, like you say, be very easy to get things to run the way I have in mind.
-
I think I've answered this myself. (Apologies for the asynchrony: I'm not able to experiment with OpenSesame while at work!) If you define functions or classes (or whatever) in the prepare section of an inline script item, they will still be in sco…
-
I just tried your code out, Josh and, modulo a few typos, it worked a charm :) Thank you again! For others' sake, the diff on the typos is as follows: --- canvas.text(sentence_list[word]), x=starting_coordinate)+++ canvas.text(senten…
-
Thank you, Josh: That's very very helpful :) Would I then just call exp.set('someResponseVar', sentence_responsetimes) after the for-loop? That is, will the list be serialised to a string automatically by the logger, so I get a CSV that looks like …
-
Thanks, Sebastiaan My first two queries are related, so let me try to be a bit more specific. I'm trying to create a self-paced reading task. The way I can see this working is to have a single item that displays successive words, controlled by mou…
-
Hi Josh, I wanted the scenario where I have multiple buttons that set the value of the same experiment variable to something specific. It was also desirable for me for the value to be a code rather than the button text (i.e., it's arguably easier t…
-
Forget that! I was missing a return statement in my overridden on_mouse_click function. The following makes it all work again: def on_mouse_click(self, pos): exp.set('lang', self._lang) return super(langButton, self).on_mouse_click(pos) Inci…
-
Great! Thank you, Sebastiaan :)