[chirp_devel] [PATCH] tooltip-editor-tab completes # 8007

Rudolph Gutzerhagen
Wed Jun 24 11:03:00 PDT 2020


patch 2 of 2 for tooltips

(1) recent files

(2) editor tab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20200624/9e6461e3/attachment-0001.html 
-------------- next part --------------
# HG changeset patch
# User Rudolph Gutzerhagen <rudolph.gutzerhagen at gmail.com>
# Date 1593021408 14400
#      Wed Jun 24 13:56:48 2020 -0400
# Node ID 047d0c7465f59af7fae8637c576f021aafa0d476
# Parent  0c5db792de719d4f1c373df76bcf74a51e87fc0b
tooltip-editor-tab                completes # 8007
    o tooltip on editor notebook tab for full-path information.
      - aids in distinguishing entries with same short name.

diff --git a/chirp/ui/editorset.py b/chirp/ui/editorset.py
--- a/chirp/ui/editorset.py
+++ b/chirp/ui/editorset.py
@@ -168,6 +168,7 @@
         self.modified = (tempname is not None)
         if tempname:
             self.filename = tempname
+        self.tooltip_filename = None
         self.update_tab()
 
     def make_label(self):
@@ -199,6 +200,10 @@
             text = fn
 
         self.text_label.set_text(self.radio.get_name() + ": " + text)
+        if self.filename != self.tooltip_filename:
+            self.text_label.set_tooltip_text(self.filename)
+            self.tooltip_filename = self.filename
+
 
     def save(self, fname=None):
         if not fname:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tooltip-editor-tab--2020-06-24.patch.bin
Type: application/octet-stream
Size: 1098 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20200624/9e6461e3/attachment-0001.bin 


More information about the chirp_devel mailing list