mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
* Expose INVALID_HANDLE_VALUE as mobase.INVALID_HANDLE_VALUE. * Add tests for startApplication() returning INVALID_HANDLE_VALUE. * Clean tests and generate stub files for them.
30 lines
666 B
Python
30 lines
666 B
Python
import mobase
|
|
|
|
|
|
class DummyPlugin(mobase.IPlugin):
|
|
def init(self, organizer: mobase.IOrganizer) -> bool:
|
|
return True
|
|
|
|
def author(self) -> str:
|
|
return "The Author"
|
|
|
|
def name(self) -> str:
|
|
return "The Name"
|
|
|
|
def description(self) -> str:
|
|
return "The Description"
|
|
|
|
def version(self) -> mobase.VersionInfo:
|
|
return mobase.VersionInfo("1.3.0")
|
|
|
|
def settings(self) -> list[mobase.PluginSetting]:
|
|
return [
|
|
mobase.PluginSetting(
|
|
"a setting", "the setting description", default_value=12
|
|
)
|
|
]
|
|
|
|
|
|
def createPlugin() -> mobase.IPlugin:
|
|
return DummyPlugin()
|