Exemple #1
0
 def setUp(self):
     super().setUp()
     reg = WidgetRegistry()
     reg.register_widget(
         WidgetDescription(**Widget.get_widget_description()))
     self.w = SchemeEditWidget()
     self.w.setRegistry(reg)
     self.w.resize(300, 300)
     self.w.setScheme(WidgetsScheme())
     self.w.setDropHandlers([PluginDropHandler()])
def registry():
    reg = WidgetRegistry()
    reg.register_widget(WidgetDescription(**Number.get_widget_description()))
    reg.register_widget(WidgetDescription(**Adder.get_widget_description()))
    reg.register_widget(
        WidgetDescription(**AdderAync.get_widget_description()))
    reg.register_widget(WidgetDescription(**Show.get_widget_description()))
    return reg