Show a nice error message when developing a widget with no develop()

method
This commit is contained in:
Kovid Goyal 2016-09-25 18:18:39 +05:30
parent 51b940dad9
commit 01fb47f880

View File

@ -116,6 +116,8 @@ class DevelopPanel:
m = get_module(m)
if m?.develop:
m.develop(self.container)
else:
self.container.textContent = 'The module {} either does not exist or has no develop method.'.format(q.widget_module)
class UI: