 Krita 5.2 ManualPython Plugin Manager. Krita python plugins need to be python modules, so make sure there’s an __init__.py script, containing something like… from .myplugin import * Where .myplugin is the name of the file called myplugin.desktop in the myplugin folder create a file called __init__.py a file called myplugin.py in the __init__.py file put this code: from .myplugin import * in the desktop file put class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self):0 码力 | 1502 页 | 79.07 MB | 1 年前3 Krita 5.2 ManualPython Plugin Manager. Krita python plugins need to be python modules, so make sure there’s an __init__.py script, containing something like… from .myplugin import * Where .myplugin is the name of the file called myplugin.desktop in the myplugin folder create a file called __init__.py a file called myplugin.py in the __init__.py file put this code: from .myplugin import * in the desktop file put class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self):0 码力 | 1502 页 | 79.07 MB | 1 年前3
 Krita 5.2 브로셔Python Plugin Manager. Krita python plugins need to be python modules, so make sure there’s an __init__.py script, containing something like… from .myplugin import * Where .myplugin is the name of the file called myplugin.desktop in the myplugin folder create a file called __init__.py a file called myplugin.py in the __init__.py file put this code: from .myplugin import * in the desktop file put class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self):0 码力 | 1531 页 | 79.11 MB | 1 年前3 Krita 5.2 브로셔Python Plugin Manager. Krita python plugins need to be python modules, so make sure there’s an __init__.py script, containing something like… from .myplugin import * Where .myplugin is the name of the file called myplugin.desktop in the myplugin folder create a file called __init__.py a file called myplugin.py in the __init__.py file put this code: from .myplugin import * in the desktop file put class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self):0 码力 | 1531 页 | 79.11 MB | 1 年前3
 Krita 4.x 官方文档中文版 2021-08-06APython 插件管理器中显⽰的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含 ⼀个 __init__.py 脚本,该脚本包含下⾯这⾏代码: from .myplugin import * .myplugin 字串⽤来指定插件的主程序⽂件名。按照上⾯的介绍制 作⼀个插件放到 Krita 的资源⽂件夹,然后重新启动 创建⼀个名为 myplugin 的⽂件夹 创建⼀个名为 myplugin.desktop 的⽂件 在 myplugin ⽂件夹⾥⾯ 创建⼀个名为 __init__.py 的⽂件 创建⼀个名为 myplugin.py 的⽂件 在 __init__.py ⽂件⾥放置这⾏代码: from .myplugin import * 在 desktop ⽂件⾥放置这段代码: [Desktop Entry] class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self):0 码力 | 1594 页 | 110.95 MB | 1 年前3 Krita 4.x 官方文档中文版 2021-08-06APython 插件管理器中显⽰的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含 ⼀个 __init__.py 脚本,该脚本包含下⾯这⾏代码: from .myplugin import * .myplugin 字串⽤来指定插件的主程序⽂件名。按照上⾯的介绍制 作⼀个插件放到 Krita 的资源⽂件夹,然后重新启动 创建⼀个名为 myplugin 的⽂件夹 创建⼀个名为 myplugin.desktop 的⽂件 在 myplugin ⽂件夹⾥⾯ 创建⼀个名为 __init__.py 的⽂件 创建⼀个名为 myplugin.py 的⽂件 在 __init__.py ⽂件⾥放置这⾏代码: from .myplugin import * 在 desktop ⽂件⾥放置这段代码: [Desktop Entry] class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self):0 码力 | 1594 页 | 110.95 MB | 1 年前3
 Krita 4.x 官方文档中文版 2021-08-06APython 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含一个 __init__.py 脚本,该脚本包含下面这行代码: from .myplugin import * .myplugin 字串用来指定插件的主程序文件名。按照上面的介绍制作一个插件 放到 Krita 的资源文件夹,然后重新启动 创建一个名为 myplugin 的文件夹 创建一个名为 myplugin.desktop 的文件 在 myplugin 文件夹里面 创建一个名为 __init__.py 的文件 创建一个名为 myplugin.py 的文件 在 __init__.py 文件里放置这行代码: from .myplugin import * 在 desktop 文件里放置这段代码: [Desktop Entry] class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self): pass0 码力 | 1373 页 | 74.74 MB | 1 年前3 Krita 4.x 官方文档中文版 2021-08-06APython 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含一个 __init__.py 脚本,该脚本包含下面这行代码: from .myplugin import * .myplugin 字串用来指定插件的主程序文件名。按照上面的介绍制作一个插件 放到 Krita 的资源文件夹,然后重新启动 创建一个名为 myplugin 的文件夹 创建一个名为 myplugin.desktop 的文件 在 myplugin 文件夹里面 创建一个名为 __init__.py 的文件 创建一个名为 myplugin.py 的文件 在 __init__.py 文件里放置这行代码: from .myplugin import * 在 desktop 文件里放置这段代码: [Desktop Entry] class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self): pass0 码力 | 1373 页 | 74.74 MB | 1 年前3
 Krita 5.2 中文手册Python 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含一个 __init__.py 脚本,该脚本包含下面这行代码: from .myplugin import * .myplugin 字串用来指定插件的主程序文件名。按照上面的介绍制作一个插件 放到 Krita 的资源文件夹,然后重新启动 创建一个名为 myplugin 的文件夹 创建一个名为 myplugin.desktop 的文件 在 myplugin 文件夹里面 创建一个名为 __init__.py 的文件 创建一个名为 myplugin.py 的文件 在 __init__.py 文件里加入这行代码: from .myplugin import * 在 desktop 文件里放置这段代码: [Desktop Entry] class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self):0 码力 | 1594 页 | 79.20 MB | 1 年前3 Krita 5.2 中文手册Python 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含一个 __init__.py 脚本,该脚本包含下面这行代码: from .myplugin import * .myplugin 字串用来指定插件的主程序文件名。按照上面的介绍制作一个插件 放到 Krita 的资源文件夹,然后重新启动 创建一个名为 myplugin 的文件夹 创建一个名为 myplugin.desktop 的文件 在 myplugin 文件夹里面 创建一个名为 __init__.py 的文件 创建一个名为 myplugin.py 的文件 在 __init__.py 文件里加入这行代码: from .myplugin import * 在 desktop 文件里放置这段代码: [Desktop Entry] class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self):0 码力 | 1594 页 | 79.20 MB | 1 年前3
 Krita 5.2 官方文档中文版 2023-12-08APython 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含 一个 _�init_�.py 脚本,该脚本包含下面这行代码: from .myplugin import * .myplugin 字串用来指定插件的主程序文件名。按照上面的介绍制 作一个插件放到 Krita 的资源文件夹,然后重新启动 创建一个名为 myplugin 的文件夹 创建一个名为 myplugin.desktop 的文件 在 myplugin 文件夹里面 创建一个名为 _�init_�.py 的文件 创建一个名为 myplugin.py 的文件 在 _�init_�.py 文件里加入这行代码: from .myplugin import * 在 desktop 文件里放置这段代码: [Desktop Entry] class MyExtension(Extension): def _�init_�(self, parent): # This is initialising the parent, always important when subclassing. super()._�init_�(parent) def setup(self): pass0 码力 | 1685 页 | 91.87 MB | 1 年前3 Krita 5.2 官方文档中文版 2023-12-08APython 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含 一个 _�init_�.py 脚本,该脚本包含下面这行代码: from .myplugin import * .myplugin 字串用来指定插件的主程序文件名。按照上面的介绍制 作一个插件放到 Krita 的资源文件夹,然后重新启动 创建一个名为 myplugin 的文件夹 创建一个名为 myplugin.desktop 的文件 在 myplugin 文件夹里面 创建一个名为 _�init_�.py 的文件 创建一个名为 myplugin.py 的文件 在 _�init_�.py 文件里加入这行代码: from .myplugin import * 在 desktop 文件里放置这段代码: [Desktop Entry] class MyExtension(Extension): def _�init_�(self, parent): # This is initialising the parent, always important when subclassing. super()._�init_�(parent) def setup(self): pass0 码力 | 1685 页 | 91.87 MB | 1 年前3
 Krita 5.2 官方文档中文版 2023-12-08APython 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含一个 __init__.py 脚本,该脚本包含下面这行代码: from .myplugin import * .myplugin 字串用来指定插件的主程序文件名。按照上面的介绍制作一个插件 放到 Krita 的资源文件夹,然后重新启动 创建一个名为 myplugin 的文件夹 创建一个名为 myplugin.desktop 的文件 在 myplugin 文件夹里面 创建一个名为 __init__.py 的文件 创建一个名为 myplugin.py 的文件 在 __init__.py 文件里加入这行代码: from .myplugin import * 在 desktop 文件里放置这段代码: [Desktop Entry] class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self): pass0 码力 | 1562 页 | 79.19 MB | 1 年前3 Krita 5.2 官方文档中文版 2023-12-08APython 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含一个 __init__.py 脚本,该脚本包含下面这行代码: from .myplugin import * .myplugin 字串用来指定插件的主程序文件名。按照上面的介绍制作一个插件 放到 Krita 的资源文件夹,然后重新启动 创建一个名为 myplugin 的文件夹 创建一个名为 myplugin.desktop 的文件 在 myplugin 文件夹里面 创建一个名为 __init__.py 的文件 创建一个名为 myplugin.py 的文件 在 __init__.py 文件里加入这行代码: from .myplugin import * 在 desktop 文件里放置这段代码: [Desktop Entry] class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self): pass0 码力 | 1562 页 | 79.19 MB | 1 年前3
 Krita 5.1 官方文档中文版 2023-05-26APython 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含一个 __init__.py 脚本,该脚本包含下面这行代码: from .myplugin import * .myplugin 字串用来指定插件的主程序文件名。按照上面的介绍制作一个插件 放到 Krita 的资源文件夹,然后重新启动 创建一个名为 myplugin 的文件夹 创建一个名为 myplugin.desktop 的文件 在 myplugin 文件夹里面 创建一个名为 __init__.py 的文件 创建一个名为 myplugin.py 的文件 在 __init__.py 文件里加入这行代码: from .myplugin import * 在 desktop 文件里放置这段代码: [Desktop Entry] class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self): pass0 码力 | 1547 页 | 78.22 MB | 1 年前3 Krita 5.1 官方文档中文版 2023-05-26APython 插件管理器中显示的名称。 Comment 插件在 Python 插件管理器中的描述。 Krita 的 Python 插件必须是 Python 模块,因此每个插件都要包含一个 __init__.py 脚本,该脚本包含下面这行代码: from .myplugin import * .myplugin 字串用来指定插件的主程序文件名。按照上面的介绍制作一个插件 放到 Krita 的资源文件夹,然后重新启动 创建一个名为 myplugin 的文件夹 创建一个名为 myplugin.desktop 的文件 在 myplugin 文件夹里面 创建一个名为 __init__.py 的文件 创建一个名为 myplugin.py 的文件 在 __init__.py 文件里加入这行代码: from .myplugin import * 在 desktop 文件里放置这段代码: [Desktop Entry] class MyExtension(Extension): def __init__(self, parent): # This is initialising the parent, always important when subclassing. super().__init__(parent) def setup(self): pass0 码力 | 1547 页 | 78.22 MB | 1 年前3
 Krita 5.2 マニュアル
