Skip to content

Commit

Permalink
improve messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdamusic committed Jan 3, 2021
1 parent 5a86821 commit aa1b837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# !/usr/bin/env python
# -*- coding: UTF-8 -*-

__version__ = "0.5.2"
__version__ = "0.5.3"
__copyright__ = "CopyRight (C) 2020 by Michele Pasin"
__license__ = "MIT"
__author__ = "Michele Pasin"
Expand Down
6 changes: 3 additions & 3 deletions quickdimensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ def url_safe(s):
def identifier_menu_builder(nicetitle, MENU_DICT):
"Reusable code to build menus from an Ordered Dict of identifiers fields"
menu = rumps.MenuItem(nicetitle)
MESSAGE = """Enter an identifier (clipboard pasted automatically)"""
SUBTITLE = """Note: clipboard contents are pasted automatically below."""
for title, value in MENU_DICT.items():
def cb(sender):
# print(sender.value)
clp = get_clipboard()
window = rumps.Window(message=MESSAGE, title=f'{title}: {sender.title}', default_text=clp, ok="Go!", cancel=True)
window = rumps.Window(message=SUBTITLE, title=f'Enter a {nicetitle} {sender.title}', default_text=clp, ok="Go!", cancel=True)
window.icon = "dimensions.icns"
response = window.run()
if response.clicked:
Expand Down Expand Up @@ -217,7 +217,7 @@ def _about_submenu(self, _):
"About popup"
window = rumps.Window(message=f"Version: {VERSION}", title='About QuickDimensions', ok="View on Github", cancel="Back")
window.icon = self.icon
window.default_text = """Quick-Dimensions is an unofficial OSx menu bar app that makes it easier to access the Dimensions.ai, a large database of scientific research objects including publications, patents, datasets etc..\n\nFor more information see the Github repository and add a star too, if you feel like it!"""
window.default_text = """QuickDimensions is an unofficial Mac OS menu bar launcher for the Dimensions research database.\n\nFor more information see the Github repository."""

response = window.run()
if response.clicked:
Expand Down

0 comments on commit aa1b837

Please # to comment.