# Path: ui/UIManager.py
# class UIManager(object):
#     def __init__(self):
#     def get_init_menu(self):
#     def add_menu(self, name):
#     def remove_menu(self, name):
#     def clear(self):
#     def add_view(self, view):


from idaapi import PluginForm, msg
from ui.UIManager import form_to_widget
# coding=utf-8
__author__ = 'Anatoli Kalysch'



class PluginViewer(PluginForm):
    def __init__(self, title):
        super(PluginViewer, self).__init__()
        self.title = title

    def Show(self, **kwargs):
        return PluginForm.Show(self, self.title, options=PluginForm.FORM_PERSIST)

    def OnCreate(self, form):
        # Get parent widget

# Path: ui/UIManager.py
# class UIManager(object):
#     def __init__(self):
#     def get_init_menu(self):
#     def add_menu(self, name):
#     def remove_menu(self, name):
#     def clear(self):
#     def add_view(self, view):


# Path: ui/PluginViewer.py
from idaapi import PluginForm, msg
from ui.UIManager import form_to_widget

# coding=utf-8
__author__ = 'Anatoli Kalysch'



class PluginViewer(PluginForm):
    def __init__(self, title):
        super(PluginViewer, self).__init__()
        self.title = title

    def Show(self, **kwargs):
        return PluginForm.Show(self, self.title, options=PluginForm.FORM_PERSIST)

    def OnCreate(self, form):
        # Get parent widget

        self.parent = form_to_widget(form)