KIU Shueng Chuan
e3372fddc5
specify that ParameterTree needs 2 columns in .ui
2021-04-24 11:21:12 +08:00
Sérgio Peixoto
3f02b30140
Bugfix/wrong translate implementation ( #1520 )
...
* Removes all translate call on the parameter name and moves them into the title instead allowing to decouple visualization from code logic
* Removes all translate calls from the Exporter class property Name and moves the translation logic when setting the QListWidgetItems for the formatList
* Adds missing call to translation function for the export action on GraphicsScene
2021-01-28 08:42:18 -08:00
KIU Shueng Chuan
5186cbd80b
remove Qt4 generated template files
2021-01-23 12:12:20 +08:00
KIU Shueng Chuan
607db15949
call super() on virtual QWidget methods
2021-01-23 08:29:44 +08:00
KIU Shueng Chuan
0fa4557ad6
don't cast buttons, enums and flags to int
2021-01-23 08:29:44 +08:00
KIU Shueng Chuan
3ce7f58384
import sip from Qt.py
2021-01-23 08:29:43 +08:00
KIU Shueng Chuan
ab41c03358
generate _pyqt6.py files
...
VideoTemplate_pyside6.py : regenerate for cuda feature
2021-01-23 08:29:39 +08:00
KIU Shueng Chuan
74683be68b
GraphicsScene.py : check for C++ item live-ness
...
this gets triggered in PySide6 but not in PyQt5, PySide2.
2021-01-15 13:12:36 +08:00
KIU Shueng Chuan
966ae7a3df
import template files using importlib
...
this lets us support the various bindings w/o having to add binding
specific code.
it breaks PyQt4 support since PyQt4 template files are suffixed as
"_pyqt" rather than "_pyqt4"
2021-01-15 08:25:08 +08:00
KIU Shueng Chuan
3584736155
generate template files for pyside6
2021-01-15 08:25:07 +08:00
KIU Shueng Chuan
92016d3d5a
add imports of _pyside6 files
2021-01-15 08:25:06 +08:00
KIU Shueng Chuan
f863390409
change MidButton to MiddleButton
...
the former is no longer present in Qt 6 as an alias
2021-01-15 08:25:05 +08:00
Charles Brunet
4575decf6f
Prevent item duplication in Node context menu ( #1361 )
...
* Prevent item duplication in Node context menu
* Prevent duplicated items on Terminal context menu
* try better solution to prevent item duplication
2020-11-11 09:02:46 -08:00
Carlos Pascual
3aa3e9b991
Emit signal when GraphicScene.addItem() is used ( #1388 )
...
* Emit signal when GraphicScene.addItem() is used
Emit a signal (sigItemAdded) just after adding an item to a scene.
The item object is emited as the only signal argument.
This signal is useful for code that may want to react to newly added
items of a plot.
* Emit signal when GraphicScene.removeItem() is used
Emit a signal (sigItemRemoved) just after removing an item from a scene.
The item object is emited as the only signal argument.
This signal is useful for code that may want to react to removed
items in a plot.
2020-11-06 14:06:53 -08:00
Gianfranco Costamagna
32a79f18a4
sip: switch to new PyQt5 api import, with fallback to the old implementation if not found.
...
Also calls to setapi are not needed anymore, so use them only with the old implementation.
See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966045
for reference
2020-07-27 14:52:07 +02:00
Ogi Moore
ce6da3e93f
First pass at implementing the diff from PR307
2020-06-24 23:34:17 -07:00
Ogi Moore
be6f28b03c
Merge pull request #1090 from paulmueller/export-dialog-improvements
...
dump ExportDialog.exporterParameters
2020-05-29 23:11:46 -07:00
Ales Erjavec
02b7532706
Remove use of GraphicsScene._addressCache in translateGraphicsItem
...
Use QGraphicsItem.toQGrapicsObject on the item instead.
This probably is not even needed since PyQt 4.9
2020-05-01 13:05:51 +02:00
Paul Müller
57909aab45
dump ExportDialog.exporterParameters, b/c it prevents correct aspect ratio on image export ( close #1087 )
2019-12-03 11:52:09 +01:00
Kenneth Lyons
faef56c3e7
Qulogic py3 fixes ( #1073 )
...
* py3k: Remove reduce calls.
* py3k: Remove compatibility sortList function.
Sorting by key has existed since Python 2.4.
* Remove unnecessary sys.path manipulation.
This file doesn't have any __main__ code to run anyway.
* Use context manager
2019-11-12 08:45:42 -08:00
Jan Kotanski
6848824557
add bookkeeping exporter parameters ( #1023 )
2019-11-02 22:00:06 -07:00
miranis
e3884ebd20
Update GraphicsScene.py ( #599 )
...
In lines 174 and 191 cev[0] is being accessed when cev is an empty list. I get this error when inheriting from GraphicsLayoutWidget and overloading mouseDoubleClickEvent.
2019-09-12 20:24:48 -07:00
Ogi Moore
2f4ac51a11
Check if items having events sent to are still in the scene ( #919 )
...
Check if items having events sent to are still in the scene
2019-06-19 22:08:54 -07:00
Luke Campagnola
66dcfc7c67
Merge branch 'develop' into pyside2
2018-05-22 15:22:54 -07:00
Luke Campagnola
8da208b914
flip pyside2 template line endings
2018-05-17 09:02:41 -07:00
Luke Campagnola
58a865e088
Add signal documentation for graphicsscene
2018-04-25 13:19:50 -07:00
Luke Campagnola
82afad8366
Fix up Qt.py and deprecate USE_XX variables
2018-02-16 20:42:34 -08:00
Max Peng
1cbef74e82
update ui files for pyside2 and pyqt5.
2016-09-25 00:16:53 +08:00
Max Peng
8bdc19be75
update to support pyside2
2016-09-25 00:16:36 +08:00
Luke Campagnola
8f7b55302f
Added PolyLineROI unit tests, fixed several bugs in mouse interaction with PolyLineROI.
2016-05-30 18:00:19 -07:00
Luke Campagnola
2b9f613eab
Added unit tests checking infiniteline interactivity
2016-02-03 23:13:58 -08:00
Luke Campagnola
0976991efd
Import from python2_3 for all uses of basestring, cmp, and xrange
2015-05-19 09:29:55 -04:00
David Nadlinger
274d0793b3
Properly remove select box when export dialog is closed
...
Previously, only clicking the "Close" button would remove it,
but it would stay behind when directly closing the window.
2015-05-16 20:41:54 +02:00
Luke Campagnola
1fe5976e19
Merge branch 'pyqt5' into develop
...
Conflicts:
examples/parametertree.py
pyqtgraph/Qt.py
pyqtgraph/graphicsItems/FillBetweenItem.py
pyqtgraph/graphicsItems/InfiniteLine.py
pyqtgraph/imageview/ImageView.py
2015-02-28 11:46:41 -05:00
compass
478a3b1aa4
Fix some bugs in PyQt5
2015-01-17 00:21:33 +08:00
Luke Campagnola
f6ded808ef
Fixed a few exit crashes, added unit tests to cover them
2014-11-26 21:25:17 -05:00
Luke Campagnola
4896de5ee4
Fixed item context menus appearing after mouse has exited the item area.
...
This occurred because the scene does not receive mouse move events while a context menu is displayed.
If the user right-clicks on a new location while the menu is open, then the click event is delieverd as if the mouse had not moved.
Corrected by sending a just-in-time hover event immediately before mouse press, if the cursor has moved.
2014-08-15 12:45:35 -04:00
Luke Campagnola
6b66edfd46
Added Travis CI support
...
Fixed bugs / style issues to please Lord Travis
Squashed commit of the following:
commit f25048a1e1
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Sun Mar 30 02:40:47 2014 -0400
syntax
commit cc8b69695a
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Sun Mar 30 02:36:49 2014 -0400
add size check, diff style check
commit 5d5ea065a4
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Sun Mar 30 02:16:05 2014 -0400
travis fix
commit b154c6d997
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Sun Mar 30 02:09:41 2014 -0400
travis, flake colored output
commit 46921dcd87
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Wed Mar 26 12:37:54 2014 -0400
fix pyside+py3 bugs to satisfy CI
commit 1d30f3c5c7
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Wed Mar 26 11:13:18 2014 -0400
fix py3 tests
commit 426578fa4c
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Wed Mar 26 07:39:19 2014 -0400
fix pytest install
commit 88a13c1a71
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Wed Mar 26 00:29:29 2014 -0400
qt5 updates
commit 51995488cc
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Wed Mar 26 00:16:04 2014 -0400
correct py.test command for py3
commit e2b02fbcbd
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Tue Mar 25 23:50:38 2014 -0400
fix 2nd install test
commit 4b3e3ee04a
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Tue Mar 25 23:31:31 2014 -0400
syntax error
commit 250eabdb34
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Tue Mar 25 23:13:42 2014 -0400
look for py.test3
commit 9f9bca47c1
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Tue Mar 25 22:54:19 2014 -0400
fix syntax
commit 0a871c6f36
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Tue Mar 25 22:47:58 2014 -0400
output pip build log
commit dbce58d8cd
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Tue Mar 25 22:38:55 2014 -0400
no comments allowed between shall lines
commit b79c06121d
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Tue Mar 25 20:56:35 2014 -0400
another pip try
commit 09f4f5d82a
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Tue Mar 25 13:36:09 2014 -0400
pip correction
commit 0eedb5c18e
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Tue Mar 25 13:29:00 2014 -0400
correct py version output
commit d9fd039be2
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Tue Mar 25 11:55:43 2014 -0400
apt checks
commit cf95ccef86
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Tue Mar 25 10:23:10 2014 -0400
alternate pip install method
commit bee0bcddfe
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 23:51:45 2014 -0400
correct deps install
commit 963a4211fc
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 23:47:30 2014 -0400
fixes
commit 0c86cd1dc2
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 23:31:06 2014 -0400
permission fix
commit 5d04ef53b8
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 23:30:19 2014 -0400
Fix py.test version selection
commit b0e6c7cb94
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 23:25:34 2014 -0400
try another pyqt5 install method
commit 422a792866
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 23:12:36 2014 -0400
syntax error
commit 533133905a
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 23:04:37 2014 -0400
fixes
commit 8d65211ba4
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 22:40:18 2014 -0400
Add Qt5 test
minor fixes
commit 4484efaefe
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 22:31:56 2014 -0400
use correct py.test for python version
commit 5d2441a29b
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 22:24:27 2014 -0400
add setup tests
commit 9291db64f2
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 21:48:43 2014 -0400
fix py3-pyqt install
commit a7aa675c5a
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 21:31:33 2014 -0400
travis tests
commit e71cd2b23a
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 21:17:15 2014 -0400
more corrections
commit 527df3bca8
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 20:56:01 2014 -0400
travis corrections
commit 87d65cac4a
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 20:48:02 2014 -0400
Add flake tests
Correct style in a few files to please Lord Travis
commit 537028f88f
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 17:36:24 2014 -0400
minimize pyside package install
correct line endings to satisfy Lord Travis
commit 1e3cc95e37
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 17:23:03 2014 -0400
enable pyside, line ending check
fix test
commit d7df4517f9
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 17:12:06 2014 -0400
syntax fix
commit 1ad77a2155
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 17:00:30 2014 -0400
alt. pytest install
commit 5edcc02072
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date: Mon Mar 24 16:52:33 2014 -0400
Added initial travis.yml
2014-03-30 02:51:32 -04:00
Luke Campagnola
0bb300b7f2
Generated qt5 template files
2014-03-29 06:57:13 -04:00
Mikhail Terekhov
6255dca99c
MouseClickEvent: sometimes __repr__ could cause an exception
...
This happens during debugging session in an IDE (eric5) when debugger inspects
variables but self._scenePos is not yet initialized.
2014-02-28 16:15:25 -05:00
Luke Campagnola
5488f9ec84
Added BarGraphItem.shape() to allow better mouse interaction
2014-02-09 10:38:29 -05:00
Luke Campagnola
f21e0b86a4
fixed circular import
2013-12-23 10:22:53 -05:00
Luke Campagnola
a069104c6b
rebuild UI files
2013-12-23 10:11:20 -05:00
Luke Campagnola
a2e8290d8e
console, graphicsscene, and 2nd-level graphicsitems
2013-12-23 07:51:33 -05:00
Luke Campagnola
19cf49bc7d
fixed context menu handling for non-GraphicsItems
2013-11-21 23:29:03 -05:00
Antony Lee
23a0d6d7c0
Use actions of ViewBox's contextMenu in full menu.
...
The main change is on `ViewBox.getContextMenus`, which now returns an
up-to-date of actions that `GraphicsScene.addParentContextMenus` can use.
Also, `getContextMenus` was given a default implementation in the base
class (falling back on `getMenu` if defined), and some cleanup was done.
2013-11-20 12:23:07 -08:00
Luke Campagnola
1d2d7be733
When exporting, prefer to select PlotItem rather than ViewBox if possible
...
CSV exporter gets 'precision' option
2013-02-24 14:31:11 -05:00
Luke Campagnola
9fcb734863
merge from acq4 branch
2013-02-10 14:13:27 -05:00
Luke Campagnola
4c887c8f50
Merge new fixes and features from acq4
2013-02-10 14:10:30 -05:00
Luke Campagnola
175aef2b75
Bugfix: "QGraphicsScene is not defined"
2013-02-10 13:56:42 -05:00