Plugins/PluginAbout.py

changeset 6287
9a193ff6d24a
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
equal deleted inserted replaced
6286:2c8a751d6137 6287:9a193ff6d24a
45 45
46 @param ui reference to the user interface object (UI.UserInterface) 46 @param ui reference to the user interface object (UI.UserInterface)
47 """ 47 """
48 super(AboutPlugin, self).__init__(ui) 48 super(AboutPlugin, self).__init__(ui)
49 self.__ui = ui 49 self.__ui = ui
50
51 self.__aboutDialog = None
50 52
51 def activate(self): 53 def activate(self):
52 """ 54 """
53 Public method to activate this plugin. 55 Public method to activate this plugin.
54 56
124 def __about(self): 126 def __about(self):
125 """ 127 """
126 Private slot to handle the About dialog. 128 Private slot to handle the About dialog.
127 """ 129 """
128 from AboutPlugin.AboutDialog import AboutDialog 130 from AboutPlugin.AboutDialog import AboutDialog
129 dlg = AboutDialog(self.__ui) 131 if self.__aboutDialog is None:
130 dlg.exec_() 132 self.__aboutDialog = AboutDialog(self.__ui)
133 self.__aboutDialog.show()
131 134
132 def __aboutQt(self): 135 def __aboutQt(self):
133 """ 136 """
134 Private slot to handle the About Qt dialog. 137 Private slot to handle the About Qt dialog.
135 """ 138 """

eric ide

mercurial