From e3387dcb5d12379ed0732bf868147a755268a440 Mon Sep 17 00:00:00 2001 From: Valentino Artizzu Date: Tue, 3 Mar 2020 12:24:01 +0100 Subject: [PATCH] Fixes to README and code * Fixed missing window icon on "Title Required" dialog box * Added missing parenthesis on README.md --- README.md | 2 +- memos.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8396508..5707970 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ You can run the code without creating an .exe file, but unfortunately it won't s *** ### Usage -**Before using this application you have to retreive your Pebble timeline token** (you can install [this watchapp](https://apps.rebble.io/en_US/application/5d9ac26dc393f54d6b5f5445) on your Pebble - or search for "Generate Token" on the Rebble Store - and follow the instructions to get it and put it inside "token.txt" +**Before using this application you have to retreive your Pebble timeline token** (you can install [this watchapp](https://apps.rebble.io/en_US/application/5d9ac26dc393f54d6b5f5445) on your Pebble - or search for "Generate Token" on the Rebble Store - and follow the instructions to get it and put it inside "token.txt") Once it's there you can open the application and start sending pins! *** diff --git a/memos.py b/memos.py index 8bf51dc..2322637 100644 --- a/memos.py +++ b/memos.py @@ -230,7 +230,8 @@ def sendToTest(self): alert = QMessageBox() alert.setWindowTitle('Rebble Memos') icon = QtGui.QIcon() - icon.addPixmap(QtGui.QPixmap("memo.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) + # NOTE: Manually changed to resource_path() + icon.addPixmap(QtGui.QPixmap(resource_path("memo.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off) alert.setWindowIcon(icon) alert.setText("Title required. \nPlease insert one and try again") alert.setMinimumWidth(500)