dr-geo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dr. Geo] Is it possible to get a canvas for a main DrGeo window in


From: Hilaire Fernandes
Subject: Re: [Dr. Geo] Is it possible to get a canvas for a main DrGeo window in a script?
Date: Sun, 28 Jan 2018 15:49:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

If I understand correctly what you want to do, you can't.

With scripts from the Dr. Geo main window, you only manipulate *existing* mathematic items (the model or its costume).

You can not instantiate new item from there, and the workspace canvas features and its high level API are not accessible either from there.

Of course hacking is possible, but it will help if you describe what you want to achieve.

Hilaire

Le 28/01/2018 à 12:04, philippeback a écrit :
I wanted to use "FSD" like scripting in scripts (not what I can write in a
worskpace, in scripts in the main DrGeo windows).

But there doesn't seem to be a way to get access to a canvas from there.

I inspected a self arg1 and drilled down but it seems that there are only
math items and I cannot add points, polygons etc.

This would be nice to have.

How can I do have access to such a canvas?

TIA
Phil

--
GNU Dr. Geo
http://drgeo.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]