eric6/UI/UserInterface.py

changeset 8268
6b8128e0c9d1
parent 8265
0090cfa83159
child 8273
698ae46f40a4
child 8282
16b243bdb12f
equal deleted inserted replaced
8267:6baca884c73a 8268:6b8128e0c9d1
58 58
59 from E5Network.E5NetworkProxyFactory import ( 59 from E5Network.E5NetworkProxyFactory import (
60 E5NetworkProxyFactory, proxyAuthenticationRequired 60 E5NetworkProxyFactory, proxyAuthenticationRequired
61 ) 61 )
62 try: 62 try:
63 from E5Network.E5SslErrorHandler import E5SslErrorHandler 63 from E5Network.E5SslErrorHandler import E5SslErrorHandler, E5SslErrorState
64 SSL_AVAILABLE = True 64 SSL_AVAILABLE = True
65 except ImportError: 65 except ImportError:
66 SSL_AVAILABLE = False 66 SSL_AVAILABLE = False
67 67
68 from eric6config import getConfig 68 from eric6config import getConfig
1026 """ 1026 """
1027 Private method to create the Sidebars layout. 1027 Private method to create the Sidebars layout.
1028 1028
1029 @param debugServer reference to the debug server object 1029 @param debugServer reference to the debug server object
1030 """ 1030 """
1031 from E5Gui.E5SideBar import E5SideBar 1031 from E5Gui.E5SideBar import E5SideBar, E5SideBarSide
1032 1032
1033 logging.debug("Creating Sidebars Layout...") 1033 logging.debug("Creating Sidebars Layout...")
1034 1034
1035 delay = Preferences.getUI("SidebarDelay") 1035 delay = Preferences.getUI("SidebarDelay")
1036 # Create the left sidebar 1036 # Create the left sidebar
1037 self.leftSidebar = E5SideBar(E5SideBar.West, delay) 1037 self.leftSidebar = E5SideBar(E5SideBarSide.WEST, delay)
1038 1038
1039 # Create the bottom sidebar 1039 # Create the bottom sidebar
1040 self.bottomSidebar = E5SideBar(E5SideBar.South, delay) 1040 self.bottomSidebar = E5SideBar(E5SideBarSide.SOUTH, delay)
1041 1041
1042 # Create the right sidebar 1042 # Create the right sidebar
1043 self.rightSidebar = E5SideBar(E5SideBar.East, delay) 1043 self.rightSidebar = E5SideBar(E5SideBarSide.EAST, delay)
1044 1044
1045 #################################################### 1045 ####################################################
1046 ## Populate the left side bar 1046 ## Populate the left side bar
1047 #################################################### 1047 ####################################################
1048 1048
7285 7285
7286 @param reply reference to the reply object (QNetworkReply) 7286 @param reply reference to the reply object (QNetworkReply)
7287 @param errors list of SSL errors (list of QSslError) 7287 @param errors list of SSL errors (list of QSslError)
7288 """ 7288 """
7289 ignored = self.__sslErrorHandler.sslErrorsReply(reply, errors)[0] 7289 ignored = self.__sslErrorHandler.sslErrorsReply(reply, errors)[0]
7290 if ignored == E5SslErrorHandler.NotIgnored: 7290 if ignored == E5SslErrorState.NOT_IGNORED:
7291 self.__downloadCancelled = True 7291 self.__downloadCancelled = True
7292 7292
7293 ####################################### 7293 #######################################
7294 ## Below are methods for various checks 7294 ## Below are methods for various checks
7295 ####################################### 7295 #######################################

eric ide

mercurial