Howdy, Stranger!

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

Supported by

Getting a pop up alert to move in Sketchpad

I am new to OS and python and getting support from postgrads and my supervisor. However, after 3 weeks I still don't have what I need in terms of an alert that pops up and either moves up and down slightly (whilst it is there) or is stationary. The other IV is colour contrast. This is where we are with part of the OS run (with help from the others) However, I am not getting anywhere and I need to be at the data capture stage of my project by now.

I should point out that the OS experimental programme itself is not an assessable part of the course it is merely a tool to capture the data.

If you have time could someone suggest what I need to do to get the 'alerts' to move (when needed) Also, am I on the right track with what I've got, or do I need to start again?

Thanks (in desperation!)

Stroller

Comments

  • @Stroller

    I don't know python and am new to OS too, but I took a look at your task and fixed a couple or python code errors that were preventing the task from running. There are two errors It generates some errors to do with code contained in the code of the alert_inline_script. Looking at the error messages in the console and browsing a little about Python on the web, I found the fixes to the two errors coming up:


    line 21:

    num = '%03d' % random.randrange(001,999)

    Problem: You can't have leading zeros in the arguments of the random function (001 must be changed to 1).

    Fix:

    num = '%03d' % random.randrange(1,999)


    line 61:

    print resp

    Problem: argument needs parentheses

    Fix:

    print (resp)


    With this fixed, the task runs.

    Now, I'm not sure I understand what you mean by "an alert that pops up and either moves up and down slightly (whilst it is there) or is stationary". I can't see anything in your code that makes the alert message move once it's displayed. As far as I can tell, your code only sets up the initial display, it doesn't contain instructions to change the position of objects while the trial is running. How long into a trial should that alert move? My guess is that you'd need to use an "if" statement to compare the current time to the time stored in start_time, to define what the new y coordinate of the alert should be, and refresh the canvas then. (or maybe I misunderstood what you are trying to achieve).

    Hope that helps a little...

    Fabrice.

    Buy Me A Coffee

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