mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Show a nice error message when developing a widget with no develop()
method
This commit is contained in:
parent
51b940dad9
commit
01fb47f880
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user