Shiboken | Python bindings generator that uses API Extractor
kandi X-RAY | Shiboken Summary
kandi X-RAY | Shiboken Summary
Python bindings generator that uses API Extractor and outputs CPython code.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Shiboken
Shiboken Key Features
Shiboken Examples and Code Snippets
Community Discussions
Trending Discussions on Shiboken
QUESTION
I have this script that I attached a GUI to the front of and wanted to distribute it to other DnD DMs for them to use to overlay grids onto images. Only issue is that everytime I try to package the python script using Pyinstaller, it keeps throwing two different errors. If I run pyinstaller --hidden-import matplotlib myscript.py
it returns
ANSWER
Answered 2020-Sep-26 at 15:15You can try to solve this problem by installing older versions of the matplotlib package. eg:
QUESTION
I've recently been running into a Import Error from Shiboken2 that I didn't have before with my executable. I have an application that I built in PyCharm and I build an .exe for it with CX_Freeze. I have tried every single latest version of Python but I am 100% confident now that it's not the version of Python I have that is the issue. Especially, since the app run's perfectly when I run the source code, but when I use my Setup.py script to build it, I keep getting the following issue when I try to run it:
Here is how my Setup.py script looks:
...ANSWER
Answered 2020-Jul-08 at 07:07I believe this issue stemmed from my environment. I don't really have an adamant answer because I did multitude of things such as the following in this order:
- Downloaded PyCharm 2020 and deleted PyCharm 2019.
- Deleted all my past Python packages/executables/dependencies, deleted my old virtual environment, and old build folder.
- Reinstalled Python 3.7.4 and checked the PATH tab.
- Added a Python Interpreter with the Python 3.7.4 in virtual environment through PyCharm 2020's IDE.
- Pip installed all necessary dependencies from my requirements.txt.
I made sure to give PyCharm enough time to think (load) in between each step and once I was finished I built the executable and it ran correctly.
I hope this helps anyone who runs into a similar problem.
QUESTION
I am trying to build a project in PySide2 with Python 3.5.1. Previously, I was developing in PySide with Python 2.7 but wanted to upgrade to Python 3.
I have downloaded PySide2 (5.12.4) and I also have Qt5 (5.13.0) downloaded (if that matters).
However, whenever I try to run this hello world program, I keep getting these same exact errors, that I don't know where to start to fix.
I think the issue has to do with Shiboken but I have no idea how to fix it.
...ANSWER
Answered 2019-Jun-25 at 17:56Update: I ended up using Python 3.7.3 (the most updated version) instead of 3.5.1 and it now works with PySide2 5.12.4 which is also the most updated version of PySide2
There must have been compatibility issues with the shiboken package and my Python version, so using the most updated versions of both has done the trick for me.
QUESTION
I am using PySide2 to rebuild a window like seen in the screenshot(what you see in the screenshot is an example, Ueli App launcher, available on Github), it's an app launcher, but since I am very new to PySide2 I do not know a lot of functions and asking here for help, where I should look into.
What I need: I type something into the textfield(on the screenshot where it says 'test') and options that fulfill my conditions get appended to UI so that I can select them with the arrow keys and press enter to open/run the program/file. I have trouble with all the UI related stuff, the searching for the commands is something I already have.
Here is some code I already have(it is for Maya, the 3D Software):
...ANSWER
Answered 2020-Jan-21 at 15:58A possible solution is to create a QListView
with a delegate that implements custom painting, for the filter you could use a QSortFilterProxyModel
as I show below:
QUESTION
I have some experience with Python console applications and now trying to start with Qt for Python (Qt 5.12, PySide2). Actually I'm trying some basic tutorials to understand how it should work.
So, I created very simple view.qml:
...ANSWER
Answered 2019-Nov-17 at 19:55A few days ago Arch Linux updated its version of Python to 3.8 but PySide2 does not yet have a compatible version causing the error you are pointing out. As they point out in this report PYSIDE-1140:
I'm keeping this open, but it will probably be solved for 5.14, since then Python 3.8 will be introduced as a new compatible Python version.
So you have 2 options:
Wait for a release of PySide2 that is compatible with Python3.8.
Or install Python3.7 or an old version from aur (using yay) and then install PySide2 using pip.
QUESTION
I want to create a TreeView widget using PySide for Autodesk Maya that can display the content of a directory like the example below:
I did find an example using tkinter for a simple python script : Tkinter: Treeview widget. But I want to use Pyside so I can run it in Autodesk Maya
I did create a script that can display a simple TreeView widget:
this is my code:
...ANSWER
Answered 2019-Nov-13 at 15:51you need to organize your data ! In your last comment, you told me you didn't know what are your datas, when you have it you can just loop throught it and add child to the tree with 'while' or 'for'
my_data_folders = {'parent1': {'Lips':['A', 'B', 'C']} }
this part below is your loops to add children :
QUESTION
I'm making a widget to access and modify QGraphicsRectItem properties(scale, rotation, etc.). The main idea is to show a widget on clicking on an item. When you click on another item, this widget should be deleted and replaced by another(showing properties of another item.)
I've implemented this using QFocusEvent and unfortunately, it gives me a SIGSEGV error. I fully understand why it happens but can`t make out how to do it in another way.
Here's a python sketch:
...ANSWER
Answered 2019-Jul-01 at 14:01I have not analyzed because your program crashes so my answer will not focus on it, instead I will focus on the underlying problem.
You just have to have a PropertyBox that you hide or show when necessary. I see a problem trying to use the focusInEvent and focusOutEvent methods because when you press the PropertyBox the item will lose its focus so the PropertyBox itself will be removed (maybe this is the reason for the crash). So instead of using the focus you should use the mousePressEvent and check if there is an item where it was clicked.
Considering the above the solution is:
QUESTION
I have a problem with installing packages via the built in Package Manager of enthought Canopy. I tried to use the "Upgrade all packages", but it failed.
Beforehand, I tried to solve my problem according to this post, but it did not functionating.
The Package Manager returns with the message:
...ANSWER
Answered 2019-Jun-27 at 11:30Please uninstall pyside, shiboken, and qt, then try again. (Pyside is already installed using qt 4, and this cannot coexist with qt 5 in the same environment.) Alternatively, you could use Canopy's integrated EDM to create a new environment with pyqt 5, so you could still use pyside / qt 4 in your original user environment and use pyqt 5 in your new environment.
QUESTION
I'm read this article and created simple "Hello World" plugin. But I need to create plugin with some PyQt interface, for example,
...ANSWER
Answered 2018-Dec-28 at 12:36Problem solved. I just created command-plugin with hello.show() and it works.
QUESTION
I am learning Python/PySide for Maya from time to time and today I tried to make a class with PySide.
I am trying to make a window with an empty list inside. I have done the same code structure with usual Maya commands for UI and it worked.
But when I tried to do same with PySide, I got AttributeError: 'VL_Test' object has no attribute 'ui_fk'
error.
What am I missing?
...Code:
ANSWER
Answered 2018-Aug-28 at 02:24I think you just lose some self
before these variables fkStrandGroupBox
fkStrandLayout
fkListWidget
I run it in Maya 2017, it seems ok.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Shiboken
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page