Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamilburda/gimp-missing-python-stubs-for-pycharm
Python Stubs for Several GIMP Modules Not Generated by PyCharm
https://github.com/kamilburda/gimp-missing-python-stubs-for-pycharm
gimp pycharm
Last synced: about 2 months ago
JSON representation
Python Stubs for Several GIMP Modules Not Generated by PyCharm
- Host: GitHub
- URL: https://github.com/kamilburda/gimp-missing-python-stubs-for-pycharm
- Owner: kamilburda
- Created: 2023-08-19T06:16:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-04T22:02:40.000Z (2 months ago)
- Last Synced: 2024-11-04T22:30:34.916Z (2 months ago)
- Topics: gimp, pycharm
- Language: Python
- Homepage:
- Size: 229 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# PyCharm stubs for GIMP 3 Python Modules
PyCharm can automatically generate Python stub files for GIMP 3 binary modules such as `gi.repository.GimpUi`, `gi.repository.Gtk` and many more to provide code completion suggestions when developing Python plug-ins for GIMP 3.
However, PyCharm currently fails to generate modules for `gi.repository.Gimp` and `gi.repository.cairo` modules (the former being the most important module for plug-in development). I worked around the problem by modifying the source code responsible for generating PyCharm stubs to ignore any exceptions along the process (which causes the problematic constants to be omitted in the stubs).
This repository contains the missing stubs for `gi.repository.Gimp` and `gi.repository.cairo` modules.
## Installation
Download the repository and copy the `cairo` and `Gimp` directories to a PyCharm directory containing other generated stubs for GIMP 3 under the `gi/repository` directory.
Assuming you added GIMP Python modules to your Python interpreter in PyCharm, you can find the path as follows:
1. Go to your PyCharm project and display the Project view.
2. Find `External Libraries `, expand it to find `Binary Skeletons`, right-click on the `gi/repository` directory, select `Copy Path/Reference...` and select `Absolute Path`.