src/eric7/Preferences/ConfigurationPages/IconsPage.py

branch
eric7
changeset 10428
a071d4065202
parent 10278
e26fa3b06f4f
child 10439
21c28b0f9e41
equal deleted inserted replaced
10427:3733e2b23cf7 10428:a071d4065202
94 def on_iconDirectoryList_currentRowChanged(self, row): 94 def on_iconDirectoryList_currentRowChanged(self, row):
95 """ 95 """
96 Private slot to handle the currentRowChanged signal of the icons 96 Private slot to handle the currentRowChanged signal of the icons
97 directory list. 97 directory list.
98 98
99 @param row the current row (integer) 99 @param row the current row
100 @type int
100 """ 101 """
101 if row == -1: 102 if row == -1:
102 self.deleteIconDirectoryButton.setEnabled(False) 103 self.deleteIconDirectoryButton.setEnabled(False)
103 self.upButton.setEnabled(False) 104 self.upButton.setEnabled(False)
104 self.downButton.setEnabled(False) 105 self.downButton.setEnabled(False)
112 113
113 def on_iconDirectoryPicker_textChanged(self, txt): 114 def on_iconDirectoryPicker_textChanged(self, txt):
114 """ 115 """
115 Private slot to handle the textChanged signal of the directory picker. 116 Private slot to handle the textChanged signal of the directory picker.
116 117
117 @param txt the text of the directory picker (string) 118 @param txt the text of the directory picker
119 @type str
118 """ 120 """
119 self.addIconDirectoryButton.setEnabled(txt != "") 121 self.addIconDirectoryButton.setEnabled(txt != "")
120 self.showIconsButton.setEnabled( 122 self.showIconsButton.setEnabled(
121 txt != "" or self.iconDirectoryList.currentRow() != -1 123 txt != "" or self.iconDirectoryList.currentRow() != -1
122 ) 124 )
228 def create(dlg): # noqa: U100 230 def create(dlg): # noqa: U100
229 """ 231 """
230 Module function to create the configuration page. 232 Module function to create the configuration page.
231 233
232 @param dlg reference to the configuration dialog 234 @param dlg reference to the configuration dialog
233 @return reference to the instantiated page (ConfigurationPageBase) 235 @type ConfigurationDialog
236 @return reference to the instantiated page
237 @rtype ConfigurationPageBase
234 """ 238 """
235 page = IconsPage() 239 page = IconsPage()
236 return page 240 return page

eric ide

mercurial