Skip to content

Commit

Permalink
[PS] 'summarize by seg' and 'neg' can't go together!
Browse files Browse the repository at this point in the history
GUI changes. #801 (neg/pos) search type overrides the present summary option.
  • Loading branch information
stannam committed Apr 5, 2022
1 parent 4eec80c commit 19c9879
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions corpustools/gui/psgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,12 @@ def changeResultType(self, btn):
if btn.text() == 'Negative':
if btn.isChecked(): # 'negative' is checked
self.resultType = 'negative'

self.segsum.setChecked(False) # unselect the list-summary-result-by-seg option
self.segsum.setEnabled(False) # and grey it out
else: # 'negative' is deselected
self.resultType = 'positive'
self.segsum.setEnabled(True) # list-sum-res-by-seg option enabled

def changeMode(self, btn):
self.pslayout.removeWidget(self.envWidget)
Expand Down

0 comments on commit 19c9879

Please sign in to comment.