summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/PyncheWidget.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/pynche/PyncheWidget.py')
-rw-r--r--Tools/pynche/PyncheWidget.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Tools/pynche/PyncheWidget.py b/Tools/pynche/PyncheWidget.py
index 364f22b..ef12198 100644
--- a/Tools/pynche/PyncheWidget.py
+++ b/Tools/pynche/PyncheWidget.py
@@ -281,10 +281,14 @@ class PopupViewer:
self.__window.deiconify()
def __eq__(self, other):
- return self.__menutext == other.__menutext
+ if isinstance(self, PopupViewer):
+ return self.__menutext == other.__menutext
+ return NotImplemented
def __lt__(self, other):
- return self.__menutext < other.__menutext
+ if isinstance(self, PopupViewer):
+ return self.__menutext < other.__menutext
+ return NotImplemented
def make_view_popups(switchboard, root, extrapath):