eric6/E5Gui/E5ToolButton.py

changeset 7628
f904d0eef264
parent 7360
9190402e4505
child 7780
41420f82c0ac
equal deleted inserted replaced
7626:7f643d41464e 7628:f904d0eef264
88 Public method to set the tool button menu. 88 Public method to set the tool button menu.
89 89
90 @param menu reference to the tool button menu 90 @param menu reference to the tool button menu
91 @type QMenu 91 @type QMenu
92 """ 92 """
93 assert menu is not None 93 if menu is not None:
94 94 if self.__menu:
95 if self.__menu: 95 self.__menu.aboutToHide.disconnect(self.__menuAboutToHide)
96 self.__menu.aboutToHide.disconnect(self.__menuAboutToHide) 96
97 97 self.__menu = menu
98 self.__menu = menu 98 self.__menu.aboutToHide.connect(self.__menuAboutToHide)
99 self.__menu.aboutToHide.connect(self.__menuAboutToHide)
100 99
101 def showMenuInside(self): 100 def showMenuInside(self):
102 """ 101 """
103 Public method to check, if the menu edge shall be aligned with 102 Public method to check, if the menu edge shall be aligned with
104 the button. 103 the button.

eric ide

mercurial