You can generate a Qt class instance, from a cmds gui widget using
wrapInstance from shiboken.
I have used this in the past:
from PySide2.QtWidgets import QMenu
from maya.OpenMayaUI import MQtUtil
from shiboken2 import wrapInstance
from maya import cmds
cmds_menu: str =
In that case, I can think of 2 options.
1. See if there’s another command in cmds you could use to manipulate
already-created tabs, I’m not familiar with this part myself so can’t say
for sure
2. Alternatively, whatever cmds does it is Qt that is ultimately drawing
the tabs, which
Alas, they're made via cmds.
On Tue, Nov 14, 2023 at 2:07 PM Marcus Ottosson
wrote:
> It would depend on how the tabs are made, are they made via PySide or cmds?
>
> On Tue, 14 Nov 2023 at 16:27, Ravi Jagannadhan wrote:
>
>> Hi all, is it possible to hide individual tabs in a tab layout?
>>
>>
It would depend on how the tabs are made, are they made via PySide or cmds?
On Tue, 14 Nov 2023 at 16:27, Ravi Jagannadhan wrote:
> Hi all, is it possible to hide individual tabs in a tab layout?
>
> Ravi
> —
> “There are no dumb questions” - Carl Sagan
>
> --
> You received this message
Hi all, is it possible to hide individual tabs in a tab layout?
Ravi
—
“There are no dumb questions” - Carl Sagan
--
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