Skip to content

Commit

Permalink
UI: Remove semantic search button and rename instruction search button
Browse files Browse the repository at this point in the history
Semantic search has never worked since the very start.
Plan to combine #4, #21 and #86 with the general search functionality.
  • Loading branch information
daniellimws committed Mar 13, 2018
1 parent 54a6f43 commit 253f83c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
6 changes: 1 addition & 5 deletions ropa/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,13 @@ def _init_list_widgets(self):

def _init_buttons(self):
instructions_button_widget = self.findChild(qg.QPushButton,
'searchInstructions')
'search')
self.instructions_button = IBController(self,
instructions_button_widget)
poppopret_button_widget = self.findChild(qg.QPushButton,
'searchPopPopRet')
self.poppopret_button = PBController(self,
poppopret_button_widget)
semantics_button_widget = self.findChild(qg.QPushButton,
'searchSemantics')
self.semantics_button = SBController(self,
semantics_button_widget)

def _init_text_inputs(self):
filter_input = self.findChild(qg.QLineEdit, 'searchBar')
Expand Down
19 changes: 2 additions & 17 deletions ropa/ui/scene.ui
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@
<item>
<layout class="QHBoxLayout" name="searchButtons">
<item>
<widget class="QPushButton" name="searchInstructions">
<widget class="QPushButton" name="search">
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="text">
<string>Instructions</string>
<string>Search</string>
</property>
<property name="checked">
<bool>false</bool>
Expand All @@ -203,21 +203,6 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="searchSemantics">
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="text">
<string>Semantics</string>
</property>
<property name="autoRepeat">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
Expand Down

0 comments on commit 253f83c

Please sign in to comment.