Skip to content

Commit

Permalink
Rm courser on fullscreen + fix flask route naming
Browse files Browse the repository at this point in the history
Signed-off-by: David Brenn <davidbrenn@t-online.de>
  • Loading branch information
David-Brenn committed Jun 23, 2024
1 parent ad31386 commit 8632c0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def imageTimer():
else:
return "Failed to set image timer", 500 # Return a 500 Internal Server Error response

@app.route('/rootImageFolder', methods=['POST', 'GET'])
@app.route('/root-image-folder', methods=['POST', 'GET'])
def rootImageFolder():
if request.method == 'GET':
return config.rootFolderPath
Expand Down
3 changes: 3 additions & 0 deletions nfcPictureFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def setupTKWindow(self):
self.root = tk.Tk()
self.root.title("NFC Picture Frame")
self.root.attributes("-fullscreen", True)
self.root.config(cursor="none")
self.root.bind("<Escape>", self.toggle_fullscreen)
self.root.configure(highlightthickness=0,highlightcolor="black",borderwidth=0,background="black")
self.screen_width = self.root.winfo_screenwidth()
Expand Down Expand Up @@ -347,9 +348,11 @@ def pickImage(self):
def toggle_fullscreen(self,event):
if(self.is_Fullscreen):
self.root.attributes("-fullscreen", False)
self.root.config(cursor="")
self.is_Fullscreen = False
else:
self.root.attributes("-fullscreen", True)
self.root.config(cursor="none")
self.is_Fullscreen = True


Expand Down

0 comments on commit 8632c0c

Please sign in to comment.