From 0a731bb4fe1f57064cff8d97bec3a5a9e9995681 Mon Sep 17 00:00:00 2001 From: Eric Blevins Date: Sun, 16 Jun 2024 11:54:21 -0400 Subject: [PATCH 1/3] Removed print statements --- src/pyefis/instruments/helpers/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pyefis/instruments/helpers/__init__.py b/src/pyefis/instruments/helpers/__init__.py index c4eae8d4..6c0c0104 100644 --- a/src/pyefis/instruments/helpers/__init__.py +++ b/src/pyefis/instruments/helpers/__init__.py @@ -26,7 +26,6 @@ def fit_to_mask(iwidth,iheight,mask,font,units_mask=None, units_ratio=0.8): # IF needed, shrink until it fits while ( (text_width + units_width > width) or text_height > height ) and font_size > 0.5: font_size -= 0.2 - print(f"too wide trying: {font_size} text_width:{text_width}, units_width:{units_width}, width:{width}") text_font.setPointSizeF(font_size) fm = QFontMetrics(text_font) text_width = fm.tightBoundingRect(mask).width() @@ -39,7 +38,6 @@ def fit_to_mask(iwidth,iheight,mask,font,units_mask=None, units_ratio=0.8): # If needed, grow until it fills while (text_width + units_width < width) and text_height < height: font_size += 0.2 - print(f"Not wide enough, trying {font_size} text_width:{text_width}, units_width:{units_width}, width:{width}") text_font.setPointSizeF(font_size) fm = QFontMetrics(text_font) text_width = fm.tightBoundingRect(mask).width() @@ -55,7 +53,6 @@ def fit_to_mask(iwidth,iheight,mask,font,units_mask=None, units_ratio=0.8): # The above took care of the width, this addresses the height: while (text_height >= height) and font_size > 0.5: font_size -= 0.2 - print(f"too high, trying {font_size} text_height:{text_height}, height:{height}") text_font.setPointSizeF(font_size) fm = QFontMetrics(text_font) text_width = fm.tightBoundingRect(mask).width() From 070a21df0a39d081c2e8c7f9f01f90cb9c3239f1 Mon Sep 17 00:00:00 2001 From: Eric Blevins Date: Sun, 16 Jun 2024 11:54:46 -0400 Subject: [PATCH 2/3] Updated MANIFEST.in for the src folder change --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 496b5f8c..42e58cfb 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -recursive-include pyefis/config * +recursive-include src/pyefis/config * From baa19decde32b8bc4b7d6da5ae6b6c6d0851edb1 Mon Sep 17 00:00:00 2001 From: Eric Blevins Date: Sun, 16 Jun 2024 11:56:58 -0400 Subject: [PATCH 3/3] Changed version to 2.0.21 --- src/pyefis/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyefis/__init__.py b/src/pyefis/__init__.py index d97f221c..aaf7950b 100644 --- a/src/pyefis/__init__.py +++ b/src/pyefis/__init__.py @@ -1,2 +1,2 @@ -__version__ = "2.0.20" +__version__ = "2.0.21"