Code: Select all
mw=Gui.getMainWindow()
from PySide import QtGui
dw=mw.findChildren(QtGui.QDockWidget)
for i in dw:
print i.windowTitle()
i=dw[6]
i.toggleViewAction().text()
w=i.widget()
type(w) # => <class 'MeshGmsh'>
dir(w) # => []
Moderator: bernd
Code: Select all
mw=Gui.getMainWindow()
from PySide import QtGui
dw=mw.findChildren(QtGui.QDockWidget)
for i in dw:
print i.windowTitle()
i=dw[6]
i.toggleViewAction().text()
w=i.widget()
type(w) # => <class 'MeshGmsh'>
dir(w) # => []
Just FYI, I've heard that netgen works with ubuntu and I got it working under fedora with a simple tweak that has to be ironed out before it's merged into master. More here [1]. The post with the hack for fedora [2]drei wrote:@psicofil[..] I'd love to see it added as an option when someone wants to do a mesh, since netgen just won't work directly with FreeCAD under linux.