Skip to content

Commit

Permalink
negative search radio button
Browse files Browse the repository at this point in the history
  • Loading branch information
stannam committed May 19, 2022
1 parent adfb9a7 commit 845a0f9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions corpustools/gui/psgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,8 @@ def changeMode(self, btn):
if btn.text() == 'Syllables':
if btn.isChecked(): # sylMode is checked
self.mode = 'sylMode'
self.resultTypeGroup.widgets[1].setEnabled(False) # disable 'negative search' in result type
if self.resultTypeGroup.widgets[1].isChecked(): # if 'negative search' has been previously selected.
self.resultTypeGroup.widgets[1].setChecked(False) # then uncheck 'negative search'
self.resultTypeGroup.widgets[0].setChecked(True) # and check 'positive search'
else: # sylMode is deselected
self.mode = 'segMode'
self.resultTypeGroup.widgets[1].setEnabled(True) # enable 'negative search' in result type
self.envWidget = PSEnvironmentSelectWidget(self.inventory,
show_full_inventory=bool(self.settings['show_full_inventory']),
mode=self.mode,
Expand Down

0 comments on commit 845a0f9

Please sign in to comment.