プラグインの説明。これは Python プラグインマネージャに表示されま す。 Krita の Python プラグインは Python のモジュールである必要があります。 したがって以下のようなものを含む、__init__.py スクリプトが存在する必 要があります。 from .myplugin import * ここで、.myplugin はプラグインのメインファイルの名前です。Krita を再起 動すると、設定にある ディレクトリ内に作成 myplugin という名前のフォルダ myplugin.desktop という名前のファイル myplugin フォルダ内に作成 __init__.py という名前のファイル myplugin.py という名前のファイル __init__.py ファイルに以下のコードを含める: from .myplugin import * desktop ファイルに以下のコードを含める: from krita import * class MyExtension(Extension): def __init__(self, parent): # これは親クラスを初期化します。サブクラス化の際に重要です。 super().__init__(parent) def setup(self): pass def createActions(self0 码力 | 1591 页 | 79.16 MB | 1 年前3 Krita 5.2 マニュアル
プラグインの説明。これは Python プラグインマネージャに表示されま す。 Krita の Python プラグインは Python のモジュールである必要があります。 したがって以下のようなものを含む、__init__.py スクリプトが存在する必 要があります。 from .myplugin import * ここで、.myplugin はプラグインのメインファイルの名前です。Krita を再起 動すると、設定にある ディレクトリ内に作成 myplugin という名前のフォルダ myplugin.desktop という名前のファイル myplugin フォルダ内に作成 __init__.py という名前のファイル myplugin.py という名前のファイル __init__.py ファイルに以下のコードを含める: from .myplugin import * desktop ファイルに以下のコードを含める: from krita import * class MyExtension(Extension): def __init__(self, parent): # これは親クラスを初期化します。サブクラス化の際に重要です。 super().__init__(parent) def setup(self): pass def createActions(self0 码力 | 1591 页 | 79.16 MB | 1 年前3
共 9 条
- 1














