From 0acdf41fa35343d9db65a268b345f259ce9fcdac Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sat, 26 Jan 2019 07:11:11 -0600 Subject: [PATCH] Switched to a proper context menu handler --- src/controller/buffers.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controller/buffers.py b/src/controller/buffers.py index 6b4115f..5ca8d37 100644 --- a/src/controller/buffers.py +++ b/src/controller/buffers.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- """ A buffer is a (virtual) list of items. All items belong to a category (wall posts, messages, persons...)""" -from __future__ import unicode_literals import time import random import logging @@ -181,8 +180,7 @@ class baseBuffer(object): """ Bind all events to this buffer""" widgetUtils.connect_event(self.tab.post, widgetUtils.BUTTON_PRESSED, self.post) widgetUtils.connect_event(self.tab.list.list, widgetUtils.KEYPRESS, self.get_event) - widgetUtils.connect_event(self.tab.list.list, wx.EVT_LIST_ITEM_RIGHT_CLICK, self.show_menu) - widgetUtils.connect_event(self.tab.list.list, wx.EVT_LIST_KEY_DOWN, self.show_menu_by_key) + widgetUtils.connect_event(self.tab.list.list, wx.EVT_CONTEXT_MENU, self.show_menu) self.tab.set_focus_function(self.onFocus) def show_menu(self, ev, pos=0, *args, **kwargs):