View Single Post
Old 04-20-2011, 01:27 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,893
Karma: 5582471
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah yes, for the popup type you would need this

Code:
for bar in (self.gui.tool_bar, self.gui.tool_bar.child_bar):
   w = bar.widgetForAction(self.qaction)
   if w is not None:
       w.setPopupMode(QToolButton.whatever)
kovidgoyal is online now   Reply With Quote