eric6/WebBrowser/WebBrowserWindow.py

changeset 8265
0090cfa83159
parent 8260
2161475d9639
child 8273
698ae46f40a4
child 8560
532068b0edb4
equal deleted inserted replaced
8264:f95dde35d0ab 8265:0090cfa83159
3159 3159
3160 def __showPreferences(self): 3160 def __showPreferences(self):
3161 """ 3161 """
3162 Private slot to set the preferences. 3162 Private slot to set the preferences.
3163 """ 3163 """
3164 from Preferences.ConfigurationDialog import ConfigurationDialog 3164 from Preferences.ConfigurationDialog import (
3165 ConfigurationDialog, ConfigurationMode
3166 )
3165 dlg = ConfigurationDialog( 3167 dlg = ConfigurationDialog(
3166 self, 'Configuration', True, fromEric=False, 3168 self, 'Configuration', True, fromEric=False,
3167 displayMode=ConfigurationDialog.WebBrowserMode) 3169 displayMode=ConfigurationMode.WEBBROWSERMODE)
3168 dlg.preferencesChanged.connect(self.preferencesChanged) 3170 dlg.preferencesChanged.connect(self.preferencesChanged)
3169 dlg.masterPasswordChanged.connect( 3171 dlg.masterPasswordChanged.connect(
3170 lambda old, new: self.masterPasswordChanged(old, new, local=True)) 3172 lambda old, new: self.masterPasswordChanged(old, new, local=True))
3171 dlg.show() 3173 dlg.show()
3172 if self.__lastConfigurationPageName: 3174 if self.__lastConfigurationPageName:
4683 ## Support for desktop notifications below 4685 ## Support for desktop notifications below
4684 ########################################## 4686 ##########################################
4685 4687
4686 @classmethod 4688 @classmethod
4687 def showNotification(cls, icon, heading, text, 4689 def showNotification(cls, icon, heading, text,
4688 kind=NotificationTypes.Information, timeout=None): 4690 kind=NotificationTypes.INFORMATION, timeout=None):
4689 """ 4691 """
4690 Class method to show a desktop notification. 4692 Class method to show a desktop notification.
4691 4693
4692 @param icon icon to be shown in the notification 4694 @param icon icon to be shown in the notification
4693 @type QPixmap 4695 @type QPixmap

eric ide

mercurial