PlotPyStack / guidata

Python library generating graphical user interfaces for easy dataset editing and display
https://pypi.python.org/pypi/guidata
BSD 3-Clause "New" or "Revised" License
61 stars 18 forks source link

Missing attribute error using the Dockable Console widget #66

Closed AElimrani closed 1 year ago

AElimrani commented 1 year ago

Hi, it seems like there is a compatibility issue using PySide6 (couldn't use qtpy in this case, is pyside6 support mainly through qtpy?). The issue is in the dockable console, whenever the console attempts to show a tooltip. The QApplication.desktop() attribute seems to have been deprecated or isn't working properly.

``` File "C:\Users\AnassElimrani\miniconda3\envs\exp_env_cudapy311\Lib\site-packages\guidata\widgets\console\shell.py", line 934, in show_code_completion self.show_completion_list(obj_dir, automatic=automatic) File "C:\Users\AnassElimrani\miniconda3\envs\exp_env_cudapy311\Lib\site-packages\guidata\widgets\console\base.py", line 1180, in show_completion_list self.show_completion_widget(completions, automatic=automatic) File "C:\Users\AnassElimrani\miniconda3\envs\exp_env_cudapy311\Lib\site-packages\guidata\widgets\console\base.py", line 1157, in show_completion_widget self.completion_widget.show_list(textlist, automatic=automatic) File "C:\Users\AnassElimrani\miniconda3\envs\exp_env_cudapy311\Lib\site-packages\guidata\widgets\console\base.py", line 128, in show_list desktop = QApplication.desktop() ^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'PySide6.QtWidgets.QApplication' has no attribute 'desktop' ```
PierreRaybaut commented 1 year ago

Thanks for the feedback. I'll fix it asap. This will be fixed in v3.1.1 scheduled for release tomorrow or the day after tomorrow.