Hi all,

I am using `MayaQWidgetDockableMixin` and for some reasons when using Maya 
2018, some of the signals are not working when the tool is closed.
While I have managed to find a way to resolve this which is by sending the 
tool to be docked upon first execution. By doing so, whether I closed it 
while it was docked or when I tear it off and closed the tool, the closed 
signals will then be called.

This is how I did it by using the `setDockableParameters` argument in the 
following manner:
self._window.setDockableParameters(
           dockable=True, x=x_pos, y=y_pos, allowedArea='left', area='left'
       )

My question would be - How can I tear off my tool when it is first docked?
I tried doing the following:
# Check if window is docked or not
if not self._window.isFloating():
  """
  Details for `raise_()`:
  Raises the widget to the top.  Will raise the parent widget if it is a 
QDockWidget.
  Overrides standard QWidget.raise_()
  """
    self._window.raise_()

It does not seems to be tearing off the said tool at all. but instead the 
tool remains docked.


Appreciate in advance if anyone may have any ideas.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/c16baaee-c571-491f-91bb-f2312ac31650%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to