mainPane.reset() resultsPane.reset() hide([mainMenu, tableMenu, inputBox]) if inTab == "Main Menu": mainMenu.unhide() elif inTab == "Tables": tableNames = db.getTables() tableMenu.setItems(tableNames) tableMenu.unhide() if len(tableNames) > 0: tableMenu.selectItem(tableNames[0]) mainPane.setResults(db.getTableInfo(tableMenu.getSelected())) mainPane.showResults(mainPane.getPageNum()) elif inTab == "Query": inputBox.unhide() elif inTab == "Search": inputBox.unhide() elif inTab == "Help": for b in helpButtons: b.unhide() b.selectOnlyItem(helpTab) helpWin.addstr(0, 0, getHelp(helpTab)) helpWin.refresh() # Be ready to capture a mouse click if mouseClick(): (mid, x, y, z, s) = curses.getmouse() # if the click in the tab bar at the top of the screen if y == 0: