dabo Commit
Revision 6826
Date: 2011-09-06 16:25:48 -0700 (Tue, 06 Sep 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6826

Changed:
U   trunk/dabo/ui/uiwx/dHyperLink.py

Log:
My change from a couple days ago to suppress the default popup menu didn't work 
on Windows. This should work for all platforms.

Diff:
Modified: trunk/dabo/ui/uiwx/dHyperLink.py
===================================================================
--- trunk/dabo/ui/uiwx/dHyperLink.py    2011-09-06 20:43:02 UTC (rev 6825)
+++ trunk/dabo/ui/uiwx/dHyperLink.py    2011-09-06 23:25:48 UTC (rev 6826)
@@ -29,20 +29,16 @@
                self.ShowHover = self.ShowHover
 
                self.Bind(hyperlink.EVT_HYPERLINK_LEFT, self._onWxHit)  ## only 
called if ShowInBrowser False
-               self.bindEvent(dabo.dEvents.MouseRightClick, 
self._onMouseRightClick)
+               self.DoPopup(False)
 
 
+
        def refresh(self):
                super(dHyperLink, self).refresh()
                self.UpdateLink(True)
 
+       
 
-       def _onMouseRightClick(self, evt):
-               if not self.ShowInBrowser:
-                       ## hide the popup menu with "copy hyperlink" action
-                       evt.stop()
-
-
        def _setColors(self):
                """Updated the link with the specified colors."""
                lc, vc, rc = self.LinkColor, self.VisitedColor, self.HoverColor
@@ -201,6 +197,7 @@
        def _onHit(self, evt):
                print "hit"
 
+       
        def afterInit(self):
                self.Caption = "The Dabo Wiki"
                self.FontSize = 24



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to