context menu translations, bug fixes

This commit is contained in:
ingvar1995
2016-05-30 21:38:21 +03:00
parent b40c0a868b
commit 74d7c67d8c
4 changed files with 53 additions and 4 deletions

View File

@ -3,7 +3,7 @@
from menu import *
from profile import *
from list_items import *
from widgets import QRightClickButton, RubberBand
from widgets import QRightClickButton, RubberBand, create_menu
import plugin_support
@ -34,6 +34,11 @@ class MessageArea(QtGui.QPlainTextEdit):
self.timer.start(5000)
super(MessageArea, self).keyPressEvent(event)
def contextMenuEvent(self, event):
menu = create_menu(self.createStandardContextMenu())
menu.exec_(event.globalPos())
del menu
class MainWindow(QtGui.QMainWindow):