Is that a marking menu or just a normal menu? He was asking about marking
menus.
On Jun 14, 2013 7:03 AM, "Christian Akesson" <[email protected]> wrote:

> To populate context menu
> # Clear the list
> for e in myContextMenu .actions():
>         myContextMenu.removeAction(e)
> # Populate the list
> if dataItems:
>     myContextMenu.addAction(PyQt4.QtGui.QAction('Reset', self))
>     myContextMenu.addSeparator()
>     for e in dataItems:
>         myContextMenu.addAction(PyQt4.QtGui.QAction('%s' % e, self))
>
> --
> 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 post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to