Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Create a non-interactive form and show it until keypress

edited February 2013 in OpenSesame

Hi. I'm using the text display form for the experiment instructions. However, I don't want to show an OK button. Rather, I'd prefer to move forward by simply press a keyboard key. My problem is that I don't figure out how I can obtain this kind of form. From the documentation, I have tried to use the only_render option but it did not work (the form is not shown). Any help?

Thanks.

Comments

  • edited 12:33PM

    Hi Andrea,

    When you use ...

    set only_render yes

    ... the form is really only rendered, and does not wait for any user input at all. Like a sketchpad with a 0ms duration, basically. Is your problem solved by inserting a keyboard_response after the form?

    If you want to remove the button widget, you can edit the form script and simply remove the line that corresponds to the button. (Normally, without setting only_render to yes, removing the 'next' button is not a good idea!)

    Cheers!
    Sebastiaan

  • edited 12:33PM

    Indeed, the problem is solved by inserting a keyboard_response item.

    However, this does not work if I use the Psycho backend. A simple structure like this:

    -- Text_display_form [with only_render and no buttons]

    -- keyboard_response

    -- sketchpad

    works in Xpyriment (and of course also in Legacy) but in Psycho OpenSesame remains on the text_display and does not show the sketchpad when the user presses the key.

  • edited February 2013

    Forget it, now it works for me also in Psycho. I don't know why it did not work initially, but now it is solved.

    As always, thanks for your helps.

  • edited September 2017

    Hi! I'm having the same issue where the screen is not shown, but it is not fixed by putting a keyboard response after.

    Here is the code for that particular screen:

    Import the widgets library

    from libopensesame import widgets

    Create a form

    form = widgets.form(exp, cols=[1,1,1,1,1,1,1,1,1,1], rows=[2,1,3,1],
    margins=(50,50,50,50), spacing=10)

    TOP Left

    diceL1 = widgets.label(form,text='[left1]', center=True)
    diceL2 = widgets.label(form,text='[left2]', center=True)
    diceL3 = widgets.label(form,text='[left3]', center=True)
    diceL4 = widgets.label(form,text='[left4]', center=True)
    diceL5 = widgets.label(form,text='[left5]', center=True)

    Language Question

    question = widgets.label(form,text='¿En qué idioma te gustaría responder?/\n\nIn what language would you like to respond?', center=True)

    WAIT FOR PLAY MESSAGE

    wait=widgets.label(form,text='Por favor espera a que el otro participante haga su jugada. \nPor favor recuerda no tocar la pantalla. \n\n\nPlease wait for the other participant to make the play.\nPlease remember not to touch the screen.', center=True)

    #

    TOP LEFT PART

    form.set_widget(diceL1, (0,0), colspan=1)
    form.set_widget(diceL2, (1,0), colspan=1)
    form.set_widget(diceL3, (2,0), colspan=1)
    form.set_widget(diceL4, (3,0), colspan=1)
    form.set_widget(diceL5, (4,0), colspan=1)
    form.set_widget(question, (0,1), colspan=5, rowspan = 2)
    form.set_widget(wait, (6,1), colspan=3, rowspan = 2)

    var.only_render="yes"

    Any ideas??
    Thank you!!

  • Scratch that. I was missing the form._exec() line! :s

Sign In or Register to comment.

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