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, |