From 81d5a96fb4ddbdde8997a41692f128d521805a3f Mon Sep 17 00:00:00 2001 From: Jonathan Washington Date: Tue, 13 Oct 2020 15:45:11 -0400 Subject: [PATCH] installation instructions for macOS and interface sizing tweak --- README.md | 13 +++++++++++++ ultratrace/__main__.py | 5 ++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 148c18b..dc39e8c 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,19 @@ This is a tool for [currently] manual annotation of UTI (Ultrasound Tongue Imagi ## Installation +### macOS + +1. Install [Homebrew](https://brew.sh). +2. Download the UltraTrace source code, e.g. using `git`. +3. Use Homebrew to install python3: +```bash +$ brew install python3 +``` +4. Run setup in the UltraTrace directory: +```bash +$ python3 setup.py install +``` + ## Use ```bash diff --git a/ultratrace/__main__.py b/ultratrace/__main__.py index 7013abe..a782ea8 100755 --- a/ultratrace/__main__.py +++ b/ultratrace/__main__.py @@ -124,7 +124,10 @@ def setWidgetDefaults(self): # some styling self.fontStyle = Style() - self.fontStyle.configure('symbol.TButton', font=('DejaVu Serif', 20)) + if util.get_platform() == 'Darwin': + self.fontStyle.configure('symbol.TButton', font=('DejaVu Serif', 26)) + else: + self.fontStyle.configure('symbol.TButton', font=('DejaVu Serif', 26)) # declare string variables self.currentFileSV = StringVar(self)