def createAxisOperationsButtonAndMenu(self):
        button = QtGui.QToolButton()
        menu = QtGui.QMenu(self)        
        
        opDefs = ['def default axis points',
                  'sum summation of selected axis points',
                  'avg average of selected axis points',
                  'wgt weighted average of selected axis points',
                  'awt altered weighted average of selected axis points',
                  'gtm geometrical mean of selected axis points',
                  'std standard deviation of selected axis points',]
        
        for op in opDefs:
            action = menu.addAction(op)
            self.connect(action, QtCore.SIGNAL('triggered ()'),
                         self.selectAxesOperationEvent)

        button.setText(' def  ')
        button.setMenu(menu)
        button.setPopupMode(QtGui.QToolButton.InstantPopup)

        # Connect Signals
        self.connect(button, QtCore.SIGNAL('clicked(bool)'),
                     button.showMenu)

        return button
Sends a pkt-line to the remote git process.
dataset/ETHPy150Open VisTrails/VisTrails/contrib/cdat/cdat_window.py/QAxis.createAxisOperationsButtonAndMenu--crossover with--dataset/ETHPy150Open natestedman/Observatory/observatory/lib/dulwich/protocol.py/Protocol.write_pkt_line