Commit Graph

2847 Commits

Author SHA1 Message Date
Ogi Moore
02909999dc
Merge pull request #1875 from pijyoi/fix_pyqt6_mouse_event
bug: PyQt6 does not have localPos()
2021-07-02 13:26:19 -07:00
KIU Shueng Chuan
6fc02711a8 bug: PyQt6 does not have localPos()
this bug must have existed since the removal of the mouse shims
from Qt.py.
2021-07-02 10:14:19 +08:00
ntjess
4a921ddf71
Filter examples (#1868)
* Allows filtering of examples

* For some reason, the ui designer ignored the courier font family so I manually inserted it into the .ui file

* Allows filtering by file content, too

* Respects dark mode (maybe?), fixes policy setting on code layout

* Prevents "run edited code" from showing unless the actual content changes

* Looks like black font is always best against highlight background

* Left test code in commit...

* Fix broken highlighting on PyQt6

* Address #133

* Better highlighting for both dark and light mode

* Minor refactoring/cleanup, uses combo box instead of checkbox

* Combo box below text edit to avoid clipping

Co-authored-by: njessurun <ntjessu@gmail.com>
2021-06-26 17:51:34 -07:00
Nils Nemitz
e79dacf805
Fix Matplotlib color map import, add CC0 maps locally (#1865)
* accept Matplotlib colormap data as numpy array, add CC0 Matplotlib maps locally

* add cividis, prioritize lower case in example/atlas
2021-06-26 08:41:57 -07:00
Ogi Moore
5e8f200aa0
Merge pull request #1869 from NilsNemitz/colorbaritem_ticks
Disable unused ColorBarItem ticks
2021-06-26 08:06:37 -07:00
Nils Nemitz
c07b95812c clear out ticks instead of hiding them 2021-06-26 20:42:11 +09:00
Ogi Moore
93fa8664cb
Merge pull request #1846 from pijyoi/import_hygiene
reduce pollution of pg namespace
2021-06-25 23:26:26 -07:00
KIU Shueng Chuan
5d55f3facf remove imports subdir 2021-06-26 07:54:03 +08:00
Ogi Moore
82da8f122e
Merge pull request #1867 from j9ac9k/fix-numpy-deprecation
Use built-in int as dtype
2021-06-25 09:15:44 -07:00
Ogi Moore
418a181691 Use built-in int as dtype 2021-06-25 08:45:02 -07:00
KIU Shueng Chuan
3a1b74df6f move Qt.py to Qt/__init__.py 2021-06-25 21:33:05 +08:00
KIU Shueng Chuan
11bf824c0a deprecate ordereddict.OrderedDict on instantiation 2021-06-25 21:19:34 +08:00
KIU Shueng Chuan
427128ece1 add imports used by ACQ4 2021-06-25 21:19:34 +08:00
KIU Shueng Chuan
81baa182c5 add __all__ to various files 2021-06-25 21:19:33 +08:00
Ogi Moore
3fbb4f6b02
Merge pull request #1862 from j9ac9k/deprecate-metaarray
Deprecate MetaArray Entirely (for 0.14 release)
2021-06-24 10:46:14 -07:00
Ogi Moore
27ad41a10c Add deprecation warning to MetaArray.__init__ 2021-06-23 21:27:21 -07:00
Martin Chase
f764e2d3ff
progress dialog fix (#1861) 2021-06-23 19:34:55 -07:00
Nils Nemitz
775f1d629c
Separate out mouse events stolen by AxisItem (#1845)
* separate out mouse events on main plot area

* work in scenepositions so that detection also works in a layout

* added comments/remove debug statements
2021-06-22 16:17:39 -07:00
Ogi Moore
addb92f592
Merge pull request #1853 from NilsNemitz/getColor-getStops
make getColors and getStops behavior more consistent; add tests
2021-06-22 11:50:34 -07:00
Ogi Moore
98e9ea9b79
Merge pull request #1860 from pijyoi/remote_venv
remote: exchange pids if running in Windows venv
2021-06-22 11:28:18 -07:00
KIU Shueng Chuan
30f4af5913 remote: exchange pids if running in Windows venv 2021-06-22 21:59:39 +08:00
Nils Nemitz
362fbaa53a fixed docstring 2021-06-22 03:32:12 +09:00
Nils Nemitz
f79d0dfa14 make getColors and getStops behavior more consistent; add tests 2021-06-22 01:19:07 +09:00
Ogi Moore
ba517aba0e
Merge pull request #1840 from jennifer-manriquez/master
Allow border=False in GraphicsLayout
2021-06-16 20:17:35 -07:00
Jennifer Manriquez
2899143e84 Allow border=False in GraphicsLayout 2021-06-16 19:35:42 -05:00
Ogi Moore
30bc13831d
Merge pull request #1837 from pyqtgraph/revert-1835-skip_monkey
Revert "skip pytest monkeypatch"
2021-06-15 20:45:49 -07:00
Ogi Moore
ee602ac243
Revert "skip pytest monkeypatch" 2021-06-15 20:28:08 -07:00
Ogi Moore
61dedcb4a5
Merge pull request #1794 from pijyoi/numba_lookup 2021-06-15 16:42:54 -07:00
KIU Shueng Chuan
5dcea9bdac rename private function and its arguments 2021-06-16 06:50:51 +08:00
Ogi Moore
c376c6fdcc
Merge pull request #1829 from pijyoi/pixmap_fragments
try using QPainter.drawPixmapFragments
2021-06-15 10:06:50 -07:00
KIU Shueng Chuan
f63d1e4206 document PyQt boxing and unboxing 2021-06-15 11:40:27 +08:00
KIU Shueng Chuan
7c6d9fe6d5 cleanup python2 and unused imports 2021-06-15 11:06:37 +08:00
Ogi Moore
fff2bc82c8
Merge pull request #1835 from pijyoi/skip_monkey
skip pytest monkeypatch
2021-06-14 19:58:30 -07:00
KIU Shueng Chuan
89f6c7da81 remove codepaths other than pixmap fragments codepath 2021-06-15 09:43:31 +08:00
KIU Shueng Chuan
abeae0b7fa init so that pointers are present 2021-06-15 06:50:31 +08:00
KIU Shueng Chuan
6bfb516768 skip pytest monkeypatch 2021-06-14 21:06:19 +08:00
KIU Shueng Chuan
a1845cddbc don't truncate floating point target coords 2021-06-14 19:24:39 +08:00
KIU Shueng Chuan
6839ec937a reuse pixmap fragment objects 2021-06-14 06:49:52 +08:00
KIU Shueng Chuan
ad3e3a6b8b ScatterPlotSpeedTest: add toggle for drawPixmapFragments 2021-06-13 08:00:45 +08:00
KIU Shueng Chuan
380ec2e0b2 implement usage of QPainter.drawPixmapFragments 2021-06-13 08:00:45 +08:00
Ogi Moore
cb4af3ac97
Merge pull request #1833 from pijyoi/fix_pyqt61_scatterplot
fix ScatterPlot render issues on PyQt6 6.1
2021-06-12 08:36:01 -07:00
KIU Shueng Chuan
98a020d1bb ROI.py::renderShapeMask : fix little-endian assumption 2021-06-12 20:25:28 +08:00
KIU Shueng Chuan
afe47def28 fix ScatterPlot render issues on PyQt6 6.1 2021-06-12 14:05:47 +08:00
Ogi Moore
e2b0a5ffae
Merge pull request #1830 from j9ac9k/Address-missing-enums
Add missing enums
2021-06-11 08:46:20 -07:00
Ogi Moore
e892ad37aa Add missing enums 2021-06-10 21:28:19 -07:00
Ogi Moore
7e8d34ecd8
Merge pull request #1824 from pijyoi/less_endian
remove little-endian assumption for image export
2021-06-09 15:02:48 -07:00
Martin Chase
2fb04b754c
Fix BusyCursor to use internal stack provided by setOverrideCursor/restoreOverrideCursor (#1827)
* un-busy as many times as needed

* lint

* add test to prove cursor behavior

* tentative change in the hopes that all supported qt versions behave properly

* remove unnecessary code

* use contextmanager decorator instead of class

* use full path to WaitCursor

* restore docstring; refactor variable for clarity

* fix docstring whitespace

* break up long lines

* use variable to shorten instead
2021-06-09 13:32:24 -07:00
KIU Shueng Chuan
6a2bfa5c84 fix PyQt6 long spelling for enums 2021-06-10 03:33:04 +08:00
KIU Shueng Chuan
b3e8f332fb add test for export to qimage 2021-06-10 03:18:12 +08:00
KIU Shueng Chuan
765f9648cd remove little-endian assumption for image export 2021-06-10 03:18:12 +08:00