Search found 3182 matches

Go to advanced search

by looo
Tue Feb 14, 2017 3:51 pm
Forum: Developers corner
Topic: 'KeyEvent.getState() == 1' is not tracked anymore (key "v")
Replies: 9
Views: 1359

Re: 'KeyEvent.getState() == 1' is not tracked anymore (key "v")

It makes some sense but it won't resolve the main problem. As that problem is not resolvable anyway in a scenario where you have 100 workbenches and all would like to use sane shortcut combinations for commands. I was already thinking about this in the past: keys are only used at a specific task, a...
by looo
Tue Feb 14, 2017 9:24 am
Forum: Developers corner
Topic: 'KeyEvent.getState() == 1' is not tracked anymore (key "v")
Replies: 9
Views: 1359

Re: 'KeyEvent.getState() == 1' is not tracked anymore (key "v")

The actual problem is that when a callback function is registered to the viewer it doesn't get these events as first and thus has no chance to handle them. And this makes it difficult because the macro coder cannot rely on an unreserved short cut to be still unreserved in the future. Exactly this i...
by looo
Tue Feb 14, 2017 7:28 am
Forum: Developers corner
Topic: 'KeyEvent.getState() == 1' is not tracked anymore (key "v")
Replies: 9
Views: 1359

'KeyEvent.getState() == 1' is not tracked anymore (key "v")

Today I encountered that some macros are not working anymore because pivys event handling has changed. To test: from pivy import coin def test(event_callback): event = event_callback.getEvent() print(event.getState()) view = Gui.ActiveDocument.ActiveView view.addEventCallbackPivy(coin.SoKeyboardEven...
by looo
Mon Feb 13, 2017 9:41 pm
Forum: Developers corner
Topic: netgen (6.2)
Replies: 6
Views: 1274

Re: netgen (6.2)

the pybind11 bindings are working, and it's possible to interact with netgen via python. But I have only tested with python3.
netgen.png
netgen.png (54.16 KiB) Viewed 1237 times
by looo
Mon Feb 13, 2017 9:30 pm
Forum: Developers corner
Topic: netgen (6.2)
Replies: 6
Views: 1274

Re: netgen (6.2)

nearly worked out of the box. https://github.com/looooo/netgen/commit/2ae741e440a3b7401815a4af26f0cdec0c7e7520 I used this script to build netgen: https://github.com/looooo/FreeCAD_Conda/blob/master/netgen/build.sh FindNetgen from FreeCAD needs the mydefs.hpp file. But in netgen this is called confi...
by looo
Mon Feb 13, 2017 4:54 pm
Forum: Developers corner
Topic: netgen (6.2)
Replies: 6
Views: 1274

netgen (6.2)

Just had a look at the netgen commits [1], and saw the fixes from @vejmarie [2] and @wmayer are in the master branch. There are also many other changes so building with the latest netgen-master will be quite challenging, and maybe we have to send them some patches again :D Anyway, good to know there...
by looo
Mon Feb 13, 2017 2:52 pm
Forum: Developers corner
Topic: [solved] python3 exception
Replies: 3
Views: 464

Re: python3 exception

I think I have found: there is no StringIO in python3
by looo
Mon Feb 13, 2017 2:29 pm
Forum: Developers corner
Topic: [solved] python3 exception
Replies: 3
Views: 464

[solved] python3 exception

I need some help with exceptions in python3. When a workbench or command fails the traceback is always "unknown". <unknown exception traceback> Searching for this in the source gives this result: https://github.com/FreeCAD/FreeCAD/blob/master/src/Base/PyTools.c#L281 So the unknown traceback is cause...
by looo
Sun Feb 12, 2017 7:42 pm
Forum: Developers corner
Topic: Porting to python3
Replies: 943
Views: 98243

Re: Porting to python3

Finally a python3-conda-package to test freecad with python3:
Instructions to install the package are on top of the python3-wiki: https://www.freecadweb.org/wiki/Python_3
by looo
Fri Feb 10, 2017 12:08 pm
Forum: Python scripting and macros
Topic: IPython notebook integration
Replies: 6
Views: 2577

Re: IPython notebook integration

this one could be of interest: http://osgjs.org/

Go to advanced search