NativeLib.py
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 18 Apr 2016 19:08:29 +0300
changeset 1480 79e54c5dead5
parent 944 52a17be9c4d1
child 1511 91538d0c242c
permissions -rw-r--r--
fix issue, then it wasn't possible to remove functional blocks from
project using right click and popup menu.

The problem is that, PopupMenu was called using IDEFrame object and as
a result item in ProjectTree loosed focus and focus went to IDEFrame.
Therefore later functions couldn't detect which item in ProjectTree
was selected.
import os
from POULibrary import POULibrary

class NativeLibrary(POULibrary):
    def GetLibraryPath(self):
        return os.path.join(os.path.split(__file__)[0], "NativeLib.xml")