Howdy, Stranger!

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

Supported by

Issues with copy canvas / sketchpad

edited February 2019 in OpenSesame

Hey,
I'm using a Droid backend and latest version of OpenSesami.
My problem is that whenever I'm trying to copy canvas or sketchpad that has images on it in inline code I get the following error:
item-stack: experiment[prepare].instructions_script_2[prepare]
exception type: TypeError
exception message: init() got an unexpected keyword argument 'visible'
item: instructions_script_2
time: Sun Feb 10 14:31:05 2019
phase: prepare

Traceback:
  File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\inline_script.py", line 77, in prepare
    self.experiment.python_workspace._exec(self.cprepare)
  File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\base_python_workspace.py", line 124, in _exec
    exec(bytecode, self._globals)
  Inline script, line 5, in <module>
  File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp\_canvas\legacy.py", line 158, in copy
    Canvas.copy(self, canvas)
  File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp\_canvas\canvas.py", line 757, in copy
    for name, element in canvas._elements.items()
  File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp\_canvas\_element\legacy.py", line 47, in copy
    return self.__class__(canvas, **properties)
**TypeError: __init__() got an unexpected keyword argument 'visible'
**

This is the code i'm trying to use:
c0 = self.copy_sketchpad("trial_4_1_1")
#("trial_4_1_1" has images on it)

OR

c0=Canvas(exp)
c0.copy(all_animals_canvas)
_#("all_animals_canvas" is a global canvas object with images)
_

When I remove the images the code above works..
I would appreciate your help!
thanks,
Bar

Comments

  • Hi Bar,

    Thanks for reporting this. Coincidentally I just pushed a fix for this issue yesterday, so it should be fixed for the next maintenance release (3.2.7). It's due to the Image element on the sketchpad. A workaround for now would be to avoid copying sketchpads with images. If this is not feasible in your experiment, then we can try to find a more hacky solution for now (but that's probably more trouble than it's worth).

    I'm using a Droid backend and latest version of OpenSesami.

    Just to avoid confusion: If you plan to run your experiment on Android, note that the latest version for Android is 3.1.8, and that there are issues with recent version of Android:

    Cheers!
    Sebastiaan

  • edited February 2019

    Hey,
    Thank you for your fast answer!
    For now I found a way to deal with the copy issues (just without using copy methods), but it's not the optimal solution..
    When the next version is supposed to be released?

    I have another unrelated question: instead of buying android tablet for this experiment, we want to buy ASUS tablet (Transformer Book) with intel processor and Windows 10 OS.
    Does OpenSesame supports touch screen in non-android tablets? to be more specific-will the "Mousetrap" plug-in work with touch responses on this kinds of tablets?

    Thanks again!
    Bar

  • When the next version is supposed to be released?

    There's no set date, but it's just an maintenance release, so I'd say in the next two months or so.

    Does OpenSesame supports touch screen in non-android tablets? to be more specific-will the "Mousetrap" plug-in work with touch responses on this kinds of tablets?

    Touch screens are supported. But they are a bit finicky in the sense that most systems translate a touch release (rather than the touch itself) to a mouse click. I'm not sure that's configurable and, if so, how.

    Regarding Mousetrap, that's a question best left for @Pascal!

    Cheers!

  • Hi Bar, hi Sebastiaan,

    I have not tried out OpenSesame & mousetrap with Windows tablets so far. However, internally mousetrap uses OpenSesame's Mouse.get_click function to detect cursor clicks. So, based on what Sebastiaan suggested I would suspet that mousetrap would treat touch releases as mouse clicks.

    Best,

    Pascal

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