Skip to content

Commit

Permalink
Query on enter bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ManjotSingh18 committed Aug 26, 2023
1 parent e2c9e1f commit 9c16ebc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def searcher(self):
pagesearch.bind("<FocusIn>", self.temp_text)
pagesearch.bind("<FocusOut>", self.temp_text2)
pagesearch.bind("<Return>", self.pagesearcher)
searchbox.bind("<Return>", lambda event: self.drawdata(self.frm1) )

#searchmessage.pack_propagate(True)
searchmessage.pack(fill="both", expand="True")
searchbox.pack(fill="x")
Expand Down Expand Up @@ -107,7 +109,8 @@ def params(self):

def drawdata(self, frames):
self.offset=0
self.data= home.apicall(self.frm0.winfo_children()[1].get("1.0","end-1c"), self.limits)
print(self.frm0.winfo_children()[1].get("1.0","end-1c"))
self.data= home.apicall(self.frm0.winfo_children()[1].get("1.0","end-1c").split("\n")[-1], self.limits)
self.move.clear()
counter=0
for i in range(0, len(self.data)):
Expand Down Expand Up @@ -201,4 +204,6 @@ def appy():
app= mainapp(root)
root.protocol("WM_DELETE_WINDOW", app.quit)
root.mainloop()
appy()

if __name__=='__main__':
appy()
Binary file added img/disc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/filtero.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9c16ebc

Please sign in to comment.