You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Uncaught TypeError: 'set' on proxy: trap returned falsish for property 'a'
this.a = 4;
^
at new MainWindow (file:///home/mrcool/dev/deno/lab/b.ts:10:11)
at file:///home/mrcool/dev/deno/lab/b.ts:14:13
The text was updated successfully, but these errors were encountered:
sigmaSd
changed the title
errors when setting properties on class that extends python class
errors when setting properties on a class that extends python class
Nov 8, 2023
import{python}from"https://deno.land/x/python@0.4.1/mod.ts";constgi=python.import("gi");gi.require_version("Gtk","4.0");constGtk=python.import("gi.repository.Gtk");classMainWindowextendsGtk.ApplicationWindow{
#a;constructor(){super();this.#a =4;// no error}}console.log(newMainWindow());
import{python}from"https://deno.land/x/python@0.4.2/mod.ts";constm=python.runModule(`class A: x = 4 `,);classBextendsm.A{b;constructor(){super();this.b=5;// error origin}}const_b=newB();// error here
This is annoying in practice because it means I can't access any properties/functions of a class from the outside.
I wonder if there is a way to expose an alternative api for the proxy that allows such things.
more info here #53 (comment)
The text was updated successfully, but these errors were encountered: