chiark / gitweb /
Removed ToolTip, only popup used right now
authorFerdi van der Werf <efcm@vdwerf.eu>
Thu, 12 Apr 2012 22:11:11 +0000 (00:11 +0200)
committerFerdi van der Werf <efcm@vdwerf.eu>
Thu, 12 Apr 2012 22:11:11 +0000 (00:11 +0200)
Cura/gui/preview3d.py

index 951dd9ac69b53a2bd1413a6399f92698026f2569..425655a0fcf1bed73c47f4fcc44ffc722cfc02b1 100644 (file)
@@ -78,7 +78,7 @@ class previewPanel(wx.Panel):
                self.mirrorX = buttons.GenBitmapToggleButton(self.toolbar2, -1, wx.Bitmap('Cura/images/object-mirror-x.png'), size=(20,20))\r
                self.mirrorX.SetBezelWidth(1)\r
                self.mirrorX.SetUseFocusIndicator(False)\r
-               self.mirrorX.SetToolTip(wx.ToolTip('Mirror X'))\r
+               self.mirrorX.helpText = 'Mirror X'\r
                self.mirrorX.Bind(wx.EVT_ENTER_WINDOW, self.OnPopupDisplay)\r
                self.mirrorX.Bind(wx.EVT_LEAVE_WINDOW, self.OnPopupHide)\r
                self.mirrorX.SetValue(profile.getProfileSetting('flip_x') == 'True')\r
@@ -87,7 +87,7 @@ class previewPanel(wx.Panel):
                self.mirrorY = buttons.GenBitmapToggleButton(self.toolbar2, -1, wx.Bitmap('Cura/images/object-mirror-y.png'), size=(20,20))\r
                self.mirrorY.SetBezelWidth(1)\r
                self.mirrorY.SetUseFocusIndicator(False)\r
-               self.mirrorY.SetToolTip(wx.ToolTip('Mirror Y'))\r
+               self.mirrorY.helpText = 'Mirror Y'\r
                self.mirrorY.Bind(wx.EVT_ENTER_WINDOW, self.OnPopupDisplay)\r
                self.mirrorY.Bind(wx.EVT_LEAVE_WINDOW, self.OnPopupHide)\r
                self.mirrorY.SetValue(profile.getProfileSetting('flip_y') == 'True')\r
@@ -96,7 +96,7 @@ class previewPanel(wx.Panel):
                self.mirrorZ = buttons.GenBitmapToggleButton(self.toolbar2, -1, wx.Bitmap('Cura/images/object-mirror-z.png'), size=(20,20))\r
                self.mirrorZ.SetBezelWidth(1)\r
                self.mirrorZ.SetUseFocusIndicator(False)\r
-               self.mirrorZ.SetToolTip(wx.ToolTip('Mirror Z'))\r
+               self.mirrorZ.helpText = 'Mirror Z'\r
                self.mirrorZ.Bind(wx.EVT_ENTER_WINDOW, self.OnPopupDisplay)\r
                self.mirrorZ.Bind(wx.EVT_LEAVE_WINDOW, self.OnPopupHide)\r
                self.mirrorZ.SetValue(profile.getProfileSetting('flip_z') == 'True')\r
@@ -108,7 +108,7 @@ class previewPanel(wx.Panel):
                self.swapXZ = buttons.GenBitmapToggleButton(self.toolbar2, -1, wx.Bitmap('Cura/images/object-swap-xz.png'), size=(20,20))\r
                self.swapXZ.SetBezelWidth(1)\r
                self.swapXZ.SetUseFocusIndicator(False)\r
-               self.swapXZ.SetToolTip(wx.ToolTip('Swap XZ'))\r
+               self.swapXZ.helpText = 'Swap XZ'\r
                self.swapXZ.Bind(wx.EVT_ENTER_WINDOW, self.OnPopupDisplay)\r
                self.swapXZ.Bind(wx.EVT_LEAVE_WINDOW, self.OnPopupHide)\r
                self.swapXZ.SetValue(profile.getProfileSetting('swap_xz') == 'True')\r
@@ -118,7 +118,7 @@ class previewPanel(wx.Panel):
                self.swapYZ = buttons.GenBitmapToggleButton(self.toolbar2, -1, wx.Bitmap('Cura/images/object-swap-yz.png'), size=(20,20))\r
                self.swapYZ.SetBezelWidth(1)\r
                self.swapYZ.SetUseFocusIndicator(False)\r
-               self.swapYZ.SetToolTip(wx.ToolTip('Swap YZ'))\r
+               self.swapYZ.helpText = 'Swap YZ'\r
                self.swapYZ.Bind(wx.EVT_ENTER_WINDOW, self.OnPopupDisplay)\r
                self.swapYZ.Bind(wx.EVT_LEAVE_WINDOW, self.OnPopupHide)\r
                self.swapYZ.SetValue(profile.getProfileSetting('swap_yz') == 'True')\r
@@ -171,7 +171,7 @@ class previewPanel(wx.Panel):
                self.popup.Show(False)\r
        \r
        def UpdatePopup(self, control):\r
-               self.popup.text.SetLabel(control.GetToolTip().GetTip())\r
+               self.popup.text.SetLabel(control.helpText)\r
                self.popup.text.Wrap(350)\r
                self.popup.Fit();\r
                if os.name == 'darwin':\r