Commit 66507464 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Prepare for myty

parent d200ad68
......@@ -69,6 +69,12 @@ import Helper
import Pr
import CGenerator
# Enable mypy type checking
try:
from typing import List, Union, Dict, Set
except ImportError:
pass
try:
import stringtemplate3 # NOQA
except ImportError:
......@@ -112,7 +118,7 @@ MODULES = [
TextInteraction,
Connectors,
CGenerator,
]
] # type: List[module]
try:
import LlvmGenerator
......@@ -2094,6 +2100,7 @@ class OG_MainWindow(QtGui.QMainWindow, object):
def vi_command(self):
# type: () -> None
'''
Process a vi command as entered in the Vi command line
Supported commands:
......@@ -2131,7 +2138,7 @@ class OG_MainWindow(QtGui.QMainWindow, object):
# pylint: disable=C0103
def keyPressEvent(self, key_event):
''' Handle keyboard: Statechart rendering '''
''' Handle keyboard: Enable the vi command line '''
if key_event.key() == Qt.Key_Colon:
self.vi_bar.show()
self.vi_bar.setFocus()
......@@ -2157,6 +2164,7 @@ class OG_MainWindow(QtGui.QMainWindow, object):
LOG.debug('Bye bye!')
super(OG_MainWindow, self).closeEvent(event)
class FilterEvent(QtCore.QObject):
def eventFilter(self, obj, event):
''' Used to intercept the close event sent of the Mdi windows '''
......@@ -2274,7 +2282,7 @@ def generate(process, options):
def export(ast, options):
''' Export process '''
# Qt must be initialized before using SDL_Scene
init_qt()
_ = init_qt()
# Initialize the clipboard
Clipboard.CLIPBOARD = SDL_Scene(context='clipboard')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment