【发布时间】:2016-11-10 11:05:36
【问题描述】:
我目前正在为 MySQL Workbench 编写一个插件,但是当我执行它时没有任何反应。 (没有错误)
代码:
from wb import *
import grt
import mforms
ModuleInfo = DefineModule(name= "Workbench Module", author= "OpenByte", version="1.0")
@ModuleInfo.plugin("openbyte.workbench_module", caption= "Workbench Module", input=[wbinputs.currentSQLEditor()], pluginMenu="SQL/Utilities")
@ModuleInfo.export(grt.INT, grt.classes.db_query_Editor)
def executeScript(editor):
editor.replaceContents("test")
return 0
【问题讨论】:
标签: python mysql plugins module mysql-workbench