Hi Justin,
thanks for u reply
i used  CustomContextMenu to create my popup menu on my button

here is my code is used.. 

self.Button = QPushButton('Button')

self.Button.setContextMenuPolicy(Qt.CustomContextMenu)
self.Button.customContextMenuRequested.connect(self.mymenu)
menu = QtGui.QMenu()
menu.addAction('key')


def mymenu(self, point):
    self.menu.exec_(self.button.mapToGlobal(point)) 

it works, but my popup wont show where i want. it shows somewhere inside the ui
how do i set my popup menu position to the right down-corner of my button

thanks


-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to