src/eric7/Preferences/ConfigurationDialog.py

branch
eric7
changeset 10084
125166c6b66c
parent 10069
435cc5875135
child 10132
66c11ab8fefd
equal deleted inserted replaced
10083:62019277dd0a 10084:125166c6b66c
82 TRAYSTARTERMODE = 1 82 TRAYSTARTERMODE = 1
83 HEXEDITORMODE = 2 83 HEXEDITORMODE = 2
84 WEBBROWSERMODE = 3 84 WEBBROWSERMODE = 3
85 EDITORMODE = 4 85 EDITORMODE = 4
86 PDFVIEWERMODE = 5 86 PDFVIEWERMODE = 5
87 PIPMANAGERMODE = 6
87 88
88 89
89 class ConfigurationWidget(QWidget): 90 class ConfigurationWidget(QWidget):
90 """ 91 """
91 Class implementing a dialog for the configuration of eric. 92 Class implementing a dialog for the configuration of eric.
899 None, 900 None,
900 None, 901 None,
901 ], 902 ],
902 } 903 }
903 904
905 elif displayMode == ConfigurationMode.PIPMANAGERMODE:
906 self.configItems = {
907 # key : [display string, pixmap name, dialog module name or
908 # page creation function, parent key,
909 # reference to configuration page (must always be last)]
910 # The dialog module must have the module function 'create' to
911 # create the configuration page. This must have the method
912 # 'save' to save the settings.
913 "iconsPage": [
914 self.tr("Icons"),
915 "preferences-icons",
916 "IconsPage",
917 None,
918 None,
919 ],
920 "interfacePage": [
921 self.tr("Interface"),
922 "preferences-interface",
923 "InterfaceLightPage",
924 None,
925 None,
926 ],
927 "pipPage": [
928 self.tr("Python Package Management"),
929 "pypi",
930 "PipPage",
931 None,
932 None,
933 ],
934 }
935
904 else: 936 else:
905 # display mode for generic use 937 # display mode for generic use
906 self.configItems = { 938 self.configItems = {
907 # key : [display string, pixmap name, dialog module name or 939 # key : [display string, pixmap name, dialog module name or
908 # page creation function, parent key, 940 # page creation function, parent key,

eric ide

mercurial