Skip to content

Commit 3217c7e

Browse files
author
Sam Fries
committed
Fixed tooltip for non-darwin
1 parent 5ac3ea0 commit 3217c7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Packages/vcs/Lib/editors/marker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, interactor, marker, index, display, configurator):
6363
prop.SetBackgroundOpacity(1)
6464
prop.SetColor(0, 0, 0)
6565

66-
self.tooltip = vtk_ui.Label(self.interactor, "%s + Click to place new markers." % "Cmd" if sys.platform == "darwin" else "Ctrl", textproperty=prop)
66+
self.tooltip = vtk_ui.Label(self.interactor, "%s + Click to place new markers." % ("Cmd" if sys.platform == "darwin" else "Ctrl"), textproperty=prop)
6767
self.tooltip.left = 0
6868
self.tooltip.top = self.interactor.GetRenderWindow().GetSize()[1] - self.tooltip.get_dimensions()[1]
6969
self.tooltip.show()

Packages/vcs/Lib/editors/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, interactor, text, index, dp, configurator):
5959
prop.SetBackgroundColor(.87, .79, .55)
6060
prop.SetBackgroundOpacity(1)
6161
prop.SetColor(0, 0, 0)
62-
self.tooltip = Label(self.interactor, "%s + Click to place new text." % "Cmd" if sys.platform == "darwin" else "Ctrl", textproperty=prop)
62+
self.tooltip = Label(self.interactor, "%s + Click to place new text." % ("Cmd" if sys.platform == "darwin" else "Ctrl"), textproperty=prop)
6363
self.tooltip.left = 0
6464
self.tooltip.top = self.interactor.GetRenderWindow().GetSize()[1] - self.tooltip.get_dimensions()[1]
6565
self.tooltip.show()

0 commit comments

Comments
 (0)