Ah!
I've got it working by adding the following line:
self.tabifyDockWidget(self.bottom_dock_01,self.bottom_dock_02)
Which brings me to my next question... How do I know if there are
'QDockWidgets' already in one of the four zones? I'm asking because I'm
creating those dynamically and I will need to do the check before I try to
stack them.
Cheers
On Friday, August 22, 2014 1:43:33 PM UTC+1, David Martinez wrote:
>
> Hi,
>
> I have a question in regards on how the 'QDockWidget' works in
> 'PyQt/PySide'. I have an application that creates an instance of
> 'QMainWindow' and this one creates two 'QDockWidgets' in the bottom area.
>
> I'd like them to be stacked upon creation but instead they appear next to
> each other. Once the application is running, I can drop one on top of the
> other but I'd like to stack them when they get created. Is that possible?
>
> Here is some mock up code:
>
> https://gist.github.com/davidmartinezanim/6c69ca5cca39f390f89a
>
> (I know this way of importing is bad practice but it just for the sake of
> the example)
>
> Do you have any ideas about how to get this working the way I want?
>
>
> --
> David Martinez - Technical Animator
> Email: [email protected]
> Website: http://www.elusiveideas.com
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/e0d9289e-4208-44f4-8e6d-15a74125c401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.