agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq,
agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq ,
dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu
http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan
BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama
Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga
BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai
Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah
Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai
Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs
Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games
Comments
Hi Mpaullin,
Welcome to the forum and thank you for your interest in OpenSesame!
The problem with using widgets (Tk, Qt, Gtk, and what have you) is that they typically draw on their own window, and not on the OpenSesame window. This is why you see the widget only after the experiment closes (and perhaps in a separate window if you don't run the experiment fullscreen?)
There are a number things you can do:
The questionnaire plug-ins have a rating scale. If this suits your needs, this is probably the best and easiest way to go. http://osdoc.cogsci.nl/plug-ins/questionnaire-plug-ins
If you really need a slider, you will basically have to program one in Python inline code. But this is not that hard to do. If you tell me specifically what you want to do, I can give you some pointers.
Hope this helps!
Kindest regards,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks a lot for your helpful reply. I took a look at the rating scale plugin, and I'm afraid that it does not meet my needs. I'm looking for something that can give me a lot more variability, which is why a slider would work best. In the past we used a slider with about 200 underlying data points. I am not a programmer in any sense, so would appreciate any tips you may have for implementing a slider using python inline code. Thanks again
Here's a small snippet that shows a mouse-controlled slider. You will probably want to modify it a bit, but hopefully it conveys the general idea. You can find more about the canvas functions (for drawing) here: http://osdoc.cogsci.nl/python-inline-code/canvas-functions
You will need to paste this code into the run phase of an inline script item. I've tested it with OpenSesame 0.25-pre9, but it should work with 0.24 as well.
Check out SigmundAI.eu for our OpenSesame AI assistant!
That worked beautifully. Thanks again for your help.
This one's great, thanks a bunch! This could be a bit of a silly question, but I'm going to risk making a slight fool of myself: where can I adjust the colours of the text and maybe the background as well? Did I miss it in your code?
Thanks in advance!
Edwin
Hi Edwin,
You can use either the set_fgcolor() and set_bgcolor() functions, which will affect all subsequent drawing operations, or pass the 'color' keyword for a single drawing operation. So the following (adapted from above) will give you a horribly coloured slider:
For a complete list of canvas functions, see this page: http://osdoc.cogsci.nl/python-inline-code/canvas-functions
Hope this helps!
Regards,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
That seems to work, thanks a bunch!
Hi,
i am trying to make a slider working from keyboard keys RIGHT and LEFT, for say.
I cannot use the mouse as i am in the MRI scanner.
I dont find any way to distinguish the keyboard presses from their release (to smooth the slider movement).. is there one, somehow ?
Thanks
PE
Hi,
This code is just what we were looking for, but it's quite laggy at runtime (a few seconds, the mouse tends to be jumpy). Do you have any hints?
You can try different backends. Which one do you use right now?
Btw. the discussion here is rather old, which code did you use eventually? And did you have to tweak it?
Eduard
We're using xpyriment as the backend, and here is what we did with the code we're using:
Hi,
Here an optimized version of the slider. Hope it is sufficient.
Eduard
Hi all,
I'm doing a mouse tracking experiment (with the Mousetrap plug-in) using the visual analogue scale (slider) based on the code above (by Eduard). Before that I used this code:
However, with the code by Eduard, sometimes my stimuli do not show at random trials. When I used the code in this comment this didn't happen and it's the only thing I have changed.
So the stimuli do not show, but the buttons that I made with the Mousetrap plug-in at the same place of the stimuli are still clickable. The experiment then moves to the next trial and there the stimuli do show.
I really don't know if this is because of the change in code for the slider, but I hope someone can help me with this.
Best,
Dirk
@Dirk This may be useful:
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi
I'm totally new to open Sesame and Python and am putting together an experiment which will ask participants to rate the emotional intensity of a series of images. I'd like to use a slider instead of manually inputing a 1-9 scale. The optimised version posted above by Eduard works perfectly but is there any way to include the slider on the sketchpad I'm using to show the image and have the program advance to the next image when the mouse is clicked? I'd also like the slider to reset to zero each time, at the moment it stays at the same point as the previous response, which might tempt participants just to click in the same spot.
Any help would be gratefully received
thanks
Elise
Hi @EliseF,
I would take a look at the same link that I suggested to Dirk above. This provides a slider widget that you can embed in a form, along with other widgets, such as images.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi people,
I'm using the code recommended here for a slider in an experiment i'm building.
My problem is that it works perfectly well when I run it in window but when I try to run it in full screen the mouse won't run on the entire slider and would just kind of stay stuck around the midpoint of the scale.
Any ideas on how to fix this?
Thanks!
HI @mikapita,
It sounds like the cursor position is reset to the center, which happens on systems when the cursor is hidden and then shown again. You can probably change this behavior by going to the backend settings (in the General Properties tab) and trying out different options under the Canvas backend.
Alternatively, you can take a look at the discussion below, which provides a more recent implementation of a slider widget.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi everyone,
I have modified the inline script for slider according to my experiment, and it works very good.
But I still have difficulty to add/make timeout for this slider. In my experiment, the participant should press the slider within 10 seconds, or if they are not pressing the slider, the screen will change automatically after 10 seconds.
I attached the file here, please no need to pay attention to the text stimuli because the stimuli is in Indonesian language/is'nt in English).
I really hope someone can give help for this case.
Hi Lisa,
Attached your experiment, with a timeout added. I hope this helps,
Eduard
I am grateful, the script works very good. Thanks a bunch Eduard!